Options
All
  • Public
  • Public/Protected
  • All
Menu

pkijs

Index

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

AccessDescriptionParameters: PkiObjectParameters & Partial<IAccessDescription>
AccuracyParameters: PkiObjectParameters & Partial<IAccuracy>
AccuracySchema: SchemaParameters<{ micros?: string; millis?: string; seconds?: string }>
AlgorithmIdentifierParameters: PkiObjectParameters & Partial<IAlgorithmIdentifier>
AlgorithmIdentifierSchema: SchemaParameters<{ algorithmIdentifier?: string; algorithmParams?: string }>
AltNameParameters: PkiObjectParameters & Partial<IAltName>
ArgumentType: "undefined" | "null" | "boolean" | "number" | "string" | "object" | "Array" | "ArrayBuffer" | "ArrayBufferView" | AnyConstructor
AttCertValidityPeriodParameters: PkiObjectParameters & Partial<IAttCertValidityPeriod>
AttCertValidityPeriodSchema: SchemaParameters<{ notAfterTime?: string; notBeforeTime?: string }>
AttributeCertificateInfoV1Parameters: PkiObjectParameters & Partial<IAttributeCertificateInfoV1>
AttributeCertificateInfoV1Schema: SchemaParameters<{ attrCertValidityPeriod?: AttCertValidityPeriodSchema; attributes?: string; baseCertificateID?: string; extensions?: ExtensionsSchema; issuer?: string; issuerUniqueID?: string; serialNumber?: string; signature?: AlgorithmIdentifierSchema; subjectName?: string; version?: string }>
AttributeCertificateInfoV2Parameters: PkiObjectParameters & Partial<AttributeCertificateInfoV2>
AttributeCertificateInfoV2Schema: SchemaParameters<{ attrCertValidityPeriod?: AttCertValidityPeriodSchema; attributes?: string; extensions?: ExtensionsSchema; holder?: HolderSchema; issuer?: string; issuerUniqueID?: string; serialNumber?: string; signature?: AlgorithmIdentifierSchema; version?: string }>
AttributeCertificateV1Parameters: PkiObjectParameters & Partial<IAttributeCertificateV1>
AttributeCertificateV2Parameters: PkiObjectParameters & Partial<IAttributeCertificateV2>
AttributeParameters: PkiObjectParameters & Partial<IAttribute>
AttributeSchema: SchemaParameters<{ setName?: string; type?: string; values?: string }>
AttributeTypeAndValueParameters: PkiObjectParameters & Partial<IAttributeTypeAndValue>
AttributeValueType: asn1js.Utf8String | asn1js.BmpString | asn1js.UniversalString | asn1js.NumericString | asn1js.PrintableString | asn1js.TeletexString | asn1js.VideotexString | asn1js.IA5String | asn1js.GraphicString | asn1js.VisibleString | asn1js.GeneralString | asn1js.CharacterString
AuthenticatedSafeParameters: PkiObjectParameters & Partial<IAuthenticatedSafe>
AuthorityKeyIdentifierParameters: PkiObjectParameters & Partial<IAuthorityKeyIdentifier>
BasicConstraintsParameters: PkiObjectParameters & Partial<IBasicConstraints>
BasicOCSPResponseParameters: PkiObjectParameters & Partial<IBasicOCSPResponse>
CAVersionParameters: PkiObjectParameters & Partial<ICAVersion>
CRLBagParameters: PkiObjectParameters & Partial<ICRLBag>
CRLDistributionPointsParameters: PkiObjectParameters & Partial<ICRLDistributionPoints>
CertBagParameters: PkiObjectParameters & Partial<ICertBag>
CertIDParameters: PkiObjectParameters & Partial<ICertID>
CertIDSchema: SchemaParameters<{ hashAlgorithm?: string; hashAlgorithmObject?: AlgorithmIdentifierSchema; issuerKeyHash?: string; issuerNameHash?: string; serialNumber?: string }>
CertificateParameters: PkiObjectParameters & Partial<ICertificate>

Constructor parameters for the Certificate class

CertificatePoliciesParameters: PkiObjectParameters & Partial<ICertificatePolicies>
CertificateRevocationListParameters: PkiObjectParameters & Partial<ICertificateRevocationList>
CertificateSchema: SchemaParameters<{ signatureAlgorithm?: AlgorithmIdentifierSchema; signatureValue?: string; tbsCertificate?: TBSCertificateSchema }>

