Class EncryptPayloadOperation

All Implemented Interfaces:
Serializable, Block, Dumpable

public class EncryptPayloadOperation extends AbstractCryptPayloadOperation implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • EncryptPayloadOperation

      public EncryptPayloadOperation(int sourceBlock, int targetBlock, SymmetricKey key) throws IOException

      Create a functional encryption operation.

      Parameters:
      sourceBlock - the block in the workspace to be encrypted
      targetBlock - the resulting block in the workspace
      key - the key to be applied (null for generating a random key
      Throws:
      IOException - if key generation fails
    • EncryptPayloadOperation

      public EncryptPayloadOperation(org.bouncycastle.asn1.ASN1Encodable object) throws IOException

      Create object from ASN.1 code.

      Parameters:
      object - the ASN.1 code
      Throws:
      IOException - if parsing of ASN.1 code fails
  • Method Details