Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewSHA224 (0.13 sec)

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

    type randReader int
    
    func (randReader) Read(b []byte) (int, error) { panic("boringcrypto: not available") }
    
    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") }
    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/sha256/sha256.go

    	}
    	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()
    	}
    	d := new(digest)
    	d.is224 = true
    	d.Reset()
    	return d
    }
    
    func (d *digest) Size() int {
    	if !d.is224 {
    		return Size
    	}
    	return Size224
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/crypto/internal/boring/sha.go

    	b, d.h[4] = 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
    }
    
    // NewSHA224 returns a new SHA224 hash.
    func NewSHA224() hash.Hash {
    	h := new(sha224Hash)
    	h.Reset()
    	return h
    }
    
    type sha224Hash struct {
    	ctx C.GO_SHA256_CTX
    	out [224 / 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)
Back to top