Package org.webpki.cbor
Interface CBORX509Decrypter.DecrypterImpl
- Enclosing class:
CBORX509Decrypter
public static interface CBORX509Decrypter.DecrypterImpl
Decrypter engine implementation interface.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decrypt
(X509Certificate[] certificatePath, byte[] optionalEncryptedKey, PublicKey optionalEphemeralKey, KeyEncryptionAlgorithms keyEncryptionAlgorithm, ContentEncryptionAlgorithms contentEncryptionAlgorithm) Decrypt encrypted key.
-
Method Details
-
decrypt
byte[] decrypt(X509Certificate[] certificatePath, byte[] optionalEncryptedKey, PublicKey optionalEphemeralKey, KeyEncryptionAlgorithms keyEncryptionAlgorithm, ContentEncryptionAlgorithms contentEncryptionAlgorithm) Decrypt encrypted key.This interface assumes that the private key resides in an external hardware or software solution. The private key is either implicit or located by the
optionalPublicKey
oroptionalKeyId
parameters.Implementations must throw
CryptoException
for errors related to cryptography and security.- Parameters:
certificatePath
- Certificate path in the encryption objectoptionalEncryptedKey
- Optional encrypted keyoptionalEphemeralKey
- Optional ephemeral keykeyEncryptionAlgorithm
- The requested key encryption algorithmcontentEncryptionAlgorithm
- The requested content encryption algorithm- Returns:
- Decrypted key.
-