Parameters for Certificate schema generation

CertificateSetParameters: PkiObjectParameters & Partial<ICertificateSet>
CertificateTemplateParameters: PkiObjectParameters & Partial<ICertificateTemplate>
CertificationRequestParameters: PkiObjectParameters & Partial<ICertificationRequest>
ContentEncryptionAesCbcParams: AesCbcParams & AesDerivedKeyParams
ContentEncryptionAesGcmParams: AesGcmParams & AesDerivedKeyParams
ContentInfoParameters: PkiObjectParameters & Partial<IContentInfo>
ContentInfoSchema: SchemaParameters<{ content?: string; contentType?: string }>
CryptoEngineAlgorithmOperation: "sign" | "encrypt" | "generateKey" | "importKey" | "exportKey" | "verify"
DigestInfoParameters: PkiObjectParameters & Partial<IDigestInfo>
DigestInfoSchema: SchemaParameters<{ digest?: string; digestAlgorithm?: AlgorithmIdentifierSchema }>
DistributionPointName: GeneralName[] | RelativeDistinguishedNames
DistributionPointNameJson: GeneralNameJson[] | RelativeDistinguishedNamesJson
DistributionPointParameters: PkiObjectParameters & Partial<IDistributionPoint>
ECCCMSSharedInfoParameters: PkiObjectParameters & Partial<IECCCMSSharedInfo>
ECPrivateKeyParameters: PkiObjectParameters & Partial<IECPrivateKey> & { json?: ECPrivateKeyJson }
ECPublicKeyParameters: PkiObjectParameters & Partial<IECPublicKey> & { json?: ECPublicKeyJson }
EncapsulatedContentInfoParameters: PkiObjectParameters & Partial<IEncapsulatedContentInfo>
EncapsulatedContentInfoSchema: SchemaParameters<{ eContent?: string; eContentType?: string }>
EncryptedContentInfoSchema: SchemaParameters<{ contentEncryptionAlgorithm?: AlgorithmIdentifierSchema; contentType?: string; encryptedContent?: string }>
EncryptedContentParameters: PkiObjectParameters & Partial<IEncryptedContentInfo>
EncryptedDataEncryptParams: Omit<CryptoEngineEncryptParams, "contentType">
EncryptedDataParameters: PkiObjectParameters & Partial<IEncryptedData>
EnvelopedDataParameters: PkiObjectParameters & Partial<IEnvelopedData>
ExtKeyUsageParameters: PkiObjectParameters & Partial<IExtKeyUsage>
ExtensionParsedValue: SchemaCompatible & { parsingError?: string } | SchemaType
ExtensionSchema: SchemaParameters<{ critical?: string; extnID?: string; extnValue?: string }>
ExtensionsParameters: PkiObjectParameters & Partial<IExtensions>
ExtensionsSchema: SchemaParameters<{ extension?: ExtensionSchema; extensions?: string }>
FindIssuerCallback: ((certificate: Certificate, validationEngine: CertificateChainValidationEngine) => Promise<Certificate[]>)

Type declaration

FindOriginCallback: ((certificate: Certificate, validationEngine: CertificateChainValidationEngine) => string)

Type declaration

