Extends
BaseCryptoClass
Constructors
new SymmetricKeyBuilder()
new SymmetricKeyBuilder(): SymmetricKeyBuilderReturns
SymmetricKeyBuilderMethods
buildFromRaw()
buildFromRaw(rawKey:ArrayBuffer): Promise<SymmetricKey>
Build a symmetric key from raw bytes.
The created key will inherit the properties (algorithm, purposes, exportability) set on this builder.
Parameters
rawKey
ArrayBuffer
The actual bytes to be used as the symmetric key.
Returns
Promise<SymmetricKey>
Promise A promise that resolves to the built symmetric key.
buildGenerated()
buildGenerated():Promise<SymmetricKey>
Build a new symmetric key based on the configured properties.
Throws
- If the chosen key size is invalid.
Returns
Promise<SymmetricKey>
Promise A promise that resolves to the generated symmetric key.

