@eryx/crypto/hazmat/asn1 Module
Summary
Functions
API Reference
Functions
asn1.parseDer
asn1.dumpNode
asn1.parseBySchema
asn1.parsePublicRsaKey
asn1.parsePrivateRsaKey
Types
Asn1Node
class: string
tag: number | string
constructed: boolean
value: buffer?
Asn1Integer
SubjectPublicKeyInfo
type SubjectPublicKeyInfo = {
algorithm: string,
subjectPublicKey: { modulus: Asn1Integer, publicExponent: Asn1Integer }
}
algorithm: string
OtherPrimeInfo
SubjectPrivateKeyInfo
type SubjectPrivateKeyInfo = {
algorithm: string,
version: Asn1Integer,
subjectPrivateKey: {
version: Asn1Integer,
modulus: Asn1Integer,
publicExponent: Asn1Integer,
privateExponent: Asn1Integer,
prime1: Asn1Integer,
prime2: Asn1Integer,
exponent1: Asn1Integer,
exponent2: Asn1Integer,
coefficient: Asn1Integer,
otherPrimeInfos: { OtherPrimeInfo }?
}
}
algorithm: string
subjectPrivateKey: { version: Asn1Integer, modulus: Asn1Integer, publicExponent: Asn1Integer, privateExponent: Asn1Integer, prime1: Asn1Integer, prime2: Asn1Integer, exponent1: Asn1Integer, exponent2: Asn1Integer, coefficient: Asn1Integer, otherPrimeInfos: { OtherPrimeInfo }? }