Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewSHA256 (0.12 sec)

  1. src/crypto/internal/boring/hmac.go

    		return C._goboringcrypto_EVP_sha512()
    	}
    	return nil
    }
    
    // NewHMAC returns a new HMAC using BoringCrypto.
    // The function h must return a hash implemented by
    // BoringCrypto (for example, h could be boring.NewSHA256).
    // If h is not recognized, NewHMAC returns nil.
    func NewHMAC(h func() hash.Hash, key []byte) hash.Hash {
    	ch := h()
    	md := hashToMD(ch)
    	if md == nil {
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/notboring.go

    const RandReader = randReader(0)
    
    func NewSHA1() hash.Hash   { panic("boringcrypto: not available") }
    func NewSHA224() hash.Hash { panic("boringcrypto: not available") }
    func NewSHA256() hash.Hash { panic("boringcrypto: not available") }
    func NewSHA384() hash.Hash { panic("boringcrypto: not available") }
    func NewSHA512() hash.Hash { panic("boringcrypto: not available") }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/crypto/sha256/sha256.go

    // also implements [encoding.BinaryMarshaler] and
    // [encoding.BinaryUnmarshaler] to marshal and unmarshal the internal
    // state of the hash.
    func New() hash.Hash {
    	if boring.Enabled {
    		return boring.NewSHA256()
    	}
    	d := new(digest)
    	d.Reset()
    	return d
    }
    
    // New224 returns a new hash.Hash computing the SHA224 checksum.
    func New224() hash.Hash {
    	if boring.Enabled {
    		return boring.NewSHA224()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top