SubtleCrypto

This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). Available only in secure contexts.

MDN Reference

Functions

Link copied to clipboard
suspend fun decrypt(algorithm: String, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun decrypt(algorithm: AesCbcParams, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun decrypt(algorithm: AesCtrParams, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun decrypt(algorithm: AesGcmParams, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun decrypt(algorithm: RsaOaepParams, key: CryptoKey, data: BufferSource): ArrayBuffer

suspend fun decrypt(algorithm: Algorithm, key: CryptoKey, data: BufferSource): ArrayBuffer
Link copied to clipboard
suspend fun deriveBits(algorithm: String, baseKey: CryptoKey, length: Int? = definedExternally): ArrayBuffer
suspend fun deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: Int? = definedExternally): ArrayBuffer
suspend fun deriveBits(algorithm: HkdfParams, baseKey: CryptoKey, length: Int? = definedExternally): ArrayBuffer
suspend fun deriveBits(algorithm: Pbkdf2Params, baseKey: CryptoKey, length: Int? = definedExternally): ArrayBuffer

suspend fun deriveBits(algorithm: Algorithm, baseKey: CryptoKey, length: Int? = definedExternally): ArrayBuffer
Link copied to clipboard
fun deriveBitsAsync(algorithm: String, baseKey: CryptoKey, length: Int? = definedExternally): Promise<ArrayBuffer>
fun deriveBitsAsync(algorithm: Algorithm, baseKey: CryptoKey, length: Int? = definedExternally): Promise<ArrayBuffer>
fun deriveBitsAsync(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: Int? = definedExternally): Promise<ArrayBuffer>
fun deriveBitsAsync(algorithm: HkdfParams, baseKey: CryptoKey, length: Int? = definedExternally): Promise<ArrayBuffer>
fun deriveBitsAsync(algorithm: Pbkdf2Params, baseKey: CryptoKey, length: Int? = definedExternally): Promise<ArrayBuffer>
Link copied to clipboard
suspend fun deriveKey(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun deriveKey(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey

suspend fun deriveKey(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
Link copied to clipboard
fun deriveKeyAsync(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: String,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Algorithm,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: EcdhKeyDeriveParams,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: HkdfParams,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: AesDerivedKeyParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: HkdfParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun deriveKeyAsync(    algorithm: Pbkdf2Params,     baseKey: CryptoKey,     derivedKeyType: Pbkdf2Params,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
Link copied to clipboard
suspend fun digest(algorithm: String, data: BufferSource): ArrayBuffer

suspend fun digest(algorithm: Algorithm, data: BufferSource): ArrayBuffer
Link copied to clipboard
Link copied to clipboard
suspend fun encrypt(algorithm: String, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun encrypt(algorithm: AesCbcParams, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun encrypt(algorithm: AesCtrParams, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun encrypt(algorithm: AesGcmParams, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun encrypt(algorithm: RsaOaepParams, key: CryptoKey, data: BufferSource): ArrayBuffer

suspend fun encrypt(algorithm: Algorithm, key: CryptoKey, data: BufferSource): ArrayBuffer
Link copied to clipboard
suspend fun exportKey(format: KeyFormat, key: CryptoKey): ArrayBuffer

suspend fun exportKey(format: KeyFormat.jwk, key: CryptoKey): JsonWebKey
Link copied to clipboard
Link copied to clipboard
suspend fun generateKey(algorithm: String, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): JsAny
suspend fun generateKey(algorithm: AesKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun generateKey(algorithm: Algorithm, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): JsAny
suspend fun generateKey(algorithm: EcKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKeyPair
suspend fun generateKey(algorithm: HmacKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun generateKey(algorithm: Pbkdf2Params, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun generateKey(algorithm: RsaHashedKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKeyPair

suspend fun generateKey(algorithm: Ed25519, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKeyPair
Link copied to clipboard
fun generateKeyAsync(algorithm: String, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<JsAny>
fun generateKeyAsync(algorithm: AesKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun generateKeyAsync(algorithm: Algorithm, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<JsAny>
fun generateKeyAsync(algorithm: Ed25519, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>
fun generateKeyAsync(algorithm: HmacKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun generateKeyAsync(algorithm: Pbkdf2Params, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun generateKeyAsync(    algorithm: RsaHashedKeyGenParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>
Link copied to clipboard
suspend fun importKey(    format: KeyFormat,     keyData: BufferSource,     algorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat,     keyData: BufferSource,     algorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat,     keyData: BufferSource,     algorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat,     keyData: BufferSource,     algorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat,     keyData: BufferSource,     algorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat,     keyData: BufferSource,     algorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun importKey(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey

suspend fun importKey(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
Link copied to clipboard
fun importKeyAsync(    format: KeyFormat,     keyData: BufferSource,     algorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat,     keyData: BufferSource,     algorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat,     keyData: BufferSource,     algorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat,     keyData: BufferSource,     algorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat,     keyData: BufferSource,     algorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat,     keyData: BufferSource,     algorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun importKeyAsync(    format: KeyFormat.jwk,     keyData: JsonWebKey,     algorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
Link copied to clipboard
suspend fun sign(algorithm: String, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun sign(algorithm: EcdsaParams, key: CryptoKey, data: BufferSource): ArrayBuffer
suspend fun sign(algorithm: RsaPssParams, key: CryptoKey, data: BufferSource): ArrayBuffer

suspend fun sign(algorithm: Algorithm, key: CryptoKey, data: BufferSource): ArrayBuffer
Link copied to clipboard
Link copied to clipboard
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey

suspend fun unwrapKey(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): CryptoKey
Link copied to clipboard
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: String,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCbcParams,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesCtrParams,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: AesGcmParams,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: Algorithm,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: String,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: AesKeyAlgorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: Algorithm,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: EcKeyImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: HmacImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
fun unwrapKeyAsync(    format: KeyFormat,     wrappedKey: BufferSource,     unwrappingKey: CryptoKey,     unwrapAlgorithm: RsaOaepParams,     unwrappedKeyAlgorithm: RsaHashedImportParams,     extractable: Boolean,     keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>
Link copied to clipboard
suspend fun verify(algorithm: String, key: CryptoKey, signature: BufferSource, data: BufferSource): Boolean
suspend fun verify(algorithm: EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Boolean
suspend fun verify(algorithm: RsaPssParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Boolean

suspend fun verify(algorithm: Algorithm, key: CryptoKey, signature: BufferSource, data: BufferSource): Boolean
Link copied to clipboard
fun verifyAsync(algorithm: String, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<JsBoolean>
fun verifyAsync(algorithm: Algorithm, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<JsBoolean>
fun verifyAsync(algorithm: EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<JsBoolean>
fun verifyAsync(algorithm: RsaPssParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<JsBoolean>
Link copied to clipboard
suspend fun wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: String): ArrayBuffer
suspend fun wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AesCbcParams): ArrayBuffer
suspend fun wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AesCtrParams): ArrayBuffer
suspend fun wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AesGcmParams): ArrayBuffer
suspend fun wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: RsaOaepParams): ArrayBuffer

suspend fun wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: Algorithm): ArrayBuffer
Link copied to clipboard
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: String): Promise<ArrayBuffer>
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AesCbcParams): Promise<ArrayBuffer>
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AesCtrParams): Promise<ArrayBuffer>
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AesGcmParams): Promise<ArrayBuffer>
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: Algorithm): Promise<ArrayBuffer>
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: RsaOaepParams): Promise<ArrayBuffer>