wrapKeyAsync

fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: Algorithm): Promise<ArrayBuffer>(source)

The wrapKey() method of the SubtleCrypto interface 'wraps' a key.

MDN Reference


fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: String): Promise<ArrayBuffer>(source)
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: RsaOaepParams): Promise<ArrayBuffer>(source)
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AesCtrParams): Promise<ArrayBuffer>(source)
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AesCbcParams): Promise<ArrayBuffer>(source)
fun wrapKeyAsync(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AesGcmParams): Promise<ArrayBuffer>(source)