Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CryptographyProvider

Package version

Represents an object that can perform cryptography operations.

internal

Hierarchy

  • CryptographyProvider

Implemented by

Index

Methods

decrypt

encrypt

isSupported

sign

signData

unwrapKey

verify

  • verify(algorithm: SignatureAlgorithm, digest: Uint8Array, signature: Uint8Array, options?: VerifyOptions): Promise<VerifyResult>
  • Verify the signed message digest

    internal

    Parameters

    • algorithm: SignatureAlgorithm

      The signing algorithm to use to verify with.

    • digest: Uint8Array

      The digest to verify.

    • signature: Uint8Array

      The signature to verify the digest against.

    • Optional options: VerifyOptions

      Additional options.

    Returns Promise<VerifyResult>

verifyData

  • verifyData(algorithm: string, data: Uint8Array, signature: Uint8Array, updatedOptions: OperationOptions): Promise<VerifyResult>
  • Verify the signed block of data

    internal

    Parameters

    • algorithm: string

      The algorithm to use to verify with.

    • data: Uint8Array

      The signed block of data to verify.

    • signature: Uint8Array

      The signature to verify the block against.

    • updatedOptions: OperationOptions

      Additional options.

    Returns Promise<VerifyResult>

wrapKey

Generated using TypeDoc