- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NonceSize (0.08 sec)
-
internal/config/crypto.go
if err != nil { return nil, err } stream, err := algorithm.Stream(key.Plaintext) if err != nil { return nil, err } nonce := make([]byte, stream.NonceSize()) if _, err := rand.Read(nonce); err != nil { return nil, err } const ( MaxMetadataSize = 1 << 20 // max. size of the metadata Version = 1 ) var ( header [5]byte
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 5K bytes - Viewed (0) -
docs/debugging/inspect/decrypt-v1.go
} stream, err := sio.AES_256_GCM.Stream(key) if err != nil { return err } // Zero nonce, we only use each key once, and 32 bytes is plenty. nonce := make([]byte, stream.NonceSize()) encr := stream.DecryptReader(r, nonce, nil) _, err = io.Copy(w, encr) if err == nil { fmt.Println(okMsg) } return err
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 11 21:22:47 UTC 2024 - 1.6K bytes - Viewed (0) -
internal/kms/secret-key.go
// JSON-encoded. Now, ciphertexts are binary-encoded. // Therefore, there is no MarshalJSON implementation. func (c *ciphertext) UnmarshalJSON(text []byte) error { const ( IVSize = 16 NonceSize = 12 AES256GCM = "AES-256-GCM-HMAC-SHA-256" CHACHA20POLY1305 = "ChaCha20Poly1305" ) type JSON struct { Algorithm string `json:"aead"` ID string `json:"id"`
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 8.3K bytes - Viewed (0) -
cmd/admin-handlers.go
stream, err := sio.AES_256_GCM.Stream(key[:]) if err != nil { bugLogIf(ctx, err) return } // Zero nonce, we only use each key once, and 32 bytes is plenty. nonce := make([]byte, stream.NonceSize()) encw := stream.EncryptWriter(w, nonce, nil) defer encw.Close() // Initialize a zip writer which will provide a zipped content // of profiling data of all nodes inspectZipW = zip.NewWriter(encw)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 11:32:32 UTC 2024 - 99.7K bytes - Viewed (0) -
api/go1.2.txt
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 pkg crypto/cipher, type AEAD interface, Open([]uint8, []uint8, []uint8, []uint8) ([]uint8, error) pkg crypto/cipher, type AEAD interface, Overhead() 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)