pkijs
Enumerations
Classes
- AbstractCryptoEngine
- AccessDescription
- Accuracy
- AlgorithmIdentifier
- AltName
- ArgumentError
- AsnError
- AttCertValidityPeriod
- Attribute
- AttributeCertificateInfoV1
- AttributeCertificateInfoV2
- AttributeCertificateV1
- AttributeCertificateV2
- AttributeTypeAndValue
- AuthenticatedSafe
- AuthorityKeyIdentifier
- BasicConstraints
- BasicOCSPResponse
- CAVersion
- CertBag
- CertID
- Certificate
- CertificateChainValidationEngine
- CertificatePolicies
- CertificateRevocationList
- CertificateSet
- CertificateTemplate
- CertificationRequest
- ChainValidationError
- ContentInfo
- CRLBag
- CRLDistributionPoints
- CryptoEngine
- DigestInfo
- DistributionPoint
- ECCCMSSharedInfo
- ECNamedCurves
- ECPrivateKey
- ECPublicKey
- EncapsulatedContentInfo
- EncryptedContentInfo
- EncryptedData
- EnvelopedData
- Extension
- Extensions
- ExtensionValueFactory
- ExtKeyUsage
- GeneralName
- GeneralNames
- GeneralSubtree
- Holder
- InfoAccess
- IssuerAndSerialNumber
- IssuerSerial
- IssuingDistributionPoint
- KEKIdentifier
- KEKRecipientInfo
- KeyAgreeRecipientIdentifier
- KeyAgreeRecipientInfo
- KeyBag
- KeyTransRecipientInfo
- MacData
- MessageImprint
- NameConstraints
- ObjectDigestInfo
- OCSPRequest
- OCSPResponse
- OriginatorIdentifierOrKey
- OriginatorInfo
- OriginatorPublicKey
- OtherCertificateFormat
- OtherKeyAttribute
- OtherPrimeInfo
- OtherRecipientInfo
- OtherRevocationInfoFormat
- ParameterError
- PasswordRecipientinfo
- PBES2Params
- PBKDF2Params
- PFX
- PKCS8ShroudedKeyBag
- PkiObject
- PKIStatusInfo
- PolicyConstraints
- PolicyInformation
- PolicyMapping
- PolicyMappings
- PolicyQualifierInfo
- PrivateKeyInfo
- PrivateKeyUsagePeriod
- PublicKeyInfo
- QCStatement
- QCStatements
- RecipientEncryptedKey
- RecipientEncryptedKeys
- RecipientIdentifier
- RecipientInfo
- RecipientKeyIdentifier
- RelativeDistinguishedNames
- Request
- ResponseBytes
- ResponseData
- RevocationInfoChoices
- RevokedCertificate
- RSAESOAEPParams
- RSAPrivateKey
- RSAPublicKey
- RSASSAPSSParams
- SafeBag
- SafeBagValueFactory
- SafeContents
- SecretBag
- Signature
- SignedAndUnsignedAttributes
- SignedCertificateTimestamp
- SignedCertificateTimestampList
- SignedData
- SignedDataVerifyError
- SignerInfo
- SingleResponse
- SubjectDirectoryAttributes
- TBSRequest
- Time
- TimeStampReq
- TimeStampResp
- TSTInfo
- V2Form
Interfaces
- AccessDescriptionJson
- AccuracyJson
- AlgorithmIdentifierJson
- AltNameJson
- AnyConstructor
- AsnCompareSchemaResult
- AsnFromBerResult
- AttCertValidityPeriodJson
- AttributeCertificateInfoV1Json
- AttributeCertificateInfoV2Json
- AttributeCertificateV1Json
- AttributeCertificateV2Json
- AttributeJson
- AttributeTypeAndValueJson
- AuthenticatedSafeJson
- AuthorityKeyIdentifierJson
- BagTypeConstructor
- BasicConstraintsJson
- BasicOCSPResponseJson
- BasicOCSPResponseVerifyParams
- CAVersionJson
- CertBagJson
- CertIDCreateParams
- CertIDJson
- CertificateChainValidationEngineParameters
- CertificateChainValidationEngineVerifyParams
- CertificateChainValidationEngineVerifyResult
- CertificateJson
- CertificatePoliciesJson
- CertificateRevocationListJson
- CertificateRevocationListVerifyParams
- CertificateSetJson
- CertificateStatus
- CertificateTemplateJson
- CertificationRequestInfoParameters
- CertificationRequestJson
- ContentInfoJson
- CRLBagJson
- CRLDistributionPointsJson
- CryptoEngineAlgorithmParams
- CryptoEngineConstructor
- CryptoEngineDecryptParams
- CryptoEngineEncryptParams
- CryptoEngineParameters
- CryptoEnginePublicKeyParams
- CryptoEngineSignatureParams
- CryptoEngineSignWithPrivateKeyParams
- CryptoEngineStampDataWithPasswordParams
- CryptoEngineVerifyDataStampedWithPasswordParams
- DigestInfoJson
- DistributionPointJson
- ECCCMSSharedInfoJson
- ECNamedCurve
- ECPrivateKeyJson
- ECPublicKeyJson
- EncapsulatedContentInfoJson
- EncryptedContentInfoJson
- EncryptedContentInfoSplit
- EncryptedDataJson
- EnvelopedDataDecryptBaseParams
- EnvelopedDataDecryptBufferParams
- EnvelopedDataDecryptKeyParams
- EnvelopedDataEncryptionParams
- EnvelopedDataJson
- ExtensionConstructorParameters
- ExtensionJson
- ExtensionsJson
- ExtensionValueConstructor
- ExtensionValueType
- ExtKeyUsageJson
- GeneralNameJson
- GeneralNameSchema
- GeneralNamesJson
- GeneralSubtreeJson
- GlobalCryptoEngine
- HolderJson
- IAccessDescription
- IAccuracy
- IAlgorithmIdentifier
- IAltName
- IAttCertValidityPeriod
- IAttribute
- IAttributeCertificateInfoV1
- IAttributeCertificateInfoV2
- IAttributeCertificateV1
- IAttributeCertificateV2
- IAttributeTypeAndValue
- IAuthenticatedSafe
- IAuthorityKeyIdentifier
- IBasicConstraints
- IBasicOCSPResponse
- ICAVersion
- ICertBag
- ICertID
- ICertificate
- ICertificatePolicies
- ICertificateRevocationList
- ICertificateSet
- ICertificateTemplate
- ICertificationRequest
- IContentInfo
- ICRLBag
- ICRLDistributionPoints
- ICryptoEngine
- IDigestInfo
- IDistributionPoint
- IECCCMSSharedInfo
- IECPrivateKey
- IECPublicKey
- IEncapsulatedContentInfo
- IEncryptedContentInfo
- IEncryptedData
- IEnvelopedData
- IExtension
- IExtensions
- IExtKeyUsage
- IGeneralName
- IGeneralNames
- IGeneralSubtree
- IHolder
- IInfoAccess
- IIssuerAndSerialNumber
- IIssuerSerial
- IIssuingDistributionPoint
- IKEKIdentifier
- IKEKRecipientInfo
- IKeyAgreeRecipientIdentifier
- IKeyAgreeRecipientInfo
- IKeyTransRecipientInfo
- IMacData
- IMessageImprint
- INameConstraints
- InfoAccessJson
- IObjectDigestInfo
- IOCSPRequest
- IOCSPResponse
- IOriginatorIdentifierOrKey
- IOriginatorInfo
- IOriginatorPublicKey
- IOtherCertificateFormat
- IOtherKeyAttribute
- IOtherPrimeInfo
- IOtherRecipientInfo
- IOtherRevocationInfoFormat
- IPasswordRecipientInfo
- IPBES2Params
- IPBKDF2Params
- IPFX
- IPKCS8ShroudedKeyBag
- IPKIStatusInfo
- IPolicyConstraints
- IPolicyInformation
- IPolicyMapping
- IPolicyMappings
- IPolicyQualifierInfo
- IPrivateKeyInfo
- IPrivateKeyUsagePeriod
- IPublicKeyInfo
- IQCStatement
- IQCStatements
- IRecipientEncryptedKey
- IRecipientEncryptedKeys
- IRecipientIdentifier
- IRecipientInfo
- IRecipientKeyIdentifier
- IRelativeDistinguishedNames
- IRequest
- IResponseBytes
- IResponseData
- IRevocationInfoChoices
- IRevokedCertificate
- IRSAESOAEPParams
- IRSAPrivateKey
- IRSAPublicKey
- IRSASSAPSSParams
- ISafeBag
- ISafeContents
- ISecretBag
- ISignature
- ISignedAndUnsignedAttributes
- ISignedCertificateTimestamp
- ISignedCertificateTimestampList
- ISignedData
- ISignerInfo
- ISingleResponse
- IssuerAndSerialNumberJson
- IssuerSerialJson
- IssuingDistributionPointJson
- ISubjectDirectoryAttributes
- ITBSRequest
- ITime
- ITimeStampReq
- ITimeStampResp
- ITSTInfo
- IV2Form
- KEKIdentifierJson
- KEKRecipientInfoJson
- KeyAgreeRecipientIdentifierJson
- KeyAgreeRecipientInfoJson
- KeyTransRecipientInfoJson
- Log
- MacDataJson
- MessageImprintJson
- NameConstraintsJson
- ObjectDigestInfoJson
- OCSPRequestJson
- OCSPResponseJson
- OriginatorIdentifierOrKeyJson
- OriginatorInfoJson
- OriginatorPublicKeyJson
- OtherCertificateFormatJson
- OtherKeyAttributeJson
- OtherPrimeInfoJson
- OtherRecipientInfoJson
- OtherRevocationInfoFormatJson
- PasswordRecipientInfoJson
- PBES2ParamsJson
- PBKDF2ParamsJson
- PFXJson
- PFXParsedValue
- PKCS8ShroudedKeyBagJson
- PkiObjectParameters
- PKIStatusInfoJson
- PolicyConstraintsJson
- PolicyInformationJson
- PolicyMappingJson
- PolicyMappingsJson
- PolicyQualifierInfoJson
- PrivateKeyInfoJson
- PrivateKeyUsagePeriodJson
- PublicKeyInfoJson
- QCStatementJson
- QCStatementsJson
- RecipientEncryptedKeyJson
- RecipientEncryptedKeysJson
- RecipientIdentifierJson
- RecipientInfoJson
- RecipientKeyIdentifierJson
- RelativeDistinguishedNamesJson
- RequestJson
- ResponseBytesJson
- ResponseDataJson
- RevocationInfoChoicesJson
- RevokedCertificateJson
- RSAESOAEPParamsJson
- RSAPrivateKeyJson
- RSAPublicKeyJson
- RSASSAPSSParamsJson
- SafeBagJson
- SafeContentsJson
- SchemaCompatible
- SchemaConstructor
- SchemaParameters
- SecretBagJson
- SignatureJson
- SignedAndUnsignedAttributesJson
- SignedCertificateTimestampJson
- SignedCertificateTimestampListJson
- SignedDataJson
- SignedDataVerifyErrorParams
- SignedDataVerifyParams
- SignedDataVerifyResult
- SignerInfoJson
- SingleResponseJson
- SubjectDirectoryAttributesJson
- TBSRequestJson
- TimeJson
- TimeStampReqJson
- TimeStampRespJson
- TimeStampRespVerifyParams
- TSTInfoJson
- TSTInfoVerifyParams
- 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
>
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
; }>
CRLBagParameters
CRLBagParameters:
PkiObjectParameters
&Partial
<ICRLBag
>
CRLDistributionPointsParameters
CRLDistributionPointsParameters:
PkiObjectParameters
&Partial
<ICRLDistributionPoints
>
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
> &object
Type declaration
json?
optional
json:ECPrivateKeyJson
ECPublicKeyParameters
ECPublicKeyParameters:
PkiObjectParameters
&Partial
<IECPublicKey
> &object
Type declaration
json?
optional
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
ExtensionParameters
ExtensionParameters:
PkiObjectParameters
&ExtensionConstructorParameters
ExtensionParsedValue
ExtensionParsedValue:
SchemaCompatible
&object
|SchemaType
ExtensionSchema
ExtensionSchema:
SchemaParameters
<{critical
:string
;extnID
:string
;extnValue
:string
; }>
ExtensionsParameters
ExtensionsParameters:
PkiObjectParameters
&Partial
<IExtensions
>
ExtensionsSchema
ExtensionsSchema:
SchemaParameters
<{extension
:ExtensionSchema
;extensions
:string
; }>
ExtKeyUsageParameters
ExtKeyUsageParameters:
PkiObjectParameters
&Partial
<IExtKeyUsage
>
FindIssuerCallback()
FindIssuerCallback: (
certificate
,validationEngine
,crypto
?) =>Promise
<Certificate
[]>
Parameters
certificate
validationEngine
CertificateChainValidationEngine
crypto?
Returns
Promise
<Certificate
[]>
FindOriginCallback()
FindOriginCallback: (
certificate
,validationEngine
) =>string
Parameters
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
>
ObjectDigestInfoParameters
ObjectDigestInfoParameters:
PkiObjectParameters
&Partial
<IObjectDigestInfo
>
OCSPRequestParameters
OCSPRequestParameters:
PkiObjectParameters
&Partial
<IOCSPRequest
>
OCSPResponseParameters
OCSPResponseParameters:
PkiObjectParameters
&Partial
<IOCSPResponse
>
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
> &object
Type declaration
json?
optional
json:OtherPrimeInfoJson
OtherPrimeInfoSchema
OtherPrimeInfoSchema:
SchemaParameters
<{coefficient
:string
;exponent
:string
;prime
:string
; }>
OtherRecipientInfoParameters
OtherRecipientInfoParameters:
PkiObjectParameters
&Partial
<IOtherRecipientInfo
>
OtherRevocationInfoFormatParameters
OtherRevocationInfoFormatParameters:
PkiObjectParameters
&Partial
<IOtherRevocationInfoFormat
>
PasswordRecipientinfoParameters
PasswordRecipientinfoParameters:
PkiObjectParameters
&Partial
<IPasswordRecipientInfo
>
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
; }>
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
> &object
Type declaration
json?
optional
json:JsonWebKey
PrivateKeyUsagePeriodParameters
PrivateKeyUsagePeriodParameters:
PkiObjectParameters
&Partial
<IPrivateKeyUsagePeriod
>
PublicKeyInfoParameters
PublicKeyInfoParameters:
PkiObjectParameters
&Partial
<IPublicKeyInfo
> &object
Type declaration
json?
optional
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
>
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
<{extensions
:ExtensionsSchema
;producedAt
:string
;responderID
:string
;response
:SingleResponseSchema
;ResponseDataByKey
:string
;ResponseDataByName
:RelativeDistinguishedNamesSchema
;version
:string
; }>
RevocationInfoChoicesParameters
RevocationInfoChoicesParameters:
PkiObjectParameters
&Partial
<IRevocationInfoChoices
>
RevocationInfoChoicesSchema
RevocationInfoChoicesSchema:
SchemaParameters
<{crls
:string
; }>
RevokedCertificateParameters
RevokedCertificateParameters:
PkiObjectParameters
&Partial
<IRevokedCertificate
>
RSAESOAEPParamsParameters
RSAESOAEPParamsParameters:
PkiObjectParameters
&Partial
<IRSAESOAEPParams
>
RSAPrivateKeyParameters
RSAPrivateKeyParameters:
PkiObjectParameters
&Partial
<IRSAPrivateKey
> &object
Type declaration
json?
optional
json:RSAPrivateKeyJson
RSAPublicKeyParameters
RSAPublicKeyParameters:
PkiObjectParameters
&Partial
<IRSAPublicKey
> &object
Type declaration
json?
optional
json:RSAPublicKeyJson
RSASSAPSSParamsParameters
RSASSAPSSParamsParameters:
PkiObjectParameters
&Partial
<IRSASSAPSSParams
>
SafeBagParameters<T>
SafeBagParameters<
T
>:PkiObjectParameters
&Partial
<ISafeBag
<T
>>
Type Parameters
SafeContent
SafeContent:
ContentInfo
|EncryptedData
|EnvelopedData
|object
SafeContentsParameters
SafeContentsParameters:
PkiObjectParameters
&Partial
<ISafeContents
>
SchemaNames
SchemaNames:
object
Type declaration
blockName?
optional
blockName:string
optional?
optional
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
> &object
Type declaration
stream?
optional
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
>
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
; }>
TBSCertListSchema
TBSCertListSchema:
SchemaParameters
<{crlExtensions
:ExtensionsSchema
;issuer
:RelativeDistinguishedNamesSchema
;signature
:AlgorithmIdentifierSchema
;tbsCertListNextUpdate
:TimeSchema
;tbsCertListRevokedCertificates
:string
;tbsCertListThisUpdate
:TimeSchema
;tbsCertListVersion
:string
; }>
TBSRequestParameters
TBSRequestParameters:
PkiObjectParameters
&Partial
<ITBSRequest
>
TBSRequestSchema
TBSRequestSchema:
SchemaParameters
<{extensions
:ExtensionsSchema
;requestExtensions
:string
;requestList
:string
;requestNames
:RequestSchema
;requestorName
:GeneralNameSchema
;requests
:string
;TBSRequestVersion
:string
; }>
TimeParameters
TimeParameters:
PkiObjectParameters
&Partial
<ITime
>
TimeSchema
TimeSchema:
SchemaParameters
<{generalTimeName
:string
;utcTimeName
:string
; }>
TimeStampReqParameters
TimeStampReqParameters:
PkiObjectParameters
&Partial
<ITimeStampReq
>
TimeStampRespParameters
TimeStampRespParameters:
PkiObjectParameters
&Partial
<ITimeStampResp
>
TSTInfoParameters
TSTInfoParameters:
PkiObjectParameters
&Partial
<ITSTInfo
>
V2FormParameters
V2FormParameters:
PkiObjectParameters
&Partial
<IV2Form
>
Variables
engine
engine:
GlobalCryptoEngine
HASH_ALGORITHM
const
HASH_ALGORITHM:"hashAlgorithm"
="hashAlgorithm"
HASHED_MESSAGE
const
HASHED_MESSAGE:"hashedMessage"
="hashedMessage"
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_AnyPolicy
const
id_AnyPolicy:"2.5.29.32.0"
="2.5.29.32.0"
id_AuthorityInfoAccess
const
id_AuthorityInfoAccess:"1.3.6.1.5.5.7.1.1"
="1.3.6.1.5.5.7.1.1"
id_AuthorityKeyIdentifier
const
id_AuthorityKeyIdentifier:"2.5.29.35"
="2.5.29.35"
id_BaseCRLNumber
const
id_BaseCRLNumber:"2.5.29.27"
="2.5.29.27"
id_BasicConstraints
const
id_BasicConstraints:"2.5.29.19"
="2.5.29.19"
id_CertBag_AttributeCertificate
const
id_CertBag_AttributeCertificate:"1.2.840.113549.1.9.22.3"
="1.2.840.113549.1.9.22.3"
id_CertBag_SDSICertificate
const
id_CertBag_SDSICertificate:"1.2.840.113549.1.9.22.2"
="1.2.840.113549.1.9.22.2"
id_CertBag_X509Certificate
const
id_CertBag_X509Certificate:"1.2.840.113549.1.9.22.1"
="1.2.840.113549.1.9.22.1"
id_CertificateIssuer
const
id_CertificateIssuer:"2.5.29.29"
="2.5.29.29"
id_CertificatePolicies
const
id_CertificatePolicies:"2.5.29.32"
="2.5.29.32"
id_ContentType_Data
const
id_ContentType_Data:"1.2.840.113549.1.7.1"
="1.2.840.113549.1.7.1"
id_ContentType_EncryptedData
const
id_ContentType_EncryptedData:"1.2.840.113549.1.7.6"
="1.2.840.113549.1.7.6"
id_ContentType_EnvelopedData
const
id_ContentType_EnvelopedData:"1.2.840.113549.1.7.3"
="1.2.840.113549.1.7.3"
id_ContentType_SignedData
const
id_ContentType_SignedData:"1.2.840.113549.1.7.2"
="1.2.840.113549.1.7.2"
id_CRLBag_X509CRL
const
id_CRLBag_X509CRL:"1.2.840.113549.1.9.23.1"
="1.2.840.113549.1.9.23.1"
id_CRLDistributionPoints
const
id_CRLDistributionPoints:"2.5.29.31"
="2.5.29.31"
id_CRLNumber
const
id_CRLNumber:"2.5.29.20"
="2.5.29.20"
id_CRLReason
const
id_CRLReason:"2.5.29.21"
="2.5.29.21"
id_eContentType_TSTInfo
const
id_eContentType_TSTInfo:"1.2.840.113549.1.9.16.1.4"
="1.2.840.113549.1.9.16.1.4"
id_ExtKeyUsage
const
id_ExtKeyUsage:"2.5.29.37"
="2.5.29.37"
id_FreshestCRL
const
id_FreshestCRL:"2.5.29.46"
="2.5.29.46"
id_InhibitAnyPolicy
const
id_InhibitAnyPolicy:"2.5.29.54"
="2.5.29.54"
id_InvalidityDate
const
id_InvalidityDate:"2.5.29.24"
="2.5.29.24"
id_IssuerAltName
const
id_IssuerAltName:"2.5.29.18"
="2.5.29.18"
id_IssuingDistributionPoint
const
id_IssuingDistributionPoint:"2.5.29.28"
="2.5.29.28"
id_KeyUsage
const
id_KeyUsage:"2.5.29.15"
="2.5.29.15"
id_MicrosoftAppPolicies
const
id_MicrosoftAppPolicies:"1.3.6.1.4.1.311.21.10"
="1.3.6.1.4.1.311.21.10"
id_MicrosoftCaVersion
const
id_MicrosoftCaVersion:"1.3.6.1.4.1.311.21.1"
="1.3.6.1.4.1.311.21.1"
id_MicrosoftCertTemplateV1
const
id_MicrosoftCertTemplateV1:"1.3.6.1.4.1.311.20.2"
="1.3.6.1.4.1.311.20.2"
id_MicrosoftCertTemplateV2
const
id_MicrosoftCertTemplateV2:"1.3.6.1.4.1.311.21.7"
="1.3.6.1.4.1.311.21.7"
id_MicrosoftPrevCaCertHash
const
id_MicrosoftPrevCaCertHash:"1.3.6.1.4.1.311.21.2"
="1.3.6.1.4.1.311.21.2"
id_NameConstraints
const
id_NameConstraints:"2.5.29.30"
="2.5.29.30"
id_pkix
const
id_pkix:"1.3.6.1.5.5.7"
="1.3.6.1.5.5.7"
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"
="2.5.29.36"
id_PolicyMappings
const
id_PolicyMappings:"2.5.29.33"
="2.5.29.33"
id_PrivateKeyUsagePeriod
const
id_PrivateKeyUsagePeriod:"2.5.29.16"
="2.5.29.16"
id_QCStatements
const
id_QCStatements:"1.3.6.1.5.5.7.1.3"
="1.3.6.1.5.5.7.1.3"
id_sha1
const
id_sha1:"1.3.14.3.2.26"
="1.3.14.3.2.26"
id_sha256
const
id_sha256:"2.16.840.1.101.3.4.2.1"
="2.16.840.1.101.3.4.2.1"
id_sha384
const
id_sha384:"2.16.840.1.101.3.4.2.2"
="2.16.840.1.101.3.4.2.2"
id_sha512
const
id_sha512:"2.16.840.1.101.3.4.2.3"
="2.16.840.1.101.3.4.2.3"
id_SignedCertificateTimestampList
const
id_SignedCertificateTimestampList:"1.3.6.1.4.1.11129.2.4.2"
="1.3.6.1.4.1.11129.2.4.2"
id_SubjectAltName
const
id_SubjectAltName:"2.5.29.17"
="2.5.29.17"
id_SubjectDirectoryAttributes
const
id_SubjectDirectoryAttributes:"2.5.29.9"
="2.5.29.9"
id_SubjectInfoAccess
const
id_SubjectInfoAccess:"1.3.6.1.5.5.7.1.11"
="1.3.6.1.5.5.7.1.11"
id_SubjectKeyIdentifier
const
id_SubjectKeyIdentifier:"2.5.29.14"
="2.5.29.14"
MICROS
const
MICROS:"micros"
="micros"
MILLIS
const
MILLIS:"millis"
="millis"
POLICY_IDENTIFIER
const
POLICY_IDENTIFIER:"policyIdentifier"
="policyIdentifier"
POLICY_QUALIFIERS
const
POLICY_QUALIFIERS:"policyQualifiers"
="policyQualifiers"
RDN
const
RDN:"RDN"
="RDN"
SECONDS
const
SECONDS:"seconds"
="seconds"
TYPE
const
TYPE:"type"
="type"
TYPE_AND_VALUES
const
TYPE_AND_VALUES:"typesAndValues"
="typesAndValues"
VALUE
const
VALUE:"value"
="value"
VALUE_BEFORE_DECODE
const
VALUE_BEFORE_DECODE:"valueBeforeDecode"
="valueBeforeDecode"
Functions
checkCA()
checkCA(
cert
,signerCert
):null
|Certificate
Check CA flag for the certificate
Parameters
cert
Certificate to find CA flag for
signerCert
null
| Certificate
Returns
null
| Certificate
Returns Certificate if cert
is CA certificate otherwise return null
createCMSECDSASignature()
createCMSECDSASignature(
signatureBuffer
):ArrayBuffer
Create CMS ECDSA signature from WebCrypto ECDSA signature
Parameters
signatureBuffer
ArrayBuffer
WebCrypto result of "sign" function
Returns
ArrayBuffer
createECDSASignatureFromCMS()
createECDSASignatureFromCMS(
cmsSignature
,pointSize
):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()
Call Signature
getAlgorithmByOID<
T
>(oid
,safety
?,target
?):object
|T
Gets WebCrypto algorithm by well-known OID
Type Parameters
• T extends Algorithm
= Algorithm
Parameters
oid
string
algorithm identifier
safety?
boolean
if true throws exception on unknown algorithm identifier
target?
string
name of the target
Returns
object
| T
WebCrypto algorithm or an empty object
Call Signature
getAlgorithmByOID<
T
>(oid
,safety
,target
?):T
Gets WebCrypto algorithm by well-known OID
Type Parameters
• T extends Algorithm
= Algorithm
Parameters
oid
string
algorithm identifier
safety
true
if true throws exception on unknown algorithm identifier
target?
string
name of the target
Returns
T
WebCrypto algorithm or an empty object
getAlgorithmParameters()
getAlgorithmParameters(
algorithmName
,operation
):CryptoEngineAlgorithmParams
Get default algorithm parameters for each kind of operation
Parameters
algorithmName
string
Algorithm name to get common parameters for
operation
CryptoEngineAlgorithmOperation
Kind of operation: "sign", "encrypt", "generateKey", "importKey", "exportKey", "verify"
Returns
getCrypto()
Call Signature
getCrypto(
safety
?):null
|ICryptoEngine
Gets crypto subtle from the current "crypto engine"
Parameters
safety?
boolean
Returns
null
| ICryptoEngine
Reruns ICryptoEngine or null
Call Signature
getCrypto(
safety
):ICryptoEngine
Gets crypto subtle from the current "crypto engine"
Parameters
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
signatureAlgorithm
Signature algorithm
Returns
string
getOIDByAlgorithm()
getOIDByAlgorithm(
algorithm
,safety
?,target
?):string
Get OID for each specific algorithm
Parameters
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
view
Uint8Array
Returns
Uint8Array
kdf()
kdf(
hashFunction
,Zbuffer
,keydatalen
,SharedInfo
,crypto
):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
>
setEngine()
Call Signature
setEngine(
name
,crypto
,subtle
):void
Sets global crypto engine
Parameters
name
string
Name of the crypto engine
crypto
Crypto
| ICryptoEngine
subtle
SubtleCrypto
| ICryptoEngine
Returns
void
Deprecated
Since version 3.0.0
Call Signature
setEngine(
name
,crypto
?):void
Sets global crypto engine
Parameters
name
string
Name of the crypto engine
crypto?
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
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
certificate
Certificate for which verification would be performed
issuerCertificate
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