Extends
Accessors
iv
Set Signature
set iv(iv): void
Specify the initialization vector (IV) to use.
Remarks
This parameter is mandatory.Parameters
iv
ArrayBuffer
The initialization vector to use.
Returns
void
ivSize
Get Signature
get ivSize():number
Get the size of the initialization vector (IV) for the CBC cipher.
Throws
InvalidArgumentError If the IV has an invalid length.Returns
number
The size of the IV in bytes.
key
Set Signature
set key(key): void
Specify the symmetric key to be used for encryption or decryption.
Remarks
This parameter is mandatory.Parameters
key
SymmetricKey
The symmetric key to use.
Returns
void
Inherited from
CipherContextBuilder.key
Methods
buildDecryptionContext()
buildDecryptionContext():DecryptionContext
Build a context that can be used for decryption operations.
Returns
DecryptionContext
A decryption context.
Throws
AccessDeniedError If the key lacks the KeyPurpose.DECRYPT purpose.Throws
InvalidArgumentError If any mandatory parameter is missing or the key is invalid.Inherited from
CipherContextBuilder.buildDecryptionContext
buildEncryptionContext()
buildEncryptionContext():EncryptionContext
Build a context that can be used for encryption operations.
Returns
EncryptionContext
An encryption context.
Throws
AccessDeniedError If the key lacks the KeyPurpose.ENCRYPT purpose.Throws
InvalidArgumentError If any mandatory parameter is missing or the key is invalid.Inherited from
CipherContextBuilder.buildEncryptionContext
buildWrappingContext()
buildWrappingContext(scheme): WrappingContext
Build a context that can be used for wrapping keys.
Parameters
scheme
WrappingScheme
The wrapping scheme to be used.
Returns
WrappingContext
A wrapping context.
Throws
AccessDeniedError If the key lacks the KeyPurpose.WRAP and KeyPurpose.UNWRAP purposes.Throws
InvalidArgumentError If any mandatory parameter is missing or the key is invalid.Throws
NotSupportedError If the implementation does not support wrapping operations.Inherited from
CipherContextBuilder.buildWrappingContext

