pkijs
Enumerations
Classes
- AbstractCryptoEngine
- AccessDescription
- Accuracy
- AlgorithmIdentifier
- AltName
- ArgumentError
- AsnError
- AttCertValidityPeriod
- Attribute
- AttributeCertificateInfoV1
- AttributeCertificateInfoV2
- AttributeCertificateV1
- AttributeCertificateV2
- AttributeTypeAndValue
- AuthenticatedSafe
- AuthorityKeyIdentifier
- BasicConstraints
- BasicOCSPResponse
- CAVersion
- CRLBag
- CRLDistributionPoints
- CertBag
- CertID
- Certificate
- CertificateChainValidationEngine
- CertificatePolicies
- CertificateRevocationList
- CertificateSet
- CertificateTemplate
- CertificationRequest
- ChainValidationError
- ContentInfo
- CryptoEngine
- DigestInfo
- DistributionPoint
- ECCCMSSharedInfo
- ECNamedCurves
- ECPrivateKey
- ECPublicKey
- EncapsulatedContentInfo
- EncryptedContentInfo
- EncryptedData
- EnvelopedData
- ExtKeyUsage
- Extension
- ExtensionValueFactory
- Extensions
- GeneralName
- GeneralNames
- GeneralSubtree
- Holder
- InfoAccess
- IssuerAndSerialNumber
- IssuerSerial
- IssuingDistributionPoint
- KEKIdentifier
- KEKRecipientInfo
- KeyAgreeRecipientIdentifier
- KeyAgreeRecipientInfo
- KeyBag
- KeyTransRecipientInfo
- MacData
- MessageImprint
- NameConstraints
- OCSPRequest
- OCSPResponse
- ObjectDigestInfo
- OriginatorIdentifierOrKey
- OriginatorInfo
- OriginatorPublicKey
- OtherCertificateFormat
- OtherKeyAttribute
- OtherPrimeInfo
- OtherRecipientInfo
- OtherRevocationInfoFormat
- PBES2Params
- PBKDF2Params
- PFX
- PKCS8ShroudedKeyBag
- PKIStatusInfo
- ParameterError
- PasswordRecipientinfo
- PkiObject
- PolicyConstraints
- PolicyInformation
- PolicyMapping
- PolicyMappings
- PolicyQualifierInfo
- PrivateKeyInfo
- PrivateKeyUsagePeriod
- PublicKeyInfo
- QCStatement
- QCStatements
- RSAESOAEPParams
- RSAPrivateKey
- RSAPublicKey
- RSASSAPSSParams
- RecipientEncryptedKey
- RecipientEncryptedKeys
- RecipientIdentifier
- RecipientInfo
- RecipientKeyIdentifier
- RelativeDistinguishedNames
- Request
- ResponseBytes
- ResponseData
- RevocationInfoChoices
- RevokedCertificate
- SafeBag
- SafeBagValueFactory
- SafeContents
- SecretBag
- Signature
- SignedAndUnsignedAttributes
- SignedCertificateTimestamp
- SignedCertificateTimestampList
- SignedData
- SignedDataVerifyError
- SignerInfo
- SingleResponse
- SubjectDirectoryAttributes
- TBSRequest
- TSTInfo
- Time
- TimeStampReq
- TimeStampResp
- V2Form
Interfaces
- AccessDescriptionJson
- AccuracyJson
- AlgorithmIdentifierJson
- AltNameJson
- AnyConstructor
- AsnCompareSchemaResult
- AsnFromBerResult
- AttCertValidityPeriodJson
- AttributeCertificateInfoV1Json
- AttributeCertificateInfoV2Json
- AttributeCertificateV1Json
- AttributeCertificateV2Json
- AttributeJson
- AttributeTypeAndValueJson
- AuthenticatedSafeJson
- AuthorityKeyIdentifierJson
- BagTypeConstructor
- BasicConstraintsJson
- BasicOCSPResponseJson
- BasicOCSPResponseVerifyParams
- CAVersionJson
- CRLBagJson
- CRLDistributionPointsJson
- CertBagJson
- CertIDCreateParams
- CertIDJson
- CertificateChainValidationEngineParameters
- CertificateChainValidationEngineVerifyParams
- CertificateChainValidationEngineVerifyResult
- CertificateJson
- CertificatePoliciesJson
- CertificateRevocationListJson
- CertificateRevocationListVerifyParams
- CertificateSetJson
- CertificateStatus
- CertificateTemplateJson
- CertificationRequestInfoParameters
- CertificationRequestJson
- ContentInfoJson
- CryptoEngineAlgorithmParams
- CryptoEngineConstructor
- CryptoEngineDecryptParams
- CryptoEngineEncryptParams
- CryptoEngineParameters
- CryptoEnginePublicKeyParams
- CryptoEngineSignWithPrivateKeyParams
- CryptoEngineSignatureParams
- CryptoEngineStampDataWithPasswordParams
- CryptoEngineVerifyDataStampedWithPasswordParams
- DigestInfoJson
- DistributionPointJson
- ECCCMSSharedInfoJson
- ECNamedCurve
- ECPrivateKeyJson
- ECPublicKeyJson
- EncapsulatedContentInfoJson
- EncryptedContentInfoJson
- EncryptedContentInfoSplit
- EncryptedDataJson
- EnvelopedDataDecryptBaseParams
- EnvelopedDataDecryptBufferParams
- EnvelopedDataDecryptKeyParams
- EnvelopedDataEncryptionParams
- EnvelopedDataJson
- ExtKeyUsageJson
- ExtensionConstructorParameters
- ExtensionJson
- ExtensionValueConstructor
- ExtensionValueType
- ExtensionsJson
- GeneralNameJson
- GeneralNameSchema
- GeneralNamesJson
- GeneralSubtreeJson
- GlobalCryptoEngine
- HolderJson
- IAccessDescription
- IAccuracy
- IAlgorithmIdentifier
- IAltName
- IAttCertValidityPeriod
- IAttribute
- IAttributeCertificateInfoV1
- IAttributeCertificateInfoV2
- IAttributeCertificateV1
- IAttributeCertificateV2
- IAttributeTypeAndValue
- IAuthenticatedSafe
- IAuthorityKeyIdentifier
- IBasicConstraints
- IBasicOCSPResponse
- ICAVersion
- ICRLBag
- ICRLDistributionPoints
- ICertBag
- ICertID
- ICertificate
- ICertificatePolicies
- ICertificateRevocationList
- ICertificateSet
- ICertificateTemplate
- ICertificationRequest
- IContentInfo
- ICryptoEngine
- IDigestInfo
- IDistributionPoint
- IECCCMSSharedInfo
- IECPrivateKey
- IECPublicKey
- IEncapsulatedContentInfo
- IEncryptedContentInfo
- IEncryptedData
- IEnvelopedData
- IExtKeyUsage
- IExtension
- IExtensions
- IGeneralName
- IGeneralNames
- IGeneralSubtree
- IHolder
- IInfoAccess
- IIssuerAndSerialNumber
- IIssuerSerial
- IIssuingDistributionPoint
- IKEKIdentifier
- IKEKRecipientInfo
- IKeyAgreeRecipientIdentifier
- IKeyAgreeRecipientInfo
- IKeyTransRecipientInfo
- IMacData
- IMessageImprint
- INameConstraints
- IOCSPRequest
- IOCSPResponse
- IObjectDigestInfo
- IOriginatorIdentifierOrKey
- IOriginatorInfo
- IOriginatorPublicKey
- IOtherCertificateFormat
- IOtherKeyAttribute
- IOtherPrimeInfo
- IOtherRecipientInfo
- IOtherRevocationInfoFormat
- IPBES2Params
- IPBKDF2Params
- IPFX
- IPKCS8ShroudedKeyBag
- IPKIStatusInfo
- IPasswordRecipientInfo
- IPolicyConstraints
- IPolicyInformation
- IPolicyMapping
- IPolicyMappings
- IPolicyQualifierInfo
- IPrivateKeyInfo
- IPrivateKeyUsagePeriod
- IPublicKeyInfo
- IQCStatement
- IQCStatements
- IRSAESOAEPParams
- IRSAPrivateKey
- IRSAPublicKey
- IRSASSAPSSParams
- IRecipientEncryptedKey
- IRecipientEncryptedKeys
- IRecipientIdentifier
- IRecipientInfo
- IRecipientKeyIdentifier
- IRelativeDistinguishedNames
- IRequest
- IResponseBytes
- IResponseData
- IRevocationInfoChoices
- IRevokedCertificate
- ISafeBag
- ISafeContents
- ISecretBag
- ISignature
- ISignedAndUnsignedAttributes
- ISignedCertificateTimestamp
- ISignedCertificateTimestampList
- ISignedData
- ISignerInfo
- ISingleResponse
- ISubjectDirectoryAttributes
- ITBSRequest
- ITSTInfo
- ITime
- ITimeStampReq
- ITimeStampResp
- IV2Form
- InfoAccessJson
- IssuerAndSerialNumberJson
- IssuerSerialJson
- IssuingDistributionPointJson
- KEKIdentifierJson
- KEKRecipientInfoJson
- KeyAgreeRecipientIdentifierJson
- KeyAgreeRecipientInfoJson
- KeyTransRecipientInfoJson
- Log
- MacDataJson
- MessageImprintJson
- NameConstraintsJson
- OCSPRequestJson
- OCSPResponseJson
- ObjectDigestInfoJson
- OriginatorIdentifierOrKeyJson
- OriginatorInfoJson
- OriginatorPublicKeyJson
- OtherCertificateFormatJson
- OtherKeyAttributeJson
- OtherPrimeInfoJson
- OtherRecipientInfoJson
- OtherRevocationInfoFormatJson
- PBES2ParamsJson
- PBKDF2ParamsJson
- PFXJson
- PFXParsedValue
- PKCS8ShroudedKeyBagJson
- PKIStatusInfoJson
- PasswordRecipientInfoJson
- PkiObjectParameters
- PolicyConstraintsJson
- PolicyInformationJson
- PolicyMappingJson
- PolicyMappingsJson
- PolicyQualifierInfoJson
- PrivateKeyInfoJson
- PrivateKeyUsagePeriodJson
- PublicKeyInfoJson
- QCStatementJson
- QCStatementsJson
- RSAESOAEPParamsJson
- RSAPrivateKeyJson
- RSAPublicKeyJson
- RSASSAPSSParamsJson
- RecipientEncryptedKeyJson
- RecipientEncryptedKeysJson
- RecipientIdentifierJson
- RecipientInfoJson
- RecipientKeyIdentifierJson
- RelativeDistinguishedNamesJson
- RequestJson
- ResponseBytesJson
- ResponseDataJson
- RevocationInfoChoicesJson
- RevokedCertificateJson
- SafeBagJson
- SafeContentsJson
- SchemaCompatible
- SchemaConstructor
- SchemaParameters
- SecretBagJson
- SignatureJson
- SignedAndUnsignedAttributesJson
- SignedCertificateTimestampJson
- SignedCertificateTimestampListJson
- SignedDataJson
- SignedDataVerifyErrorParams
- SignedDataVerifyParams
- SignedDataVerifyResult
- SignerInfoJson
- SingleResponseJson
- SubjectDirectoryAttributesJson
- TBSRequestJson
- TSTInfoJson
- TSTInfoVerifyParams
- TimeJson
- TimeStampReqJson
- TimeStampRespJson
- TimeStampRespVerifyParams
- V2FormJson
Type Aliases
AccessDescriptionParameters
Ƭ AccessDescriptionParameters: PkiObjectParameters
& Partial
<IAccessDescription
>
AccuracyParameters
Ƭ AccuracyParameters: PkiObjectParameters
& Partial
<IAccuracy
>
AccuracySchema
Ƭ AccuracySchema: SchemaParameters
<{ micros?
: string
; millis?
: string
; seconds?
: string
}>
AlgorithmIdentifierParameters
Ƭ AlgorithmIdentifierParameters: PkiObjectParameters
& Partial
<IAlgorithmIdentifier
>
AlgorithmIdentifierSchema
Ƭ AlgorithmIdentifierSchema: SchemaParameters
<{ algorithmIdentifier?
: string
; algorithmParams?
: string
}>
AltNameParameters
Ƭ AltNameParameters: PkiObjectParameters
& Partial
<IAltName
>
ArgumentType
Ƭ ArgumentType: "undefined"
| "null"
| "boolean"
| "number"
| "string"
| "object"
| "Array"
| "ArrayBuffer"
| "ArrayBufferView"
| AnyConstructor
AttCertValidityPeriodParameters
Ƭ AttCertValidityPeriodParameters: PkiObjectParameters
& Partial
<IAttCertValidityPeriod
>
AttCertValidityPeriodSchema
Ƭ AttCertValidityPeriodSchema: SchemaParameters
<{ notAfterTime?
: string
; notBeforeTime?
: string
}>
AttributeCertificateInfoV1Parameters
Ƭ AttributeCertificateInfoV1Parameters: PkiObjectParameters
& Partial
<IAttributeCertificateInfoV1
>
AttributeCertificateInfoV1Schema
Ƭ AttributeCertificateInfoV1Schema: SchemaParameters
<{ attrCertValidityPeriod?
: AttCertValidityPeriodSchema
; attributes?
: string
; baseCertificateID?
: string
; extensions?
: ExtensionsSchema
; issuer?
: string
; issuerUniqueID?
: string
; serialNumber?
: string
; signature?
: AlgorithmIdentifierSchema
; subjectName?
: string
; version?
: string
}>
AttributeCertificateInfoV2Parameters
Ƭ AttributeCertificateInfoV2Parameters: PkiObjectParameters
& Partial
<AttributeCertificateInfoV2
>
AttributeCertificateInfoV2Schema
Ƭ AttributeCertificateInfoV2Schema: SchemaParameters
<{ attrCertValidityPeriod?
: AttCertValidityPeriodSchema
; attributes?
: string
; extensions?
: ExtensionsSchema
; holder?
: HolderSchema
; issuer?
: string
; issuerUniqueID?
: string
; serialNumber?
: string
; signature?
: AlgorithmIdentifierSchema
; version?
: string
}>
AttributeCertificateV1Parameters
Ƭ AttributeCertificateV1Parameters: PkiObjectParameters
& Partial
<IAttributeCertificateV1
>
AttributeCertificateV2Parameters
Ƭ AttributeCertificateV2Parameters: PkiObjectParameters
& Partial
<IAttributeCertificateV2
>
AttributeParameters
Ƭ AttributeParameters: PkiObjectParameters
& Partial
<IAttribute
>
AttributeSchema
Ƭ AttributeSchema: SchemaParameters
<{ setName?
: string
; type?
: string
; values?
: string
}>
AttributeTypeAndValueParameters
Ƭ AttributeTypeAndValueParameters: PkiObjectParameters
& Partial
<IAttributeTypeAndValue
>
AttributeValueType
Ƭ 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
Ƭ AuthenticatedSafeParameters: PkiObjectParameters
& Partial
<IAuthenticatedSafe
>
AuthorityKeyIdentifierParameters
Ƭ AuthorityKeyIdentifierParameters: PkiObjectParameters
& Partial
<IAuthorityKeyIdentifier
>
BagType
Ƭ BagType: PrivateKeyInfo
| PKCS8ShroudedKeyBag
| CertBag
| CRLBag
| SecretBag
| SafeContents
BagTypeJson
Ƭ BagTypeJson: PrivateKeyInfoJson
| JsonWebKey
| PKCS8ShroudedKeyBagJson
| CertBagJson
| CRLBagJson
| SecretBagJson
| SafeContentsJson
BasicConstraintsParameters
Ƭ BasicConstraintsParameters: PkiObjectParameters
& Partial
<IBasicConstraints
>
BasicOCSPResponseParameters
Ƭ BasicOCSPResponseParameters: PkiObjectParameters
& Partial
<IBasicOCSPResponse
>
CAVersionParameters
Ƭ CAVersionParameters: PkiObjectParameters
& Partial
<ICAVersion
>
CRLBagParameters
Ƭ CRLBagParameters: PkiObjectParameters
& Partial
<ICRLBag
>
CRLDistributionPointsParameters
Ƭ CRLDistributionPointsParameters: PkiObjectParameters
& Partial
<ICRLDistributionPoints
>
CertBagParameters
Ƭ CertBagParameters: PkiObjectParameters
& Partial
<ICertBag
>
CertIDParameters
Ƭ CertIDParameters: PkiObjectParameters
& Partial
<ICertID
>
CertIDSchema
Ƭ CertIDSchema: SchemaParameters
<{ hashAlgorithm?
: string
; hashAlgorithmObject?
: AlgorithmIdentifierSchema
; issuerKeyHash?
: string
; issuerNameHash?
: string
; serialNumber?
: string
}>
CertificateParameters
Ƭ CertificateParameters: PkiObjectParameters
& Partial
<ICertificate
>
Constructor parameters for the Certificate class
CertificatePoliciesParameters
Ƭ CertificatePoliciesParameters: PkiObjectParameters
& Partial
<ICertificatePolicies
>
CertificateRevocationListParameters
Ƭ CertificateRevocationListParameters: PkiObjectParameters
& Partial
<ICertificateRevocationList
>
CertificateSchema
Ƭ CertificateSchema: SchemaParameters
<{ signatureAlgorithm?
: AlgorithmIdentifierSchema
; signatureValue?
: string
; tbsCertificate?
: TBSCertificateSchema
}>
Parameters for Certificate schema generation
CertificateSetItem
Ƭ CertificateSetItem: Certificate
| AttributeCertificateV1
| AttributeCertificateV2
| OtherCertificateFormat
CertificateSetItemJson
Ƭ CertificateSetItemJson: CertificateJson
| AttributeCertificateV1Json
| AttributeCertificateV2Json
| OtherCertificateFormatJson
CertificateSetParameters
Ƭ CertificateSetParameters: PkiObjectParameters
& Partial
<ICertificateSet
>
CertificateTemplateParameters
Ƭ CertificateTemplateParameters: PkiObjectParameters
& Partial
<ICertificateTemplate
>
CertificationRequestParameters
Ƭ CertificationRequestParameters: PkiObjectParameters
& Partial
<ICertificationRequest
>
ContentEncryptionAesCbcParams
Ƭ ContentEncryptionAesCbcParams: AesCbcParams
& AesDerivedKeyParams
ContentEncryptionAesGcmParams
Ƭ ContentEncryptionAesGcmParams: AesGcmParams
& AesDerivedKeyParams
ContentEncryptionAlgorithm
Ƭ ContentEncryptionAlgorithm: ContentEncryptionAesCbcParams
| ContentEncryptionAesGcmParams
ContentInfoParameters
Ƭ ContentInfoParameters: PkiObjectParameters
& Partial
<IContentInfo
>
ContentInfoSchema
Ƭ ContentInfoSchema: SchemaParameters
<{ content?
: string
; contentType?
: string
}>
CryptoEngineAlgorithmOperation
Ƭ CryptoEngineAlgorithmOperation: "sign"
| "encrypt"
| "generateKey"
| "importKey"
| "exportKey"
| "verify"
DigestInfoParameters
Ƭ DigestInfoParameters: PkiObjectParameters
& Partial
<IDigestInfo
>
DigestInfoSchema
Ƭ DigestInfoSchema: SchemaParameters
<{ digest?
: string
; digestAlgorithm?
: AlgorithmIdentifierSchema
}>
DistributionPointName
Ƭ DistributionPointName: GeneralName
[] | RelativeDistinguishedNames
DistributionPointNameJson
Ƭ DistributionPointNameJson: GeneralNameJson
[] | RelativeDistinguishedNamesJson
DistributionPointParameters
Ƭ DistributionPointParameters: PkiObjectParameters
& Partial
<IDistributionPoint
>
ECCCMSSharedInfoParameters
Ƭ ECCCMSSharedInfoParameters: PkiObjectParameters
& Partial
<IECCCMSSharedInfo
>
ECPrivateKeyParameters
Ƭ ECPrivateKeyParameters: PkiObjectParameters
& Partial
<IECPrivateKey
> & { json?
: ECPrivateKeyJson
}
ECPublicKeyParameters
Ƭ ECPublicKeyParameters: PkiObjectParameters
& Partial
<IECPublicKey
> & { json?
: ECPublicKeyJson
}
EncapsulatedContentInfoParameters
Ƭ EncapsulatedContentInfoParameters: PkiObjectParameters
& Partial
<IEncapsulatedContentInfo
>
EncapsulatedContentInfoSchema
Ƭ EncapsulatedContentInfoSchema: SchemaParameters
<{ eContent?
: string
; eContentType?
: string
}>
EncryptedContentInfoSchema
Ƭ EncryptedContentInfoSchema: SchemaParameters
<{ contentEncryptionAlgorithm?
: AlgorithmIdentifierSchema
; contentType?
: string
; encryptedContent?
: string
}>
EncryptedContentParameters
Ƭ EncryptedContentParameters: PkiObjectParameters
& Partial
<IEncryptedContentInfo
> & EncryptedContentInfoSplit
EncryptedDataEncryptParams
Ƭ EncryptedDataEncryptParams: Omit
<CryptoEngineEncryptParams
, "contentType"
>
EncryptedDataParameters
Ƭ EncryptedDataParameters: PkiObjectParameters
& Partial
<IEncryptedData
>
EnvelopedDataDecryptParams
Ƭ EnvelopedDataDecryptParams: EnvelopedDataDecryptBufferParams
| EnvelopedDataDecryptKeyParams
EnvelopedDataParameters
Ƭ EnvelopedDataParameters: PkiObjectParameters
& Partial
<IEnvelopedData
> & EncryptedContentInfoSplit
ExtKeyUsageParameters
Ƭ ExtKeyUsageParameters: PkiObjectParameters
& Partial
<IExtKeyUsage
>
ExtensionParameters
Ƭ ExtensionParameters: PkiObjectParameters
& ExtensionConstructorParameters
ExtensionParsedValue
Ƭ ExtensionParsedValue: SchemaCompatible
& { parsingError?
: string
} | SchemaType
ExtensionSchema
Ƭ ExtensionSchema: SchemaParameters
<{ critical?
: string
; extnID?
: string
; extnValue?
: string
}>
ExtensionsParameters
Ƭ ExtensionsParameters: PkiObjectParameters
& Partial
<IExtensions
>
ExtensionsSchema
Ƭ ExtensionsSchema: SchemaParameters
<{ extension?
: ExtensionSchema
; extensions?
: string
}>
FindIssuerCallback
Ƭ FindIssuerCallback: (certificate
: Certificate
, validationEngine
: CertificateChainValidationEngine
, crypto?
: ICryptoEngine
) => Promise
<Certificate
[]>
Type declaration
▸ (certificate
, validationEngine
, crypto?
): Promise
<Certificate
[]>
Parameters
Name | Type |
---|---|
certificate | Certificate |
validationEngine | CertificateChainValidationEngine |
crypto? | ICryptoEngine |
Returns
Promise
<Certificate
[]>
FindOriginCallback
Ƭ FindOriginCallback: (certificate
: Certificate
, validationEngine
: CertificateChainValidationEngine
) => string
Type declaration
▸ (certificate
, validationEngine
): string
Parameters
Name | Type |
---|---|
certificate | Certificate |
validationEngine | CertificateChainValidationEngine |
Returns
string
GeneralNameParameters
Ƭ GeneralNameParameters: PkiObjectParameters
& Partial
<{ type
: 1
| 2
| 6
; value
: string
} | { type
: 0
| 3
| 4
| 7
| 8
; value
: any
}>
GeneralNamesParameters
Ƭ GeneralNamesParameters: PkiObjectParameters
& Partial
<IGeneralNames
>
GeneralNamesSchema
Ƭ GeneralNamesSchema: SchemaParameters
<{ generalNames?
: string
}>
GeneralSubtreeParameters
Ƭ GeneralSubtreeParameters: PkiObjectParameters
& Partial
<IGeneralSubtree
>
HolderParameters
Ƭ HolderParameters: PkiObjectParameters
& Partial
<IHolder
>
HolderSchema
Ƭ HolderSchema: SchemaParameters
<{ baseCertificateID?
: string
; entityName?
: string
; objectDigestInfo?
: string
}>
InfoAccessParameters
Ƭ InfoAccessParameters: PkiObjectParameters
& Partial
<IInfoAccess
>
IssuerAndSerialNumberParameters
Ƭ IssuerAndSerialNumberParameters: PkiObjectParameters
& Partial
<IIssuerAndSerialNumber
>
IssuerAndSerialNumberSchema
Ƭ IssuerAndSerialNumberSchema: SchemaParameters
<{ issuer?
: RelativeDistinguishedNamesSchema
; serialNumber?
: string
}>
IssuerSerialParameters
Ƭ IssuerSerialParameters: PkiObjectParameters
& Partial
<IIssuerSerial
>
IssuingDistributionPointParameters
Ƭ IssuingDistributionPointParameters: PkiObjectParameters
& Partial
<IIssuingDistributionPoint
>
KEKIdentifierParameters
Ƭ KEKIdentifierParameters: PkiObjectParameters
& Partial
<IKEKIdentifier
>
KEKIdentifierSchema
Ƭ KEKIdentifierSchema: SchemaParameters
<{ date?
: string
; keyIdentifier?
: string
; other?
: OtherKeyAttributeSchema
}>
KEKRecipientInfoParameters
Ƭ KEKRecipientInfoParameters: PkiObjectParameters
& Partial
<IKEKRecipientInfo
>
KeyAgreeRecipientIdentifierParameters
Ƭ KeyAgreeRecipientIdentifierParameters: PkiObjectParameters
& Partial
<IKeyAgreeRecipientIdentifier
>
KeyAgreeRecipientIdentifierSchema
Ƭ KeyAgreeRecipientIdentifierSchema: SchemaParameters
<{ issuerAndSerialNumber?
: IssuerAndSerialNumberSchema
; rKeyId?
: RecipientKeyIdentifierSchema
}>
KeyAgreeRecipientInfoParameters
Ƭ KeyAgreeRecipientInfoParameters: PkiObjectParameters
& Partial
<IKeyAgreeRecipientInfo
>
KeyTransRecipientInfoParameters
Ƭ KeyTransRecipientInfoParameters: PkiObjectParameters
& Partial
<IKeyTransRecipientInfo
>
MacDataParameters
Ƭ MacDataParameters: PkiObjectParameters
& Partial
<IMacData
>
MacDataSchema
Ƭ MacDataSchema: SchemaParameters
<{ iterations?
: string
; mac?
: DigestInfoSchema
; macSalt?
: string
}>
MakeInternalValuesParams
Ƭ MakeInternalValuesParams: | { hmacHashAlgorithm
: string
; iterations
: number
; password
: ArrayBuffer
; pbkdf2HashAlgorithm
: Algorithm
} | { hashAlgorithm
: string
; privateKey
: CryptoKey
; signingCertificate
: Certificate
}
MessageImprintParameters
Ƭ MessageImprintParameters: PkiObjectParameters
& Partial
<IMessageImprint
>
MessageImprintSchema
Ƭ MessageImprintSchema: SchemaParameters
<{ hashAlgorithm?
: AlgorithmIdentifierSchema
; hashedMessage?
: string
}>
NameConstraintsParameters
Ƭ NameConstraintsParameters: PkiObjectParameters
& Partial
<INameConstraints
>
OCSPRequestParameters
Ƭ OCSPRequestParameters: PkiObjectParameters
& Partial
<IOCSPRequest
>
OCSPResponseParameters
Ƭ OCSPResponseParameters: PkiObjectParameters
& Partial
<IOCSPResponse
>
ObjectDigestInfoParameters
Ƭ ObjectDigestInfoParameters: PkiObjectParameters
& Partial
<IObjectDigestInfo
>
OriginatorIdentifierOrKeyParameters
Ƭ OriginatorIdentifierOrKeyParameters: PkiObjectParameters
& Partial
<IOriginatorIdentifierOrKey
>
OriginatorIdentifierOrKeySchema
Ƭ OriginatorIdentifierOrKeySchema: SchemaParameters
OriginatorInfoParameters
Ƭ OriginatorInfoParameters: PkiObjectParameters
& Partial
<IOriginatorInfo
>
OriginatorPublicKeyParameters
Ƭ OriginatorPublicKeyParameters: PkiObjectParameters
& Partial
<IOriginatorPublicKey
>
OtherCertificateFormatParameters
Ƭ OtherCertificateFormatParameters: PkiObjectParameters
& Partial
<IOtherCertificateFormat
>
OtherKeyAttributeParameters
Ƭ OtherKeyAttributeParameters: PkiObjectParameters
& Partial
<IOtherKeyAttribute
>
OtherKeyAttributeSchema
Ƭ OtherKeyAttributeSchema: SchemaType
OtherPrimeInfoParameters
Ƭ OtherPrimeInfoParameters: PkiObjectParameters
& Partial
<IOtherPrimeInfo
> & { json?
: OtherPrimeInfoJson
}
OtherPrimeInfoSchema
Ƭ OtherPrimeInfoSchema: SchemaParameters
<{ coefficient?
: string
; exponent?
: string
; prime?
: string
}>
OtherRecipientInfoParameters
Ƭ OtherRecipientInfoParameters: PkiObjectParameters
& Partial
<IOtherRecipientInfo
>
OtherRevocationInfoFormatParameters
Ƭ OtherRevocationInfoFormatParameters: PkiObjectParameters
& Partial
<IOtherRevocationInfoFormat
>
PBES2ParamsParameters
Ƭ PBES2ParamsParameters: PkiObjectParameters
& Partial
<IPBES2Params
>
PBKDF2ParamsParameters
Ƭ PBKDF2ParamsParameters: PkiObjectParameters
& Partial
<IPBKDF2Params
>
PFXParameters
Ƭ PFXParameters: PkiObjectParameters
& Partial
<IPFX
>
PKCS8ShroudedKeyBagParameters
Ƭ PKCS8ShroudedKeyBagParameters: PkiObjectParameters
& Partial
<IPKCS8ShroudedKeyBag
>
PKIStatusInfoParameters
Ƭ PKIStatusInfoParameters: PkiObjectParameters
& Partial
<IPKIStatusInfo
>
PKIStatusInfoSchema
Ƭ PKIStatusInfoSchema: SchemaParameters
<{ failInfo?
: string
; status?
: string
; statusStrings?
: string
}>
PasswordRecipientinfoParameters
Ƭ PasswordRecipientinfoParameters: PkiObjectParameters
& Partial
<IPasswordRecipientInfo
>
PolicyConstraintsParameters
Ƭ PolicyConstraintsParameters: PkiObjectParameters
& Partial
<IPolicyConstraints
>
PolicyInformationParameters
Ƭ PolicyInformationParameters: PkiObjectParameters
& Partial
<IPolicyInformation
>
PolicyMappingParameters
Ƭ PolicyMappingParameters: PkiObjectParameters
& Partial
<IPolicyMapping
>
PolicyMappingsParameters
Ƭ PolicyMappingsParameters: PkiObjectParameters
& Partial
<IPolicyMappings
>
PolicyQualifierInfoParameters
Ƭ PolicyQualifierInfoParameters: PkiObjectParameters
& Partial
<IPolicyQualifierInfo
>
PrivateKeyInfoParameters
Ƭ PrivateKeyInfoParameters: PkiObjectParameters
& Partial
<IPrivateKeyInfo
> & { json?
: JsonWebKey
}
PrivateKeyUsagePeriodParameters
Ƭ PrivateKeyUsagePeriodParameters: PkiObjectParameters
& Partial
<IPrivateKeyUsagePeriod
>
PublicKeyInfoParameters
Ƭ PublicKeyInfoParameters: PkiObjectParameters
& Partial
<IPublicKeyInfo
> & { json?
: JsonWebKey
}
PublicKeyInfoSchema
Ƭ PublicKeyInfoSchema: SchemaParameters
<{ algorithm?
: AlgorithmIdentifierSchema
; subjectPublicKey?
: string
}>
QCStatementParameters
Ƭ QCStatementParameters: PkiObjectParameters
& Partial
<IQCStatement
>
QCStatementSchema
Ƭ QCStatementSchema: SchemaParameters
<{ id?
: string
; type?
: string
}>
QCStatementsParameters
Ƭ QCStatementsParameters: PkiObjectParameters
& Partial
<IQCStatements
>
RSAESOAEPParamsParameters
Ƭ RSAESOAEPParamsParameters: PkiObjectParameters
& Partial
<IRSAESOAEPParams
>
RSAPrivateKeyParameters
Ƭ RSAPrivateKeyParameters: PkiObjectParameters
& Partial
<IRSAPrivateKey
> & { json?
: RSAPrivateKeyJson
}
RSAPublicKeyParameters
Ƭ RSAPublicKeyParameters: PkiObjectParameters
& Partial
<IRSAPublicKey
> & { json?
: RSAPublicKeyJson
}
RSASSAPSSParamsParameters
Ƭ RSASSAPSSParamsParameters: PkiObjectParameters
& Partial
<IRSASSAPSSParams
>
RecipientEncryptedKeyParameters
Ƭ RecipientEncryptedKeyParameters: PkiObjectParameters
& Partial
<IRecipientEncryptedKey
>
RecipientEncryptedKeysParameters
Ƭ RecipientEncryptedKeysParameters: PkiObjectParameters
& Partial
<IRecipientEncryptedKeys
>
RecipientEncryptedKeysSchema
Ƭ RecipientEncryptedKeysSchema: SchemaParameters
<{ RecipientEncryptedKeys?
: string
}>
RecipientIdentifierMixedJson
Ƭ RecipientIdentifierMixedJson: IssuerAndSerialNumberJson
| asn1js.OctetStringJson
RecipientIdentifierParameters
Ƭ RecipientIdentifierParameters: PkiObjectParameters
& Partial
<IRecipientIdentifier
>
RecipientIdentifierSchema
Ƭ RecipientIdentifierSchema: SchemaParameters
RecipientIdentifierType
Ƭ RecipientIdentifierType: IssuerAndSerialNumber
| asn1js.OctetString
RecipientInfoParameters
Ƭ RecipientInfoParameters: PkiObjectParameters
& Partial
<IRecipientInfo
>
RecipientInfoValue
Ƭ RecipientInfoValue: KeyTransRecipientInfo
| KeyAgreeRecipientInfo
| KEKRecipientInfo
| PasswordRecipientinfo
| OtherRecipientInfo
RecipientInfoValueJson
Ƭ RecipientInfoValueJson: KeyTransRecipientInfoJson
| KeyAgreeRecipientInfoJson
| KEKRecipientInfoJson
| PasswordRecipientInfoJson
| OtherRecipientInfoJson
RecipientKeyIdentifierParameters
Ƭ RecipientKeyIdentifierParameters: PkiObjectParameters
& Partial
<IRecipientKeyIdentifier
>
RecipientKeyIdentifierSchema
Ƭ RecipientKeyIdentifierSchema: SchemaParameters
<{ date?
: string
; other?
: OtherKeyAttributeSchema
; subjectKeyIdentifier?
: string
}>
RelativeDistinguishedNamesParameters
Ƭ RelativeDistinguishedNamesParameters: PkiObjectParameters
& Partial
<IRelativeDistinguishedNames
>
RelativeDistinguishedNamesSchema
Ƭ RelativeDistinguishedNamesSchema: SchemaParameters
<{ repeatedSequence?
: string
; repeatedSet?
: string
; typeAndValue?
: SchemaType
}>
RequestParameters
Ƭ RequestParameters: PkiObjectParameters
& Partial
<IRequest
>
RequestSchema
Ƭ RequestSchema: SchemaParameters
<{ extensions?
: ExtensionSchema
; reqCert?
: CertIDSchema
; singleRequestExtensions?
: string
}>
ResponseBytesParameters
Ƭ ResponseBytesParameters: PkiObjectParameters
& Partial
<IResponseBytes
>
ResponseBytesSchema
Ƭ ResponseBytesSchema: SchemaParameters
<{ response?
: string
; responseType?
: string
}>
ResponseDataParameters
Ƭ ResponseDataParameters: PkiObjectParameters
& Partial
<IResponseData
>
ResponseDataSchema
Ƭ ResponseDataSchema: SchemaParameters
<{ ResponseDataByKey?
: string
; ResponseDataByName?
: RelativeDistinguishedNamesSchema
; extensions?
: ExtensionsSchema
; producedAt?
: string
; responderID?
: string
; response?
: SingleResponseSchema
; version?
: string
}>
RevocationInfoChoicesParameters
Ƭ RevocationInfoChoicesParameters: PkiObjectParameters
& Partial
<IRevocationInfoChoices
>
RevocationInfoChoicesSchema
Ƭ RevocationInfoChoicesSchema: SchemaParameters
<{ crls?
: string
}>
RevokedCertificateParameters
Ƭ RevokedCertificateParameters: PkiObjectParameters
& Partial
<IRevokedCertificate
>
SafeBagParameters
Ƭ SafeBagParameters<T
>: PkiObjectParameters
& Partial
<ISafeBag
<T
>>
Type parameters
Name | Type |
---|---|
T | extends BagType = BagType |
SafeContent
Ƭ SafeContent: ContentInfo
| EncryptedData
| EnvelopedData
| object
SafeContentsParameters
Ƭ SafeContentsParameters: PkiObjectParameters
& Partial
<ISafeContents
>
SchemaNames
Ƭ SchemaNames: Object
Type declaration
Name | Type |
---|---|
blockName? | string |
optional? | boolean |
SchemaType
Ƭ SchemaType: any
SecretBagParameters
Ƭ SecretBagParameters: PkiObjectParameters
& Partial
<ISecretBag
>
SignatureParameters
Ƭ SignatureParameters: PkiObjectParameters
& Partial
<ISignature
>
SignatureSchema
Ƭ SignatureSchema: SchemaParameters
<{ certs?
: string
; signature?
: string
; signatureAlgorithm?
: AlgorithmIdentifierSchema
}>
SignedAndUnsignedAttributesParameters
Ƭ SignedAndUnsignedAttributesParameters: PkiObjectParameters
& Partial
<ISignedAndUnsignedAttributes
>
SignedAndUnsignedAttributesSchema
Ƭ SignedAndUnsignedAttributesSchema: SchemaParameters
<{ attributes?
: string
; tagNumber?
: number
}>
SignedCertificateTimestampListParameters
Ƭ SignedCertificateTimestampListParameters: PkiObjectParameters
& Partial
<ISignedCertificateTimestampList
>
SignedCertificateTimestampParameters
Ƭ SignedCertificateTimestampParameters: PkiObjectParameters
& Partial
<ISignedCertificateTimestamp
> & { stream?
: bs.SeqStream
}
SignedDataCRL
Ƭ SignedDataCRL: CertificateRevocationList
| OtherRevocationInfoFormat
SignedDataCRLJson
Ƭ SignedDataCRLJson: CertificateRevocationListJson
| OtherRevocationInfoFormatJson
SignedDataParameters
Ƭ SignedDataParameters: PkiObjectParameters
& Partial
<ISignedData
>
SignerInfoParameters
Ƭ SignerInfoParameters: PkiObjectParameters
& Partial
<ISignerInfo
>
SingleResponseParameters
Ƭ SingleResponseParameters: PkiObjectParameters
& Partial
<ISingleResponse
>
SingleResponseSchema
Ƭ SingleResponseSchema: SchemaParameters
<{ certID?
: CertIDSchema
; certStatus?
: string
; nextUpdate?
: string
; singleExtensions?
: ExtensionsSchema
; thisUpdate?
: string
}>
SubjectDirectoryAttributesParameters
Ƭ SubjectDirectoryAttributesParameters: PkiObjectParameters
& Partial
<ISubjectDirectoryAttributes
>
TBSCertListSchema
Ƭ TBSCertListSchema: SchemaParameters
<{ crlExtensions?
: ExtensionsSchema
; issuer?
: RelativeDistinguishedNamesSchema
; signature?
: AlgorithmIdentifierSchema
; tbsCertListNextUpdate?
: TimeSchema
; tbsCertListRevokedCertificates?
: string
; tbsCertListThisUpdate?
: TimeSchema
; tbsCertListVersion?
: string
}>
TBSCertificateSchema
Ƭ 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
Ƭ TBSRequestParameters: PkiObjectParameters
& Partial
<ITBSRequest
>
TBSRequestSchema
Ƭ TBSRequestSchema: SchemaParameters
<{ TBSRequestVersion?
: string
; extensions?
: ExtensionsSchema
; requestExtensions?
: string
; requestList?
: string
; requestNames?
: RequestSchema
; requestorName?
: GeneralNameSchema
; requests?
: string
}>
TSTInfoParameters
Ƭ TSTInfoParameters: PkiObjectParameters
& Partial
<ITSTInfo
>
TimeParameters
Ƭ TimeParameters: PkiObjectParameters
& Partial
<ITime
>
TimeSchema
Ƭ TimeSchema: SchemaParameters
<{ generalTimeName?
: string
; utcTimeName?
: string
}>
TimeStampReqParameters
Ƭ TimeStampReqParameters: PkiObjectParameters
& Partial
<ITimeStampReq
>
TimeStampRespParameters
Ƭ TimeStampRespParameters: PkiObjectParameters
& Partial
<ITimeStampResp
>
V2FormParameters
Ƭ V2FormParameters: PkiObjectParameters
& Partial
<IV2Form
>
Variables
HASHED_MESSAGE
• Const
HASHED_MESSAGE: "hashedMessage"
HASH_ALGORITHM
• Const
HASH_ALGORITHM: "hashAlgorithm"
MICROS
• Const
MICROS: "micros"
MILLIS
• Const
MILLIS: "millis"
POLICY_IDENTIFIER
• Const
POLICY_IDENTIFIER: "policyIdentifier"
POLICY_QUALIFIERS
• Const
POLICY_QUALIFIERS: "policyQualifiers"
RDN
• Const
RDN: "RDN"
SECONDS
• Const
SECONDS: "seconds"
TYPE
• Const
TYPE: "type"
TYPE_AND_VALUES
• Const
TYPE_AND_VALUES: "typesAndValues"
VALUE
• Const
VALUE: "value"
VALUE_BEFORE_DECODE
• Const
VALUE_BEFORE_DECODE: "valueBeforeDecode"
engine
• engine: GlobalCryptoEngine
id_AnyPolicy
• Const
id_AnyPolicy: "2.5.29.32.0"
id_AuthorityInfoAccess
• Const
id_AuthorityInfoAccess: "1.3.6.1.5.5.7.1.1"
id_AuthorityKeyIdentifier
• Const
id_AuthorityKeyIdentifier: "2.5.29.35"
id_BaseCRLNumber
• Const
id_BaseCRLNumber: "2.5.29.27"
id_BasicConstraints
• Const
id_BasicConstraints: "2.5.29.19"
id_CRLBag_X509CRL
• Const
id_CRLBag_X509CRL: "1.2.840.113549.1.9.23.1"
id_CRLDistributionPoints
• Const
id_CRLDistributionPoints: "2.5.29.31"
id_CRLNumber
• Const
id_CRLNumber: "2.5.29.20"
id_CRLReason
• Const
id_CRLReason: "2.5.29.21"
id_CertBag_AttributeCertificate
• Const
id_CertBag_AttributeCertificate: "1.2.840.113549.1.9.22.3"
id_CertBag_SDSICertificate
• Const
id_CertBag_SDSICertificate: "1.2.840.113549.1.9.22.2"
id_CertBag_X509Certificate
• Const
id_CertBag_X509Certificate: "1.2.840.113549.1.9.22.1"
id_CertificateIssuer
• Const
id_CertificateIssuer: "2.5.29.29"
id_CertificatePolicies
• Const
id_CertificatePolicies: "2.5.29.32"
id_ContentType_Data
• Const
id_ContentType_Data: "1.2.840.113549.1.7.1"
id_ContentType_EncryptedData
• Const
id_ContentType_EncryptedData: "1.2.840.113549.1.7.6"
id_ContentType_EnvelopedData
• Const
id_ContentType_EnvelopedData: "1.2.840.113549.1.7.3"
id_ContentType_SignedData
• Const
id_ContentType_SignedData: "1.2.840.113549.1.7.2"
id_ExtKeyUsage
• Const
id_ExtKeyUsage: "2.5.29.37"
id_FreshestCRL
• Const
id_FreshestCRL: "2.5.29.46"
id_InhibitAnyPolicy
• Const
id_InhibitAnyPolicy: "2.5.29.54"
id_InvalidityDate
• Const
id_InvalidityDate: "2.5.29.24"
id_IssuerAltName
• Const
id_IssuerAltName: "2.5.29.18"
id_IssuingDistributionPoint
• Const
id_IssuingDistributionPoint: "2.5.29.28"
id_KeyUsage
• Const
id_KeyUsage: "2.5.29.15"
id_MicrosoftAppPolicies
• Const
id_MicrosoftAppPolicies: "1.3.6.1.4.1.311.21.10"
id_MicrosoftCaVersion
• Const
id_MicrosoftCaVersion: "1.3.6.1.4.1.311.21.1"
id_MicrosoftCertTemplateV1
• Const
id_MicrosoftCertTemplateV1: "1.3.6.1.4.1.311.20.2"
id_MicrosoftCertTemplateV2
• Const
id_MicrosoftCertTemplateV2: "1.3.6.1.4.1.311.21.7"
id_MicrosoftPrevCaCertHash
• Const
id_MicrosoftPrevCaCertHash: "1.3.6.1.4.1.311.21.2"
id_NameConstraints
• Const
id_NameConstraints: "2.5.29.30"
id_PKIX_OCSP_Basic
• Const
id_PKIX_OCSP_Basic: "1.3.6.1.5.5.7.48.1.1"
id_PolicyConstraints
• Const
id_PolicyConstraints: "2.5.29.36"
id_PolicyMappings
• Const
id_PolicyMappings: "2.5.29.33"
id_PrivateKeyUsagePeriod
• Const
id_PrivateKeyUsagePeriod: "2.5.29.16"
id_QCStatements
• Const
id_QCStatements: "1.3.6.1.5.5.7.1.3"
id_SignedCertificateTimestampList
• Const
id_SignedCertificateTimestampList: "1.3.6.1.4.1.11129.2.4.2"
id_SubjectAltName
• Const
id_SubjectAltName: "2.5.29.17"
id_SubjectDirectoryAttributes
• Const
id_SubjectDirectoryAttributes: "2.5.29.9"
id_SubjectInfoAccess
• Const
id_SubjectInfoAccess: "1.3.6.1.5.5.7.1.11"
id_SubjectKeyIdentifier
• Const
id_SubjectKeyIdentifier: "2.5.29.14"
id_ad
• Const
id_ad: "1.3.6.1.5.5.7.48"
id_ad_caIssuers
• Const
id_ad_caIssuers: "1.3.6.1.5.5.7.48.2"
id_ad_ocsp
• Const
id_ad_ocsp: "1.3.6.1.5.5.7.48.1"
id_eContentType_TSTInfo
• Const
id_eContentType_TSTInfo: "1.2.840.113549.1.9.16.1.4"
id_pkix
• Const
id_pkix: "1.3.6.1.5.5.7"
id_sha1
• Const
id_sha1: "1.3.14.3.2.26"
id_sha256
• Const
id_sha256: "2.16.840.1.101.3.4.2.1"
id_sha384
• Const
id_sha384: "2.16.840.1.101.3.4.2.2"
id_sha512
• Const
id_sha512: "2.16.840.1.101.3.4.2.3"
Functions
checkCA
▸ checkCA(cert
, signerCert?
): Certificate
| null
Check CA flag for the certificate
Parameters
Name | Type | Default value | Description |
---|---|---|---|
cert | Certificate | undefined | Certificate to find CA flag for |
signerCert | null | Certificate | null | - |
Returns
Certificate
| null
Returns Certificate if cert
is CA certificate otherwise return null
createCMSECDSASignature
▸ createCMSECDSASignature(signatureBuffer
): ArrayBuffer
Create CMS ECDSA signature from WebCrypto ECDSA signature
Parameters
Name | Type | Description |
---|---|---|
signatureBuffer | ArrayBuffer | WebCrypto result of "sign" function |
Returns
ArrayBuffer
createECDSASignatureFromCMS
▸ createECDSASignatureFromCMS(cmsSignature
, pointSize
): ArrayBuffer
Create a single ArrayBuffer from CMS ECDSA signature
Parameters
Name | Type | Description |
---|---|---|
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
▸ getAlgorithmByOID<T
>(oid
, safety?
, target?
): T
| object
Gets WebCrypto algorithm by well-known OID
Type parameters
Name | Type |
---|---|
T | extends Algorithm = Algorithm |
Parameters
Name | Type | Description |
---|---|---|
oid | string | algorithm identifier |
safety? | boolean | if true throws exception on unknown algorithm identifier |
target? | string | name of the target |
Returns
T
| object
WebCrypto algorithm or an empty object
▸ getAlgorithmByOID<T
>(oid
, safety
, target?
): T
Type parameters
Name | Type |
---|---|
T | extends Algorithm = Algorithm |
Parameters
Name | Type |
---|---|
oid | string |
safety | true |
target? | string |
Returns
T
getAlgorithmParameters
▸ getAlgorithmParameters(algorithmName
, operation
): CryptoEngineAlgorithmParams
Get default algorithm parameters for each kind of operation
Parameters
Name | Type | Description |
---|---|---|
algorithmName | string | Algorithm name to get common parameters for |
operation | CryptoEngineAlgorithmOperation | Kind of operation: "sign", "encrypt", "generateKey", "importKey", "exportKey", "verify" |
Returns
getCrypto
▸ getCrypto(safety?
): ICryptoEngine
| null
Gets crypto subtle from the current "crypto engine"
Parameters
Name | Type |
---|---|
safety? | boolean |
Returns
ICryptoEngine
| null
Reruns ICryptoEngine or null
▸ getCrypto(safety
): ICryptoEngine
Gets crypto subtle from the current "crypto engine"
Parameters
Name | Type |
---|---|
safety | true |
Returns
Reruns ICryptoEngine or throws en exception
Throws
Throws Error if subtle
is empty
getEngine
▸ getEngine(): GlobalCryptoEngine
Returns
getHashAlgorithm
▸ getHashAlgorithm(signatureAlgorithm
): string
Getting hash algorithm by signature algorithm
Parameters
Name | Type | Description |
---|---|---|
signatureAlgorithm | AlgorithmIdentifier | Signature algorithm |
Returns
string
getOIDByAlgorithm
▸ getOIDByAlgorithm(algorithm
, safety?
, target?
): string
Get OID for each specific algorithm
Parameters
Name | Type | Description |
---|---|---|
algorithm | Algorithm | WebCrypto Algorithm |
safety? | boolean | if true throws exception on unknown algorithm |
target? | string | name of the target |
Returns
string
Throws
Throws Error exception if unknown WebCrypto algorithm
getRandomValues
▸ getRandomValues(view
): Uint8Array
Initialize input Uint8Array by random values (with help from current "crypto engine")
Parameters
Name | Type |
---|---|
view | Uint8Array |
Returns
Uint8Array
kdf
▸ kdf(hashFunction
, Zbuffer
, keydatalen
, SharedInfo
, crypto?
): Promise
<ArrayBuffer
>
ANS X9.63 Key Derivation Function
Parameters
Name | Type | Description |
---|---|---|
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
>
setEngine
▸ setEngine(name
, crypto
, subtle
): void
Sets global crypto engine
Parameters
Name | Type | Description |
---|---|---|
name | string | Name of the crypto engine |
crypto | Crypto | ICryptoEngine | |
subtle | SubtleCrypto | ICryptoEngine |
Returns
void
Deprecated
Since version 3.0.0
▸ setEngine(name
, crypto?
): void
Sets global crypto engine
Parameters
Name | Type | Description |
---|---|---|
name | string | Name of the crypto engine |
crypto? | ICryptoEngine | Crypto engine. If the parameter is omitted, CryptoEngine with self.crypto are used |
Returns
void
Since
3.0.0
stringPrep
▸ stringPrep(inputString
): string
String preparation function. In a future here will be realization of algorithm from RFC4518
Parameters
Name | Type | Description |
---|---|---|
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
verifySCTsForCertificate
▸ verifySCTsForCertificate(certificate
, issuerCertificate
, logs
, index?
, crypto?
): Promise
<boolean
[]>
Verify SignedCertificateTimestamp for specific certificate content
Parameters
Name | Type | Description |
---|---|---|
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