crypto/cipher: ExampleNewGCM_encrypt should use NonceSize to generate nonce. #48372
Labels
Documentation
Issues describing a change to documentation.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
ExampleNewGCM_encrypt should use AEAD.NonceSize to generate nonce.
Current:
12 is hard-coded to make nonce buffer.
Better:
Use AEAD.NonceSize. AEAD has NonceSize that returns the size of the nonce.
The text was updated successfully, but these errors were encountered: