public class EncryptPayloadOperation extends AbstractCryptPayloadOperation implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
CRLF
Constructor and Description |
---|
EncryptPayloadOperation(org.bouncycastle.asn1.ASN1Encodable object)
Create object from ASN.1 code.
|
EncryptPayloadOperation(int sourceBlock,
int targetBlock,
SymmetricKey key)
Create a functional encryption operation.
|
Modifier and Type | Method and Description |
---|---|
Operation |
getNewInstance(org.bouncycastle.asn1.ASN1Encodable object)
Gets an instance of the object.
|
dumpValueNotation, parse, toAsn1Object
getTagNumber, setTagNumber
fromBase64, fromHex, parse, prepareDump, toBase64, toBitString, toBytes, toDer, toHex
public static final long serialVersionUID
public EncryptPayloadOperation(int sourceBlock, int targetBlock, SymmetricKey key) throws IOException
Create a functional encryption operation.
sourceBlock
- the block in the workspace to be encryptedtargetBlock
- the resulting block in the workspacekey
- the key to be applied (null for generating a random keyIOException
- if key generation failspublic EncryptPayloadOperation(org.bouncycastle.asn1.ASN1Encodable object) throws IOException
Create object from ASN.1 code.
object
- the ASN.1 codeIOException
- if parsing of ASN.1 code failspublic Operation getNewInstance(org.bouncycastle.asn1.ASN1Encodable object) throws IOException
Operation
Gets an instance of the object.
getNewInstance
in class AbstractCryptPayloadOperation
object
- the object to be parsedIOException
- if parsing failsCopyright © 2023. All rights reserved.