Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewSHA384 (0.1 sec)

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

    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") }
    
    func SHA1([]byte) [20]byte   { 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)
  2. src/crypto/internal/boring/sha.go

    	b, d.h[7] = consumeUint32(b)
    	b = b[copy(d.x[:], b):]
    	b, n := consumeUint64(b)
    	d.nl = uint32(n << 3)
    	d.nh = uint32(n >> 29)
    	d.nx = uint32(n) % 64
    	return nil
    }
    
    // NewSHA384 returns a new SHA384 hash.
    func NewSHA384() hash.Hash {
    	h := new(sha384Hash)
    	h.Reset()
    	return h
    }
    
    type sha384Hash struct {
    	ctx C.GO_SHA512_CTX
    	out [384 / 8]byte
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  3. src/crypto/sha512/sha512.go

    	d := &digest{function: crypto.SHA512_256}
    	d.Reset()
    	return d
    }
    
    // New384 returns a new hash.Hash computing the SHA-384 checksum.
    func New384() hash.Hash {
    	if boring.Enabled {
    		return boring.NewSHA384()
    	}
    	d := &digest{function: crypto.SHA384}
    	d.Reset()
    	return d
    }
    
    func (d *digest) Size() int {
    	switch d.function {
    	case crypto.SHA512_224:
    		return Size224
    	case crypto.SHA512_256:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top