Options
All
  • Public
  • Public/Protected
  • All
Menu

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).

Hierarchy

  • SubtleCrypto

Index

Methods

decrypt

deriveBits

deriveKey

digest

  • digest(algorithm: string | Algorithm, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>
  • Parameters

    • algorithm: string | Algorithm
    • data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer

    Returns PromiseLike<ArrayBuffer>

encrypt

exportKey

  • Parameters

    Returns PromiseLike<JsonWebKey>

  • Parameters

    • format: "raw" | "pkcs8" | "spki"
    • key: CryptoKey

    Returns PromiseLike<ArrayBuffer>

  • Parameters

    Returns PromiseLike<JsonWebKey | ArrayBuffer>

generateKey

importKey

sign

  • Parameters

    • algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams
    • key: CryptoKey
    • data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer

    Returns PromiseLike<ArrayBuffer>

unwrapKey

  • unwrapKey(format: string, wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>
  • Parameters

    • format: string
    • wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer
    • unwrappingKey: CryptoKey
    • unwrapAlgorithm: string | Algorithm
    • unwrappedKeyAlgorithm: string | Algorithm
    • extractable: boolean
    • keyUsages: string[]

    Returns PromiseLike<CryptoKey>

verify

  • verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<boolean>
  • Parameters

    • algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams
    • key: CryptoKey
    • signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer
    • data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer

    Returns PromiseLike<boolean>

wrapKey

  • Parameters

    Returns PromiseLike<ArrayBuffer>

Generated using TypeDoc