Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewCipher (0.13 sec)

  1. internal/kms/secret-key.go

    	if err != nil {
    		return DEK{}, err
    	}
    	iv, nonce := random[:16], random[16:]
    
    	prf := hmac.New(sha256.New, s.key)
    	prf.Write(iv)
    	key := prf.Sum(make([]byte, 0, prf.Size()))
    
    	block, err := aes.NewCipher(key)
    	if err != nil {
    		return DEK{}, err
    	}
    	aead, err := cipher.NewGCM(block)
    	if err != nil {
    		return DEK{}, err
    	}
    
    	plaintext, err := sioutil.Random(32)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. api/go1.txt

    pkg crypto, method (Hash) New() hash.Hash
    pkg crypto, method (Hash) Size() int
    pkg crypto, type Hash uint
    pkg crypto, type PrivateKey interface {}
    pkg crypto/aes, const BlockSize ideal-int
    pkg crypto/aes, func NewCipher([]uint8) (cipher.Block, error)
    pkg crypto/aes, method (KeySizeError) Error() string
    pkg crypto/aes, type KeySizeError int
    pkg crypto/cipher, func NewCBCDecrypter(Block, []uint8) BlockMode
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top