Class AsnEcSignatureFormatter

Provides mechanism to convert ASN.1 signature value to WebCrypto and back

To register it's implementation in global use tsyringe container

Example

import { container } from "tsyringe";

container.registerSingleton(diAsnSignatureFormatter, AsnDefaultSignatureFormatter);

Implements

Constructors

Properties

defaultNamedCurveSize: number = 32
namedCurveSize: Map<string, number> = ...

Methods

  • Parameters

    • data: BufferSource
    • positive: boolean = false

    Returns ArrayBufferLike

  • Converts ASN.1 signature to WebCrypto format

    Parameters

    • algorithm: Algorithm

      Key and signing algorithm

    • signature: BufferSource

      ASN.1 signature value in DER format

    Returns null | ArrayBuffer

Generated using TypeDoc