algorithms.js 497 B

12345678910
  1. import { AlgorithmIdentifier } from "@peculiar/asn1-x509";
  2. import * as oid from "./object_identifiers";
  3. function create(algorithm) {
  4. return new AlgorithmIdentifier({ algorithm });
  5. }
  6. export const ecdsaWithSHA1 = create(oid.id_ecdsaWithSHA1);
  7. export const ecdsaWithSHA224 = create(oid.id_ecdsaWithSHA224);
  8. export const ecdsaWithSHA256 = create(oid.id_ecdsaWithSHA256);
  9. export const ecdsaWithSHA384 = create(oid.id_ecdsaWithSHA384);
  10. export const ecdsaWithSHA512 = create(oid.id_ecdsaWithSHA512);