SubtleCrypto

open external class SubtleCrypto

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun decrypt(algorithm: SubtleCryptoEncryptAlgorithm, key: CryptoKey, cipherText: ArrayBuffer): Promise<ArrayBuffer>
open fun decrypt(algorithm: SubtleCryptoEncryptAlgorithm, key: CryptoKey, cipherText: ArrayBufferView): Promise<ArrayBuffer>
open fun decrypt(algorithm: String, key: CryptoKey, cipherText: ArrayBuffer): Promise<ArrayBuffer>
open fun decrypt(algorithm: String, key: CryptoKey, cipherText: ArrayBufferView): Promise<ArrayBuffer>
Link copied to clipboard
open fun deriveBits(algorithm: SubtleCryptoDeriveKeyAlgorithm, baseKey: CryptoKey, length: Number?): Promise<ArrayBuffer>
open fun deriveBits(algorithm: String, baseKey: CryptoKey, length: Number?): Promise<ArrayBuffer>
Link copied to clipboard
open fun deriveKey(algorithm: SubtleCryptoDeriveKeyAlgorithm, baseKey: CryptoKey, derivedKeyAlgorithm: SubtleCryptoImportKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun deriveKey(algorithm: SubtleCryptoDeriveKeyAlgorithm, baseKey: CryptoKey, derivedKeyAlgorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun deriveKey(algorithm: String, baseKey: CryptoKey, derivedKeyAlgorithm: SubtleCryptoImportKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun deriveKey(algorithm: String, baseKey: CryptoKey, derivedKeyAlgorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
Link copied to clipboard
open fun digest(algorithm: SubtleCryptoHashAlgorithm, data: ArrayBuffer): Promise<ArrayBuffer>
open fun digest(algorithm: SubtleCryptoHashAlgorithm, data: ArrayBufferView): Promise<ArrayBuffer>
open fun digest(algorithm: String, data: ArrayBuffer): Promise<ArrayBuffer>
open fun digest(algorithm: String, data: ArrayBufferView): Promise<ArrayBuffer>
Link copied to clipboard
open fun encrypt(algorithm: SubtleCryptoEncryptAlgorithm, key: CryptoKey, plainText: ArrayBuffer): Promise<ArrayBuffer>
open fun encrypt(algorithm: SubtleCryptoEncryptAlgorithm, key: CryptoKey, plainText: ArrayBufferView): Promise<ArrayBuffer>
open fun encrypt(algorithm: String, key: CryptoKey, plainText: ArrayBuffer): Promise<ArrayBuffer>
open fun encrypt(algorithm: String, key: CryptoKey, plainText: ArrayBufferView): Promise<ArrayBuffer>
Link copied to clipboard
open fun exportKey(format: String, key: CryptoKey): Promise<dynamic>
Link copied to clipboard
open fun generateKey(algorithm: SubtleCryptoGenerateKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<dynamic>
open fun generateKey(algorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<dynamic>
Link copied to clipboard
open fun importKey(format: String, keyData: JsonWebKey, algorithm: SubtleCryptoImportKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun importKey(format: String, keyData: JsonWebKey, algorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun importKey(format: String, keyData: ArrayBuffer, algorithm: SubtleCryptoImportKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun importKey(format: String, keyData: ArrayBuffer, algorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun importKey(format: String, keyData: ArrayBufferView, algorithm: SubtleCryptoImportKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun importKey(format: String, keyData: ArrayBufferView, algorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
Link copied to clipboard
open fun sign(algorithm: SubtleCryptoSignAlgorithm, key: CryptoKey, data: ArrayBuffer): Promise<ArrayBuffer>
open fun sign(algorithm: SubtleCryptoSignAlgorithm, key: CryptoKey, data: ArrayBufferView): Promise<ArrayBuffer>
open fun sign(algorithm: String, key: CryptoKey, data: ArrayBuffer): Promise<ArrayBuffer>
open fun sign(algorithm: String, key: CryptoKey, data: ArrayBufferView): Promise<ArrayBuffer>
Link copied to clipboard
open fun timingSafeEqual(a: ArrayBuffer, b: ArrayBuffer): Boolean
open fun timingSafeEqual(a: ArrayBuffer, b: ArrayBufferView): Boolean
open fun timingSafeEqual(a: ArrayBufferView, b: ArrayBuffer): Boolean
open fun timingSafeEqual(a: ArrayBufferView, b: ArrayBufferView): Boolean
Link copied to clipboard
open fun unwrapKey(format: String, wrappedKey: ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: SubtleCryptoEncryptAlgorithm, unwrappedKeyAlgorithm: SubtleCryptoImportKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun unwrapKey(format: String, wrappedKey: ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: SubtleCryptoEncryptAlgorithm, unwrappedKeyAlgorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun unwrapKey(format: String, wrappedKey: ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: String, unwrappedKeyAlgorithm: SubtleCryptoImportKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun unwrapKey(format: String, wrappedKey: ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: String, unwrappedKeyAlgorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun unwrapKey(format: String, wrappedKey: ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: SubtleCryptoEncryptAlgorithm, unwrappedKeyAlgorithm: SubtleCryptoImportKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun unwrapKey(format: String, wrappedKey: ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: SubtleCryptoEncryptAlgorithm, unwrappedKeyAlgorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun unwrapKey(format: String, wrappedKey: ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: String, unwrappedKeyAlgorithm: SubtleCryptoImportKeyAlgorithm, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
open fun unwrapKey(format: String, wrappedKey: ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: String, unwrappedKeyAlgorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
Link copied to clipboard
open fun verify(algorithm: SubtleCryptoSignAlgorithm, key: CryptoKey, signature: ArrayBuffer, data: ArrayBuffer): Promise<Boolean>
open fun verify(algorithm: SubtleCryptoSignAlgorithm, key: CryptoKey, signature: ArrayBuffer, data: ArrayBufferView): Promise<Boolean>
open fun verify(algorithm: SubtleCryptoSignAlgorithm, key: CryptoKey, signature: ArrayBufferView, data: ArrayBuffer): Promise<Boolean>
open fun verify(algorithm: SubtleCryptoSignAlgorithm, key: CryptoKey, signature: ArrayBufferView, data: ArrayBufferView): Promise<Boolean>
open fun verify(algorithm: String, key: CryptoKey, signature: ArrayBuffer, data: ArrayBuffer): Promise<Boolean>
open fun verify(algorithm: String, key: CryptoKey, signature: ArrayBuffer, data: ArrayBufferView): Promise<Boolean>
open fun verify(algorithm: String, key: CryptoKey, signature: ArrayBufferView, data: ArrayBuffer): Promise<Boolean>
open fun verify(algorithm: String, key: CryptoKey, signature: ArrayBufferView, data: ArrayBufferView): Promise<Boolean>
Link copied to clipboard
open fun wrapKey(format: String, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: SubtleCryptoEncryptAlgorithm): Promise<ArrayBuffer>
open fun wrapKey(format: String, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: String): Promise<ArrayBuffer>