Skip to content

Commit

Permalink
Fix typo in AESGCMBarrier.encrypt (hashicorp#22991)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-z-m authored Sep 12, 2023
1 parent 7d7564b commit b583ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/barrier_aes_gcm.go
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ func (b *AESGCMBarrier) aeadFromKey(key []byte) (cipher.AEAD, error) {

// encrypt is used to encrypt a value
func (b *AESGCMBarrier) encrypt(path string, term uint32, gcm cipher.AEAD, plain []byte) ([]byte, error) {
// Allocate the output buffer with room for tern, version byte,
// Allocate the output buffer with room for term, version byte,
// nonce, GCM tag and the plaintext

extra := termSize + 1 + gcm.NonceSize() + gcm.Overhead()
Expand Down

0 comments on commit b583ab9

Please sign in to comment.