Class ECIESKEMExtractor

java.lang.Object
org.bouncycastle.crypto.kems.ECIESKEMExtractor
All Implemented Interfaces:
EncapsulatedSecretExtractor

public class ECIESKEMExtractor extends Object implements EncapsulatedSecretExtractor
The ECIES Key Encapsulation Mechanism (ECIES-KEM) from ISO 18033-2.
  • Constructor Details

    • ECIESKEMExtractor

      public ECIESKEMExtractor(ECPrivateKeyParameters decKey, int keyLen, DerivationFunction kdf)
      Set up the ECIES-KEM.
      Parameters:
      decKey - the decryption key.
      keyLen - length in bytes of key to generate.
      kdf - the key derivation function to be used.
    • ECIESKEMExtractor

      public ECIESKEMExtractor(ECPrivateKeyParameters decKey, int keyLen, DerivationFunction kdf, boolean cofactorMode, boolean oldCofactorMode, boolean singleHashMode)
      Set up the ECIES-KEM.
      Parameters:
      decKey - the decryption key.
      keyLen - length in bytes of key to generate.
      kdf - the key derivation function to be used.
      cofactorMode - if true use the new cofactor ECDH.
      oldCofactorMode - if true use the old cofactor ECDH.
      singleHashMode - if true use single hash mode.
  • Method Details