Extends
BaseCryptoClass
Accessors
algorithm
Set Signature
set algorithm(algorithm): void
Set the algorithm this key will be used with.
Defaults to AES-256.
Throws
InvalidArgumentError If the algorithm is not supported.Parameters
algorithm
SymmetricAlgorithm
The symmetric algorithm to use.
Returns
void
bits
Set Signature
set bits(bits): void
Set the number of bits for the key.
Defaults to 256 for AES.
Parameters
bits
number
The number of bits for the key.
Returns
void

