Interface EciesDemHelper.Dem

  • Enclosing class:
    EciesDemHelper

    public static interface EciesDemHelper.Dem
    Interface for a DEM.
    • Method Detail

      • getSymmetricKeySizeInBytes

        int getSymmetricKeySizeInBytes()
      • encrypt

        byte[] encrypt​(byte[] demKeyValue,
                       byte[] prefix,
                       byte[] header,
                       byte[] plaintext)
                throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • decrypt

        byte[] decrypt​(byte[] demKeyValue,
                       byte[] ciphertext,
                       int prefixAndHeaderSize)
                throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException