Interface CBORAsymKeyDecrypter.DecrypterImpl

Enclosing class:
CBORAsymKeyDecrypter

public static interface CBORAsymKeyDecrypter.DecrypterImpl
Decrypter engine implementation interface.
  • Method Details

    • decrypt

      byte[] decrypt(PublicKey optionalPublicKey, CBORObject optionalKeyId, 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 or optionalKeyId parameters.

      Implementations must throw CryptoException for errors related to cryptography and security.

      Parameters:
      optionalPublicKey - Defined it provided in the CEF object
      optionalKeyId - Defined if provided in the CEF object
      optionalEncryptedKey - Optional encrypted key (algorithm dependent)
      optionalEphemeralKey - Optional ephemeral key (algorithm dependent)
      keyEncryptionAlgorithm - The requested key encryption algorithm
      contentEncryptionAlgorithm - The requested content encryption algorithm
      Returns:
      Decrypted key.