Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for newGCM (0.06 seconds)

  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)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Apr 21 16:23:51 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  2. lib/fips140/v1.1.0-rc1.zip

    gcmPlatformData } func New(cipher *aes.Block, nonceSize, tagSize int) (*GCM, error) { // This function is outlined to let the allocation happen on the parent stack. return newGCM(&GCM{}, cipher, nonceSize, tagSize) } // newGCM is marked go:noinline to avoid it inlining into New, and making New // too complex to inline itself. // //go:noinline func newGCM(g *GCM, cipher *aes.Block, nonceSize, tagSize int) (*GCM, error) { if tagSize < gcmMinimumTagSize || tagSize > gcmBlockSize { return nil, errors.New("cipher:...
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Dec 11 16:27:41 GMT 2025
    - 663K bytes
    - Click Count (0)
  3. lib/fips140/v1.0.0-c2097c7c.zip

    gcmPlatformData } func New(cipher *aes.Block, nonceSize, tagSize int) (*GCM, error) { // This function is outlined to let the allocation happen on the parent stack. return newGCM(&GCM{}, cipher, nonceSize, tagSize) } // newGCM is marked go:noinline to avoid it inlining into New, and making New // too complex to inline itself. // //go:noinline func newGCM(g *GCM, cipher *aes.Block, nonceSize, tagSize int) (*GCM, error) { if tagSize < gcmMinimumTagSize || tagSize > gcmBlockSize { return nil, errors.New("cipher:...
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Sep 25 19:53:19 GMT 2025
    - 642.7K bytes
    - Click Count (0)
  4. 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
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Click Count (1)
Back to Top