Module: sjcl
Variables
default
• Const
default: Object
[[CrypoProvider]] implemenation using the SJCL library. This is used to decrypt legacy (<3.x) Padlock containers that use AES in CCM mode which is unfortunately not supported by the WebCrypto standard. Only supports encryption/decryption using AES-CCM.
Type declaration
Name | Type |
---|---|
decrypt |
(key : Uint8Array , ct : Uint8Array , params : AESEncryptionParams ) => Promise <Uint8Array > |
deriveKey |
(_password : string , _params : PBKDF2Params ) => Promise <Uint8Array > |
encrypt |
(key : Uint8Array , pt : Uint8Array , params : AESEncryptionParams ) => Promise <Uint8Array > |
isAvailable |
() => boolean |
randomBytes |
(_bytes : number ) => Uint8Array |
randomKey |
(_n : number ) => Promise <never > |