Class IESEngine

java.lang.Object
org.gudy.bouncycastle.crypto.engines.IESEngine

public class IESEngine extends Object
support class for constructing intergrated encryption ciphers for doing basic message exchanges on top of key agreement ciphers
  • Field Details

  • Constructor Details

    • IESEngine

      public IESEngine(BasicAgreement agree, DerivationFunction kdf, Mac mac)
      set up for use with stream mode, where the key derivation function is used to provide a stream of bytes to xor with the message.
      Parameters:
      agree - the key agreement used as the basis for the encryption
      kdf - the key derivation function used for byte generation
      mac - the message authentication code generator for the message
    • IESEngine

      public IESEngine(BasicAgreement agree, DerivationFunction kdf, Mac mac, BufferedBlockCipher cipher)
      set up for use in conjunction with a block cipher to handle the message.
      Parameters:
      agree - the key agreement used as the basis for the encryption
      kdf - the key derivation function used for byte generation
      mac - the message authentication code generator for the message
      cipher - the cipher to used for encrypting the message
  • Method Details