Fix bug in decryption

This commit is contained in:
Bernd Schoolmann 2023-12-22 10:44:21 +01:00
parent be11f59ed8
commit 82d576d546
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -123,7 +123,10 @@ func b64encode(src []byte) []byte {
}
func DecryptWith(s EncString, key SymmetricEncryptionKey) ([]byte, error) {
encKeyData, err := key.MacKeyBytes()
encKeyData, err := key.EncryptionKeyBytes()
if err != nil {
return nil, err
}
macKeyData, err := key.MacKeyBytes()
if err != nil {
return nil, err