GeneralNameParameters: PkiObjectParameters & Partial<{ type: 1 | 2 | 6; value: string } | { type: 0 | 3 | 4 | 7 | 8; value: any }>
GeneralNamesParameters: PkiObjectParameters & Partial<IGeneralNames>
GeneralNamesSchema: SchemaParameters<{ generalNames?: string }>
GeneralSubtreeParameters: PkiObjectParameters & Partial<IGeneralSubtree>
HolderParameters: PkiObjectParameters & Partial<IHolder>
HolderSchema: SchemaParameters<{ baseCertificateID?: string; entityName?: string; objectDigestInfo?: string }>
InfoAccessParameters: PkiObjectParameters & Partial<IInfoAccess>
IssuerAndSerialNumberParameters: PkiObjectParameters & Partial<IIssuerAndSerialNumber>
IssuerAndSerialNumberSchema: SchemaParameters<{ issuer?: RelativeDistinguishedNamesSchema; serialNumber?: string }>
IssuerSerialParameters: PkiObjectParameters & Partial<IIssuerSerial>
IssuingDistributionPointParameters: PkiObjectParameters & Partial<IIssuingDistributionPoint>
KEKIdentifierParameters: PkiObjectParameters & Partial<IKEKIdentifier>
KEKIdentifierSchema: SchemaParameters<{ date?: string; keyIdentifier?: string; other?: OtherKeyAttributeSchema }>
KEKRecipientInfoParameters: PkiObjectParameters & Partial<IKEKRecipientInfo>
KeyAgreeRecipientIdentifierParameters: PkiObjectParameters & Partial<IKeyAgreeRecipientIdentifier>
KeyAgreeRecipientIdentifierSchema: SchemaParameters<{ issuerAndSerialNumber?: IssuerAndSerialNumberSchema; rKeyId?: RecipientKeyIdentifierSchema }>
KeyAgreeRecipientInfoParameters: PkiObjectParameters & Partial<IKeyAgreeRecipientInfo>
KeyTransRecipientInfoParameters: PkiObjectParameters & Partial<IKeyTransRecipientInfo>
MacDataParameters: PkiObjectParameters & Partial<IMacData>
MacDataSchema: SchemaParameters<{ iterations?: string; mac?: DigestInfoSchema; macSalt?: string }>
MakeInternalValuesParams: {} | { hmacHashAlgorithm: string; iterations: number; password: ArrayBuffer; pbkdf2HashAlgorithm: Algorithm } | { hashAlgorithm: string; privateKey: CryptoKey; signingCertificate: Certificate }
MessageImprintParameters: PkiObjectParameters & Partial<IMessageImprint>
MessageImprintSchema: SchemaParameters<{ hashAlgorithm?: AlgorithmIdentifierSchema; hashedMessage?: string }>
NameConstraintsParameters: PkiObjectParameters & Partial<INameConstraints>
OCSPRequestParameters: PkiObjectParameters & Partial<IOCSPRequest>
OCSPResponseParameters: PkiObjectParameters & Partial<IOCSPResponse>
ObjectDigestInfoParameters: PkiObjectParameters & Partial<IObjectDigestInfo>
OriginatorIdentifierOrKeyParameters: PkiObjectParameters & Partial<IOriginatorIdentifierOrKey>
OriginatorIdentifierOrKeySchema: SchemaParameters
OriginatorInfoParameters: PkiObjectParameters & Partial<IOriginatorInfo>
OriginatorPublicKeyParameters: PkiObjectParameters & Partial<IOriginatorPublicKey>
OtherCertificateFormatParameters: PkiObjectParameters & Partial<IOtherCertificateFormat>
OtherKeyAttributeParameters: PkiObjectParameters & Partial<IOtherKeyAttribute>
OtherKeyAttributeSchema: SchemaType
OtherPrimeInfoParameters: PkiObjectParameters & Partial<IOtherPrimeInfo> & { json?: OtherPrimeInfoJson }
OtherPrimeInfoSchema: SchemaParameters<{ coefficient?: string; exponent?: string; prime?: string }>
OtherRecipientInfoParameters: PkiObjectParameters & Partial<IOtherRecipientInfo>
OtherRevocationInfoFormatParameters: PkiObjectParameters & Partial<IOtherRevocationInfoFormat>
PBES2ParamsParameters: PkiObjectParameters & Partial<IPBES2Params>
PBKDF2ParamsParameters: PkiObjectParameters & Partial<IPBKDF2Params>
PFXParameters: PkiObjectParameters & Partial<IPFX>
PKCS8ShroudedKeyBagParameters: PkiObjectParameters & Partial<IPKCS8ShroudedKeyBag>
PKIStatusInfoParameters: PkiObjectParameters & Partial<IPKIStatusInfo>
PKIStatusInfoSchema: SchemaParameters<{ failInfo?: string; status?: string; statusStrings?: string }>
PasswordRecipientinfoParameters: PkiObjectParameters & Partial<IPasswordRecipientInfo>
PolicyConstraintsParameters: PkiObjectParameters & Partial<IPolicyConstraints>
PolicyInformationParameters: PkiObjectParameters & Partial<IPolicyInformation>
PolicyMappingParameters: PkiObjectParameters & Partial<IPolicyMapping>
PolicyMappingsParameters: PkiObjectParameters & Partial<IPolicyMappings>
PolicyQualifierInfoParameters: PkiObjectParameters & Partial<IPolicyQualifierInfo>
PrivateKeyInfoParameters: PkiObjectParameters & Partial<IPrivateKeyInfo> & { json?: JsonWebKey }
PrivateKeyUsagePeriodParameters: PkiObjectParameters & Partial<IPrivateKeyUsagePeriod>
PublicKeyInfoParameters: PkiObjectParameters & Partial<IPublicKeyInfo> & { json?: JsonWebKey }
PublicKeyInfoSchema: SchemaParameters<{ algorithm?: AlgorithmIdentifierSchema; subjectPublicKey?: string }>
QCStatementParameters: PkiObjectParameters & Partial<IQCStatement>
QCStatementSchema: SchemaParameters<{ id?: string; type?: string }>
QCStatementsParameters: PkiObjectParameters & Partial<IQCStatements>
RSAESOAEPParamsParameters: PkiObjectParameters & Partial<IRSAESOAEPParams>
RSAPrivateKeyParameters: PkiObjectParameters & Partial<IRSAPrivateKey> & { json?: RSAPrivateKeyJson }
RSAPublicKeyParameters: PkiObjectParameters & Partial<IRSAPublicKey> & { json?: RSAPublicKeyJson }
RSASSAPSSParamsParameters: PkiObjectParameters & Partial<IRSASSAPSSParams>
RecipientEncryptedKeyParameters: PkiObjectParameters & Partial<IRecipientEncryptedKey>
RecipientEncryptedKeysParameters: PkiObjectParameters & Partial<IRecipientEncryptedKeys>
RecipientEncryptedKeysSchema: SchemaParameters<{ RecipientEncryptedKeys?: string }>
RecipientIdentifierMixedJson: IssuerAndSerialNumberJson | asn1js.OctetStringJson
RecipientIdentifierParameters: PkiObjectParameters & Partial<IRecipientIdentifier>
RecipientIdentifierSchema: SchemaParameters
RecipientIdentifierType: IssuerAndSerialNumber | asn1js.OctetString
RecipientInfoParameters: PkiObjectParameters & Partial<IRecipientInfo>
RecipientKeyIdentifierParameters: PkiObjectParameters & Partial<IRecipientKeyIdentifier>
RecipientKeyIdentifierSchema: SchemaParameters<{ date?: string; other?: OtherKeyAttributeSchema; subjectKeyIdentifier?: string }>
RelativeDistinguishedNamesParameters: PkiObjectParameters & Partial<IRelativeDistinguishedNames>
RelativeDistinguishedNamesSchema: SchemaParameters<{ repeatedSequence?: string; repeatedSet?: string; typeAndValue?: SchemaType }>
RequestParameters: PkiObjectParameters & Partial<IRequest>
RequestSchema: SchemaParameters<{ extensions?: ExtensionSchema; reqCert?: CertIDSchema; singleRequestExtensions?: string }>
ResponseBytesParameters: PkiObjectParameters & Partial<IResponseBytes>
ResponseBytesSchema: SchemaParameters<{ response?: string; responseType?: string }>
ResponseDataParameters: PkiObjectParameters & Partial<IResponseData>
ResponseDataSchema: SchemaParameters<{ ResponseDataByKey?: string; ResponseDataByName?: RelativeDistinguishedNamesSchema; extensions?: ExtensionsSchema; producedAt?: string; responderID?: string; response?: SingleResponseSchema; version?: string }>
RevocationInfoChoicesParameters: PkiObjectParameters & Partial<IRevocationInfoChoices>
RevocationInfoChoicesSchema: SchemaParameters<{ crls?: string }>
RevokedCertificateParameters: PkiObjectParameters & Partial<IRevokedCertificate>
SafeBagParameters<T>: PkiObjectParameters & Partial<ISafeBag<T>>

