Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for hashFunc (0.64 sec)

  1. src/crypto/crypto.go

    import (
    	"hash"
    	"io"
    	"strconv"
    )
    
    // Hash identifies a cryptographic hash function that is implemented in another
    // package.
    type Hash uint
    
    // HashFunc simply returns the value of h so that [Hash] implements [SignerOpts].
    func (h Hash) HashFunc() Hash {
    	return h
    }
    
    func (h Hash) String() string {
    	switch h {
    	case MD4:
    		return "MD4"
    	case MD5:
    		return "MD5"
    	case SHA1:
    		return "SHA-1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. src/crypto/tls/prf.go

    func prf12(hashFunc func() hash.Hash) func(result, secret, label, seed []byte) {
    	return func(result, secret, label, seed []byte) {
    		labelAndSeed := make([]byte, len(label)+len(seed))
    		copy(labelAndSeed, label)
    		copy(labelAndSeed[len(label):], seed)
    
    		pHash(result, secret, labelAndSeed, hashFunc)
    	}
    }
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 16:29:49 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/print.go

    package ssa
    
    import (
    	"fmt"
    	"io"
    	"strings"
    
    	"cmd/internal/notsha256"
    	"cmd/internal/src"
    )
    
    func printFunc(f *Func) {
    	f.Logf("%s", f)
    }
    
    func hashFunc(f *Func) []byte {
    	h := notsha256.New()
    	p := stringFuncPrinter{w: h, printDead: true}
    	fprintFunc(p, f)
    	return h.Sum(nil)
    }
    
    func (f *Func) String() string {
    	var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 3.9K bytes
    - Viewed (0)
Back to top