Class RsaKemHybridDecrypt

  • All Implemented Interfaces:
    HybridDecrypt

    public final class RsaKemHybridDecrypt
    extends java.lang.Object
    implements HybridDecrypt
    Hybrid encryption with RSA-KEM as defined in Shoup's ISO standard proposal as KEM, and AEAD as DEM and HKDF as KDF.

    Shoup's ISO standard proposal is available at https://www.shoup.net/iso/std6.pdf.

    • Constructor Summary

      Constructors 
      Constructor Description
      RsaKemHybridDecrypt​(java.security.interfaces.RSAPrivateKey recipientPrivateKey, java.lang.String hkdfHmacAlgo, byte[] hkdfSalt, AeadFactory aeadFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decrypt​(byte[] ciphertext, byte[] contextInfo)
      Decryption operation: decrypts ciphertext verifying the integrity of contextInfo.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RsaKemHybridDecrypt

        public RsaKemHybridDecrypt​(java.security.interfaces.RSAPrivateKey recipientPrivateKey,
                                   java.lang.String hkdfHmacAlgo,
                                   byte[] hkdfSalt,
                                   AeadFactory aeadFactory)
                            throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
    • Method Detail

      • decrypt

        public byte[] decrypt​(byte[] ciphertext,
                              byte[] contextInfo)
                       throws java.security.GeneralSecurityException
        Description copied from interface: HybridDecrypt
        Decryption operation: decrypts ciphertext verifying the integrity of contextInfo.
        Specified by:
        decrypt in interface HybridDecrypt
        Returns:
        resulting plaintext
        Throws:
        java.security.GeneralSecurityException