Type Parameters

SafeContent: ContentInfo | EncryptedData | EnvelopedData | object
SafeContentsParameters: PkiObjectParameters & Partial<ISafeContents>
SchemaNames: { blockName?: string; optional?: boolean }

Type declaration

  • Optional blockName?: string
  • Optional optional?: boolean
SchemaType: any
SecretBagParameters: PkiObjectParameters & Partial<ISecretBag>
SignatureParameters: PkiObjectParameters & Partial<ISignature>
SignatureSchema: SchemaParameters<{ certs?: string; signature?: string; signatureAlgorithm?: AlgorithmIdentifierSchema }>
SignedAndUnsignedAttributesParameters: PkiObjectParameters & Partial<ISignedAndUnsignedAttributes>
SignedAndUnsignedAttributesSchema: SchemaParameters<{ attributes?: string; tagNumber?: number }>
SignedCertificateTimestampListParameters: PkiObjectParameters & Partial<ISignedCertificateTimestampList>
SignedCertificateTimestampParameters: PkiObjectParameters & Partial<ISignedCertificateTimestamp> & { stream?: bs.SeqStream }
SignedDataParameters: PkiObjectParameters & Partial<ISignedData>
SignerInfoParameters: PkiObjectParameters & Partial<ISignerInfo>
SingleResponseParameters: PkiObjectParameters & Partial<ISingleResponse>
SingleResponseSchema: SchemaParameters<{ certID?: CertIDSchema; certStatus?: string; nextUpdate?: string; singleExtensions?: ExtensionsSchema; thisUpdate?: string }>
SubjectDirectoryAttributesParameters: PkiObjectParameters & Partial<ISubjectDirectoryAttributes>
TBSCertListSchema: SchemaParameters<{ crlExtensions?: ExtensionsSchema; issuer?: RelativeDistinguishedNamesSchema; signature?: AlgorithmIdentifierSchema; tbsCertListNextUpdate?: TimeSchema; tbsCertListRevokedCertificates?: string; tbsCertListThisUpdate?: TimeSchema; tbsCertListVersion?: string }>
TBSCertificateSchema: SchemaParameters<{ extensions?: ExtensionsSchema; issuer?: RelativeDistinguishedNamesSchema; notAfter?: TimeSchema; notBefore?: TimeSchema; signature?: AlgorithmIdentifierSchema; subject?: RelativeDistinguishedNamesSchema; subjectPublicKeyInfo?: PublicKeyInfoSchema; tbsCertificateIssuerUniqueID?: string; tbsCertificateSerialNumber?: string; tbsCertificateSubjectUniqueID?: string; tbsCertificateValidity?: string; tbsCertificateVersion?: string }>
TBSRequestParameters: PkiObjectParameters & Partial<ITBSRequest>
TBSRequestSchema: SchemaParameters<{ TBSRequestVersion?: string; extensions?: ExtensionsSchema; requestExtensions?: string; requestList?: string; requestNames?: RequestSchema; requestorName?: GeneralNameSchema; requests?: string }>
TSTInfoParameters: PkiObjectParameters & Partial<ITSTInfo>
TimeParameters: PkiObjectParameters & Partial<ITime>
TimeSchema: SchemaParameters<{ generalTimeName?: string; utcTimeName?: string }>
TimeStampReqParameters: PkiObjectParameters & Partial<ITimeStampReq>
TimeStampRespParameters: PkiObjectParameters & Partial<ITimeStampResp>
V2FormParameters: PkiObjectParameters & Partial<IV2Form>

