SubtleCrypto
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>
Link copied to clipboard
open fun deriveBits(algorithm: SubtleCryptoDeriveKeyAlgorithm, 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>
Link copied to clipboard
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>
Link copied to clipboard
open fun generateKey(algorithm: SubtleCryptoGenerateKeyAlgorithm, 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>
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>
Link copied to clipboard
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>
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>