Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewAESCipher (0.29 sec)

  1. src/crypto/aes/cipher.go

    func NewCipher(key []byte) (cipher.Block, error) {
    	k := len(key)
    	switch k {
    	default:
    		return nil, KeySizeError(k)
    	case 16, 24, 32:
    		break
    	}
    	if boring.Enabled {
    		return boring.NewAESCipher(key)
    	}
    	return newCipher(key)
    }
    
    // newCipherGeneric creates and returns a new cipher.Block
    // implemented in pure Go.
    func newCipherGeneric(key []byte) (cipher.Block, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/notboring.go

    func SHA512([]byte) [64]byte { panic("boringcrypto: not available") }
    
    func NewHMAC(h func() hash.Hash, key []byte) hash.Hash { panic("boringcrypto: not available") }
    
    func NewAESCipher(key []byte) (cipher.Block, error) { panic("boringcrypto: not available") }
    func NewGCMTLS(cipher.Block) (cipher.AEAD, error)   { panic("boringcrypto: not available") }
    
    type PublicKeyECDSA struct{ _ int }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top