Variables

HASHED_MESSAGE: "hashedMessage" = "hashedMessage"
HASH_ALGORITHM: "hashAlgorithm" = "hashAlgorithm"
MICROS: "micros" = "micros"
MILLIS: "millis" = "millis"
POLICY_IDENTIFIER: "policyIdentifier" = "policyIdentifier"
POLICY_QUALIFIERS: "policyQualifiers" = "policyQualifiers"
RDN: "RDN" = "RDN"
SECONDS: "seconds" = "seconds"
TYPE: "type" = "type"
TYPE_AND_VALUES: "typesAndValues" = "typesAndValues"
VALUE: "value" = "value"
VALUE_BEFORE_DECODE: "valueBeforeDecode" = "valueBeforeDecode"
engine: GlobalCryptoEngine = ...
id_AnyPolicy: "2.5.29.32.0" = "2.5.29.32.0"
id_AuthorityInfoAccess: "1.3.6.1.5.5.7.1.1" = "1.3.6.1.5.5.7.1.1"
id_AuthorityKeyIdentifier: "2.5.29.35" = "2.5.29.35"
id_BaseCRLNumber: "2.5.29.27" = "2.5.29.27"
id_BasicConstraints: "2.5.29.19" = "2.5.29.19"
id_CRLBag_X509CRL: "1.2.840.113549.1.9.23.1" = "1.2.840.113549.1.9.23.1"
id_CRLDistributionPoints: "2.5.29.31" = "2.5.29.31"
id_CRLNumber: "2.5.29.20" = "2.5.29.20"
id_CRLReason: "2.5.29.21" = "2.5.29.21"
id_CertBag_AttributeCertificate: "1.2.840.113549.1.9.22.3" = "1.2.840.113549.1.9.22.3"
id_CertBag_SDSICertificate: "1.2.840.113549.1.9.22.2" = "1.2.840.113549.1.9.22.2"
id_CertBag_X509Certificate: "1.2.840.113549.1.9.22.1" = "1.2.840.113549.1.9.22.1"
id_CertificateIssuer: "2.5.29.29" = "2.5.29.29"
id_CertificatePolicies: "2.5.29.32" = "2.5.29.32"
id_ContentType_Data: "1.2.840.113549.1.7.1" = "1.2.840.113549.1.7.1"
id_ContentType_EncryptedData: "1.2.840.113549.1.7.6" = "1.2.840.113549.1.7.6"
id_ContentType_EnvelopedData: "1.2.840.113549.1.7.3" = "1.2.840.113549.1.7.3"
id_ContentType_SignedData: "1.2.840.113549.1.7.2" = "1.2.840.113549.1.7.2"
id_ExtKeyUsage: "2.5.29.37" = "2.5.29.37"
id_FreshestCRL: "2.5.29.46" = "2.5.29.46"
id_InhibitAnyPolicy: "2.5.29.54" = "2.5.29.54"
id_InvalidityDate: "2.5.29.24" = "2.5.29.24"
id_IssuerAltName: "2.5.29.18" = "2.5.29.18"
id_IssuingDistributionPoint: "2.5.29.28" = "2.5.29.28"
id_KeyUsage: "2.5.29.15" = "2.5.29.15"
id_MicrosoftAppPolicies: "1.3.6.1.4.1.311.21.10" = "1.3.6.1.4.1.311.21.10"
id_MicrosoftCaVersion: "1.3.6.1.4.1.311.21.1" = "1.3.6.1.4.1.311.21.1"
id_MicrosoftCertTemplateV1: "1.3.6.1.4.1.311.20.2" = "1.3.6.1.4.1.311.20.2"
id_MicrosoftCertTemplateV2: "1.3.6.1.4.1.311.21.7" = "1.3.6.1.4.1.311.21.7"
id_MicrosoftPrevCaCertHash: "1.3.6.1.4.1.311.21.2" = "1.3.6.1.4.1.311.21.2"
id_NameConstraints: "2.5.29.30" = "2.5.29.30"
id_PKIX_OCSP_Basic: string = ...
id_PolicyConstraints: "2.5.29.36" = "2.5.29.36"
id_PolicyMappings: "2.5.29.33" = "2.5.29.33"
id_PrivateKeyUsagePeriod: "2.5.29.16" = "2.5.29.16"
id_QCStatements: "1.3.6.1.5.5.7.1.3" = "1.3.6.1.5.5.7.1.3"
id_SignedCertificateTimestampList: "1.3.6.1.4.1.11129.2.4.2" = "1.3.6.1.4.1.11129.2.4.2"
id_SubjectAltName: "2.5.29.17" = "2.5.29.17"
id_SubjectDirectoryAttributes: "2.5.29.9" = "2.5.29.9"
id_SubjectInfoAccess: "1.3.6.1.5.5.7.1.11" = "1.3.6.1.5.5.7.1.11"
id_SubjectKeyIdentifier: "2.5.29.14" = "2.5.29.14"
id_ad: string = ...
id_ad_caIssuers: string = ...
id_ad_ocsp: string = ...
id_eContentType_TSTInfo: "1.2.840.113549.1.9.16.1.4" = "1.2.840.113549.1.9.16.1.4"
id_pkix: "1.3.6.1.5.5.7" = "1.3.6.1.5.5.7"
id_sha1: "1.3.14.3.2.26" = "1.3.14.3.2.26"
id_sha256: "2.16.840.1.101.3.4.2.1" = "2.16.840.1.101.3.4.2.1"
id_sha384: "2.16.840.1.101.3.4.2.2" = "2.16.840.1.101.3.4.2.2"
id_sha512: "2.16.840.1.101.3.4.2.3" = "2.16.840.1.101.3.4.2.3"

