Class XWingHpkeConscryptDecrypt

  • All Implemented Interfaces:
    HybridDecrypt

    public final class XWingHpkeConscryptDecrypt
    extends java.lang.Object
    implements HybridDecrypt
    X-Wing HPKE decryption stub implementation for Android.
    • Constructor Detail

      • XWingHpkeConscryptDecrypt

        public XWingHpkeConscryptDecrypt()
    • Method Detail

      • create

        public static HybridDecrypt create​(HpkePrivateKey key)
                                    throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • 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
      • isSupported

        public static boolean isSupported()