UNPKG

@peculiar/asn1-ecc

Version:

ASN.1 schema for elliptic-curve private keys and related identifiers defined in RFC 5915, RFC 5480, and RFC 3279.

11 lines (10 loc) 500 B
import { AlgorithmIdentifier } from "@peculiar/asn1-x509"; import * as oid from "./object_identifiers.js"; function create(algorithm) { return new AlgorithmIdentifier({ algorithm }); } export const ecdsaWithSHA1 = create(oid.id_ecdsaWithSHA1); export const ecdsaWithSHA224 = create(oid.id_ecdsaWithSHA224); export const ecdsaWithSHA256 = create(oid.id_ecdsaWithSHA256); export const ecdsaWithSHA384 = create(oid.id_ecdsaWithSHA384); export const ecdsaWithSHA512 = create(oid.id_ecdsaWithSHA512);