Functions

  • createCMSECDSASignature(signatureBuffer: ArrayBuffer): ArrayBuffer
  • Create CMS ECDSA signature from WebCrypto ECDSA signature

    Parameters

    • signatureBuffer: ArrayBuffer

      WebCrypto result of "sign" function

    Returns ArrayBuffer

  • createECDSASignatureFromCMS(cmsSignature: AsnType, pointSize: number): ArrayBuffer
  • Create a single ArrayBuffer from CMS ECDSA signature

    Parameters

    • cmsSignature: AsnType

      ASN.1 SEQUENCE contains CMS ECDSA signature

    • pointSize: number

      Size of EC point. Use ECNamedCurves.find to get correct point size

    Returns ArrayBuffer

    WebCrypto signature

  • getAlgorithmByOID<T>(oid: string, safety?: boolean, target?: string): T | object
  • getAlgorithmByOID<T>(oid: string, safety: true, target?: string): T
  • Gets WebCrypto algorithm by well-known OID

    Type Parameters

    • T extends Algorithm = Algorithm

    Parameters

    • oid: string

      algorithm identifier

    • Optional safety: boolean

      if true throws exception on unknown algorithm identifier

    • Optional target: string

      name of the target

    Returns T | object

    WebCrypto algorithm or an empty object

  • Type Parameters

    • T extends Algorithm = Algorithm

    Parameters

    • oid: string
    • safety: true
    • Optional target: string

    Returns T

  • getOIDByAlgorithm(algorithm: Algorithm, safety?: boolean, target?: string): string
  • Get OID for each specific algorithm

    throws

    Throws {@link Error} exception if unknown WebCrypto algorithm

    Parameters

    • algorithm: Algorithm

      WebCrypto Algorithm

    • Optional safety: boolean

      if true throws exception on unknown algorithm

    • Optional target: string

      name of the target

    Returns string

  • getRandomValues(view: Uint8Array): Uint8Array
  • Initialize input Uint8Array by random values (with help from current "crypto engine")

    Parameters

    • view: Uint8Array

    Returns Uint8Array

  • kdf(hashFunction: string, Zbuffer: ArrayBuffer, keydatalen: number, SharedInfo: ArrayBuffer, crypto?: ICryptoEngine): Promise<ArrayBuffer>
  • ANS X9.63 Key Derivation Function

    Parameters

    • hashFunction: string

      Used hash function

    • Zbuffer: ArrayBuffer

      ArrayBuffer containing ECDH shared secret to derive from

    • keydatalen: number

      Length (!!! in BITS !!!) of used kew derivation function

    • SharedInfo: ArrayBuffer

      Usually DER encoded "ECC_CMS_SharedInfo" structure

    • crypto: ICryptoEngine = ...

      Crypto engine

    Returns Promise<ArrayBuffer>

  • Sets global crypto engine

    deprecated

    Since version 3.0.0

    Parameters

    Returns void

  • Sets global crypto engine

    since

    3.0.0

    Parameters

    • name: string

      Name of the crypto engine

    • Optional crypto: ICryptoEngine

      Crypto engine

    Returns void

  • stringPrep(inputString: string): string
  • String preparation function. In a future here will be realization of algorithm from RFC4518

    Parameters

    • inputString: string

      JavaScript string. As soon as for each ASN.1 string type we have a specific transformation function here we will work with pure JavaScript string

    Returns string

    Formatted string

  • Verify SignedCertificateTimestamp for specific certificate content

    Parameters

    • certificate: Certificate

      Certificate for which verification would be performed

    • issuerCertificate: Certificate

      Certificate of the issuer of target certificate

    • logs: Log[]

      Array of objects with information about each CT Log (like here: https://ct.grahamedgecombe.com/logs.json)

    • index: number = ...

      Index of SignedCertificateTimestamp inside SignedCertificateTimestampList (for -1 would verify all)

    • crypto: ICryptoEngine = ...

      Crypto engine

    Returns Promise<boolean[]>

    Array of verification results

Generated using TypeDoc