Update passphrase.go

This commit is contained in:
anim001k 2025-09-26 19:59:05 +02:00 committed by GitHub
parent c984d9086e
commit de6ff36f36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -273,7 +273,8 @@ func DecryptDataV3(cryptoJson CryptoJSON, auth string) ([]byte, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
return plainText, err // Return plainText with nil error since decryption was successful
return plainText, nil
} }
func decryptKeyV3(keyProtected *encryptedKeyJSONV3, auth string) (keyBytes []byte, keyId []byte, err error) { func decryptKeyV3(keyProtected *encryptedKeyJSONV3, auth string) (keyBytes []byte, keyId []byte, err error) {