Class SubtleCryptoAbstract
Methods
decrypt
- decrypt(algorithm, key, cipherText): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
deriveBits
- deriveBits(algorithm, baseKey, length): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
deriveKey
- deriveKey(algorithm, baseKey, derivedKeyAlgorithm, extractable, keyUsages): Promise<CryptoKey>
digest
- digest(algorithm, data): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
encrypt
- encrypt(algorithm, key, plainText): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
importKey
- importKey(format, keyData, algorithm, extractable, keyUsages): Promise<CryptoKey>
sign
- sign(algorithm, key, data): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
timingSafeEqual
- timingSafeEqual(a, b): boolean
Parameters
- a: ArrayBuffer | ArrayBufferView
- b: ArrayBuffer | ArrayBufferView
Returns boolean
unwrapKey
- unwrapKey(format, wrappedKey, unwrappingKey, unwrapAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages): Promise<CryptoKey>
verify
- verify(algorithm, key, signature, data): Promise<boolean>
Returns Promise<boolean>
wrapKey
- wrapKey(format, key, wrappingKey, wrapAlgorithm): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
MDN Reference