Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewGCMWithTagSize (0.27 sec)

  1. src/crypto/cipher/gcm_test.go

    		tagSize := (len(test.result) - len(test.plaintext)) / 2
    
    		var aesgcm cipher.AEAD
    		switch {
    		// Handle non-standard tag sizes
    		case tagSize != 16:
    			aesgcm, err = cipher.NewGCMWithTagSize(aes, tagSize)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    		// Handle 0 nonce size (expect error and continue)
    		case len(nonce) == 0:
    			aesgcm, err = cipher.NewGCMWithNonceSize(aes, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 15:27:49 UTC 2023
    - 35K bytes
    - Viewed (0)
  2. src/crypto/cipher/gcm.go

    // [NewGCM], which is faster and more resistant to misuse.
    func NewGCMWithNonceSize(cipher Block, size int) (AEAD, error) {
    	return newGCMWithNonceAndTagSize(cipher, size, gcmTagSize)
    }
    
    // NewGCMWithTagSize returns the given 128-bit, block cipher wrapped in Galois
    // Counter Mode, which generates tags with the given length.
    //
    // Tag sizes between 12 and 16 bytes are allowed.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. src/crypto/internal/boring/aes.go

    	if nonceSize != gcmStandardNonceSize {
    		return cipher.NewGCMWithNonceSize(&noGCM{c}, nonceSize)
    	}
    	if tagSize != gcmTagSize {
    		return cipher.NewGCMWithTagSize(&noGCM{c}, tagSize)
    	}
    	return c.newGCM(false)
    }
    
    func NewGCMTLS(c cipher.Block) (cipher.AEAD, error) {
    	return c.(*aesCipher).newGCM(true)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. api/go1.11.txt

    pkg crypto/cipher, func NewGCMWithTagSize(Block, int) (AEAD, error)
    pkg crypto/rsa, method (*PrivateKey) Size() int
    pkg crypto/rsa, method (*PublicKey) Size() int
    pkg crypto/tls, method (*ConnectionState) ExportKeyingMaterial(string, []uint8, int) ([]uint8, error)
    pkg database/sql, method (IsolationLevel) String() string
    pkg database/sql, type DBStats struct, Idle int
    pkg database/sql, type DBStats struct, InUse int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 22 03:48:56 UTC 2018
    - 25K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NewCBCEncrypter", Func, 0},
    		{"NewCFBDecrypter", Func, 0},
    		{"NewCFBEncrypter", Func, 0},
    		{"NewCTR", Func, 0},
    		{"NewGCM", Func, 2},
    		{"NewGCMWithNonceSize", Func, 5},
    		{"NewGCMWithTagSize", Func, 11},
    		{"NewOFB", Func, 0},
    		{"Stream", Type, 0},
    		{"StreamReader", Type, 0},
    		{"StreamReader.R", Field, 0},
    		{"StreamReader.S", Field, 0},
    		{"StreamWriter", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top