Generate key pair (for asymmetric algorithm) or secret key (for symmetric algorithm).
Key generation parameters.
Whether to generate as extractable WebCrypto key.
Generated key pair or secret key.
Some algorithms allow importing an existing key pair from a serialization format such as
PKCS#8 or JWK. This could be supported by passing the serialized key as part of params
,
and then importing instead of generating in this method.
Optional
importImport public key from SubjectPublicKeyInfo.
This should only appear on asymmetric algorithm.
Readonly
keyWebCrypto KeyUsages for generated keys. These are specified separately for private/public/secret keys.
Create a low level decryption function from private key (in asymmetric algorithm) or secret key (in symmetric algorithm).
Create a low level encryption function from public key (in asymmetric algorithm) or secret key (in symmetric algorithm).
Readonly
uuidIdentifies an algorithm in storage.
This should be changed when the serialization format changes.
Generated using TypeDoc
WebCrypto based encryption algorithm implementation.