- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NewGCMWithTagSize (0.82 sec)
-
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) -
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) -
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) -
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)