mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-10-29 06:58:15 -04:00
Make input zeroization optional
This commit is contained in:
1 parent
ddd7f893e9
commit
e8ef243e87
11 files changed
+50
-47
No files matched your search
@@ -24,7 +24,6 @@ func encryptAES(decBytes, key2, salt2 []byte) []byte {
|
||||
|
||||
// generate a random nonce
|
||||
nonce := getRandomBytes(nonceSizeAES)
|
||||
defer security.ZeroizeBytes(nonce)
|
||||
|
||||
// encrypt the data
|
||||
ciphertext := aesGCM.Seal(nil, nonce, decBytes, nil)
|
||||
|
||||
Reference in new issue
Block a user