You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…he example
The existing example uses hard-coded constant to make nonce buffer.
Using AEAD.NonceSize makes it a more portable and appropriate example.
Fixes: golang#48372
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: