SubtleCrypto

interface SubtleCrypto

exported from runtime.d

Methods

async SubtleCrypto.decrypt(algorithm: AlgorithmIdentifier, key: CryptoKey, data: BufferSource) Promise<ArrayBuffer>
async SubtleCrypto.deriveBits(algorithm: AlgorithmIdentifier, baseKey: CryptoKey, length: number | null) Promise<ArrayBuffer>
async SubtleCrypto.deriveKey(algorithm: AlgorithmIdentifier, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]) Promise<CryptoKey>
async SubtleCrypto.digest(algorithm: AlgorithmIdentifier, data: BufferSource) Promise<ArrayBuffer>
async SubtleCrypto.encrypt(algorithm: AlgorithmIdentifier, key: CryptoKey, data: BufferSource) Promise<ArrayBuffer>
async SubtleCrypto.exportKey(format: “jwk”, key: CryptoKey) Promise<JsonWebKey>
async SubtleCrypto.generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]) Promise<CryptoKey | CryptoKeyPair>
async SubtleCrypto.importKey(format: KeyFormat, keyData: JsonWebKey | BufferSource, algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]) Promise<CryptoKey>
async SubtleCrypto.sign(algorithm: AlgorithmIdentifier, key: CryptoKey, data: BufferSource) Promise<ArrayBuffer>
SubtleCrypto.supports(operation: string, algorithm: AlgorithmIdentifier, lengthOrHash: number | AlgorithmIdentifier | null) boolean
async SubtleCrypto.unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]) Promise<CryptoKey>
async SubtleCrypto.verify(algorithm: AlgorithmIdentifier, key: CryptoKey, signature: BufferSource, data: BufferSource) Promise<boolean>
async SubtleCrypto.wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier) Promise<ArrayBuffer>