How to use the @peculiar/asn1-schema.AsnPropTypes.Any function in @peculiar/asn1-schema

To help you get started, we’ve selected a few @peculiar/asn1-schema examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PeculiarVentures / webcrypto / src / asn / rsa_private_key.ts View on Github external
@JsonProp({ name: "q", converter: JsonBase64UrlArrayBufferConverter })
  public prime2 = new ArrayBuffer(0);

  @AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
  @JsonProp({ name: "dp", converter: JsonBase64UrlArrayBufferConverter })
  public exponent1 = new ArrayBuffer(0);

  @AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
  @JsonProp({ name: "dq", converter: JsonBase64UrlArrayBufferConverter })
  public exponent2 = new ArrayBuffer(0);

  @AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
  @JsonProp({ name: "qi", converter: JsonBase64UrlArrayBufferConverter })
  public coefficient = new ArrayBuffer(0);

  @AsnProp({ type: AsnPropTypes.Any, optional: true })
  public otherPrimeInfos?: ArrayBuffer;

}

@peculiar/asn1-schema

Decorators for ASN.1 schemas building

MIT
Latest version published 3 months ago

Package Health Score

70 / 100
Full package analysis