Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewGCM (0.05 sec)

  1. internal/kms/secret-key.go

    	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 {
    		return DEK{}, err
    	}
    	ciphertext := aead.Seal(nil, nonce, plaintext, associatedData)
    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.2.txt

    pkg container/list, method (*List) MoveAfter(*Element, *Element)
    pkg container/list, method (*List) MoveBefore(*Element, *Element)
    pkg crypto, type PublicKey interface {}
    pkg crypto/cipher, func NewGCM(Block) (AEAD, error)
    pkg crypto/cipher, type AEAD interface { NonceSize, Open, Overhead, Seal }
    pkg crypto/cipher, type AEAD interface, NonceSize() int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (0)
Back to top