@wildboar/pkcs 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -7
- package/src/lib/modules/AsymmetricKeyPackageModuleV1/Version.ta.d.ts +1 -1
- package/src/lib/modules/CryptographicMessageSyntax/CMSVersion.ta.d.ts +1 -1
- package/src/lib/modules/CryptographicMessageSyntax/RC2ParameterVersion.ta.d.ts +1 -1
- package/src/lib/modules/CryptographicMessageSyntax/RC2wrapParameter.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-1/RSAES-OAEP-params.ta.d.ts +3 -3
- package/src/lib/modules/PKCS-1/RSASSA-PSS-params.ta.d.ts +3 -3
- package/src/lib/modules/PKCS-1/TrailerField.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-1/Version.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-10/CertificationRequestInfo-version.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-12/PFX-version.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/AuthObjects.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/Certificates.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/DHPrivateKey.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/DSAPrivateKey.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/DataObjects.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/ECPrivateKey.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/EnvelopedData-version.ta.d.ts +2 -2
- package/src/lib/modules/PKCS-15/ExternalIDO.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/KEAPrivateKey.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/Opaque.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/PKCS15Token-version.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/PathOrObjects.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/PrivateKeys.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/PublicKeys.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/Reference.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/ReferencedValue.ta.d.ts +2 -2
- package/src/lib/modules/PKCS-15/SecretKeys.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-15/TokenInfo-version.ta.d.ts +1 -1
- package/src/lib/modules/PKCS-9/SequenceNumber.ta.d.ts +1 -1
- package/src/lib/modules/PKCS5v2-1/RC5-CBC-Parameters-version.ta.d.ts +1 -1
- package/src/lib/modules/PKCS7/Version.ta.d.ts +1 -1
- package/src/lib/modules/PKIXCRMF-2009/CertId.ta.js +4 -2
- package/src/lib/modules/PKIXCRMF-2009/CertId.ta.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildboar/pkcs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Public Key Cryptography Standard PDUs in TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pkcs",
|
|
@@ -37,12 +37,14 @@
|
|
|
37
37
|
"main": "./src/index.js",
|
|
38
38
|
"typings": "./src/index.d.ts",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"asn1-ts": "^
|
|
41
|
-
"@wildboar/x500": "1.0.
|
|
42
|
-
"date-fns": "^2.
|
|
40
|
+
"asn1-ts": "^7.0.1",
|
|
41
|
+
"@wildboar/x500": "1.0.24",
|
|
42
|
+
"date-fns": "^2.22.1",
|
|
43
|
+
"@wildboar/pki-stub": "1.0.0",
|
|
44
|
+
"@wildboar/ldap": "1.2.3",
|
|
43
45
|
"@wildboar/ansi-x9-42": "1.0.0",
|
|
44
|
-
"@wildboar/ansi-x9-62": "1.0.
|
|
45
|
-
"@wildboar/cms": "1.0.
|
|
46
|
+
"@wildboar/ansi-x9-62": "1.0.1",
|
|
47
|
+
"@wildboar/cms": "1.0.1"
|
|
46
48
|
},
|
|
47
49
|
"peerDependencies": {}
|
|
48
|
-
}
|
|
50
|
+
}
|
|
@@ -41,7 +41,7 @@ export declare const v2: Version;
|
|
|
41
41
|
* @param {_Element} el The element being decoded.
|
|
42
42
|
* @returns {Version} The decoded data structure.
|
|
43
43
|
*/
|
|
44
|
-
export declare function _decode_Version(el: _Element):
|
|
44
|
+
export declare function _decode_Version(el: _Element): INTEGER;
|
|
45
45
|
/**
|
|
46
46
|
* @summary Encodes a(n) Version into an ASN.1 Element.
|
|
47
47
|
* @function
|
|
@@ -77,7 +77,7 @@ export declare const v4: CMSVersion;
|
|
|
77
77
|
* @param {_Element} el The element being decoded.
|
|
78
78
|
* @returns {CMSVersion} The decoded data structure.
|
|
79
79
|
*/
|
|
80
|
-
export declare function _decode_CMSVersion(el: _Element):
|
|
80
|
+
export declare function _decode_CMSVersion(el: _Element): INTEGER;
|
|
81
81
|
/**
|
|
82
82
|
* @summary Encodes a(n) CMSVersion into an ASN.1 Element.
|
|
83
83
|
* @function
|
|
@@ -17,7 +17,7 @@ export declare type RC2ParameterVersion = INTEGER;
|
|
|
17
17
|
* @param {_Element} el The element being decoded.
|
|
18
18
|
* @returns {RC2ParameterVersion} The decoded data structure.
|
|
19
19
|
*/
|
|
20
|
-
export declare function _decode_RC2ParameterVersion(el: _Element):
|
|
20
|
+
export declare function _decode_RC2ParameterVersion(el: _Element): INTEGER;
|
|
21
21
|
/**
|
|
22
22
|
* @summary Encodes a(n) RC2ParameterVersion into an ASN.1 Element.
|
|
23
23
|
* @function
|
|
@@ -19,7 +19,7 @@ export declare type RC2wrapParameter = RC2ParameterVersion;
|
|
|
19
19
|
* @param {_Element} el The element being decoded.
|
|
20
20
|
* @returns {RC2wrapParameter} The decoded data structure.
|
|
21
21
|
*/
|
|
22
|
-
export declare function _decode_RC2wrapParameter(el: _Element):
|
|
22
|
+
export declare function _decode_RC2wrapParameter(el: _Element): import("asn1-ts").INTEGER;
|
|
23
23
|
/**
|
|
24
24
|
* @summary Encodes a(n) RC2wrapParameter into an ASN.1 Element.
|
|
25
25
|
* @function
|
|
@@ -84,21 +84,21 @@ export declare class RSAES_OAEP_params {
|
|
|
84
84
|
* @static
|
|
85
85
|
* @method
|
|
86
86
|
*/
|
|
87
|
-
static get _default_value_for_hashAlgorithm(): import("
|
|
87
|
+
static get _default_value_for_hashAlgorithm(): import("../PKCS-1/HashAlgorithm.ta").AlgorithmIdentifier;
|
|
88
88
|
/**
|
|
89
89
|
* @summary Getter that returns the default value for `maskGenAlgorithm`.
|
|
90
90
|
* @public
|
|
91
91
|
* @static
|
|
92
92
|
* @method
|
|
93
93
|
*/
|
|
94
|
-
static get _default_value_for_maskGenAlgorithm(): import("
|
|
94
|
+
static get _default_value_for_maskGenAlgorithm(): import("../PKCS-1/HashAlgorithm.ta").AlgorithmIdentifier;
|
|
95
95
|
/**
|
|
96
96
|
* @summary Getter that returns the default value for `pSourceAlgorithm`.
|
|
97
97
|
* @public
|
|
98
98
|
* @static
|
|
99
99
|
* @method
|
|
100
100
|
*/
|
|
101
|
-
static get _default_value_for_pSourceAlgorithm(): import("
|
|
101
|
+
static get _default_value_for_pSourceAlgorithm(): import("../PKCS-1/HashAlgorithm.ta").AlgorithmIdentifier;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* @summary The Leading Root Component Types of RSAES_OAEP_params
|
|
@@ -96,14 +96,14 @@ export declare class RSASSA_PSS_params {
|
|
|
96
96
|
* @static
|
|
97
97
|
* @method
|
|
98
98
|
*/
|
|
99
|
-
static get _default_value_for_hashAlgorithm(): import("
|
|
99
|
+
static get _default_value_for_hashAlgorithm(): import("../PKCS-1/HashAlgorithm.ta").AlgorithmIdentifier;
|
|
100
100
|
/**
|
|
101
101
|
* @summary Getter that returns the default value for `maskGenAlgorithm`.
|
|
102
102
|
* @public
|
|
103
103
|
* @static
|
|
104
104
|
* @method
|
|
105
105
|
*/
|
|
106
|
-
static get _default_value_for_maskGenAlgorithm(): import("
|
|
106
|
+
static get _default_value_for_maskGenAlgorithm(): import("../PKCS-1/HashAlgorithm.ta").AlgorithmIdentifier;
|
|
107
107
|
/**
|
|
108
108
|
* @summary Getter that returns the default value for `saltLength`.
|
|
109
109
|
* @public
|
|
@@ -117,7 +117,7 @@ export declare class RSASSA_PSS_params {
|
|
|
117
117
|
* @static
|
|
118
118
|
* @method
|
|
119
119
|
*/
|
|
120
|
-
static get _default_value_for_trailerField():
|
|
120
|
+
static get _default_value_for_trailerField(): INTEGER;
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
123
|
* @summary The Leading Root Component Types of RSASSA_PSS_params
|
|
@@ -29,7 +29,7 @@ export declare const trailerFieldBC: TrailerField;
|
|
|
29
29
|
* @param {_Element} el The element being decoded.
|
|
30
30
|
* @returns {TrailerField} The decoded data structure.
|
|
31
31
|
*/
|
|
32
|
-
export declare function _decode_TrailerField(el: _Element):
|
|
32
|
+
export declare function _decode_TrailerField(el: _Element): INTEGER;
|
|
33
33
|
/**
|
|
34
34
|
* @summary Encodes a(n) TrailerField into an ASN.1 Element.
|
|
35
35
|
* @function
|
|
@@ -43,7 +43,7 @@ export declare const multi: Version;
|
|
|
43
43
|
* @param {_Element} el The element being decoded.
|
|
44
44
|
* @returns {Version} The decoded data structure.
|
|
45
45
|
*/
|
|
46
|
-
export declare function _decode_Version(el: _Element):
|
|
46
|
+
export declare function _decode_Version(el: _Element): INTEGER;
|
|
47
47
|
/**
|
|
48
48
|
* @summary Encodes a(n) Version into an ASN.1 Element.
|
|
49
49
|
* @function
|
|
@@ -29,7 +29,7 @@ export declare const v1: CertificationRequestInfo_version;
|
|
|
29
29
|
* @param {_Element} el The element being decoded.
|
|
30
30
|
* @returns {CertificationRequestInfo_version} The decoded data structure.
|
|
31
31
|
*/
|
|
32
|
-
export declare function _decode_CertificationRequestInfo_version(el: _Element):
|
|
32
|
+
export declare function _decode_CertificationRequestInfo_version(el: _Element): INTEGER;
|
|
33
33
|
/**
|
|
34
34
|
* @summary Encodes a(n) CertificationRequestInfo_version into an ASN.1 Element.
|
|
35
35
|
* @function
|
|
@@ -29,7 +29,7 @@ export declare const v3: PFX_version;
|
|
|
29
29
|
* @param {_Element} el The element being decoded.
|
|
30
30
|
* @returns {PFX_version} The decoded data structure.
|
|
31
31
|
*/
|
|
32
|
-
export declare function _decode_PFX_version(el: _Element):
|
|
32
|
+
export declare function _decode_PFX_version(el: _Element): INTEGER;
|
|
33
33
|
/**
|
|
34
34
|
* @summary Encodes a(n) PFX_version into an ASN.1 Element.
|
|
35
35
|
* @function
|
|
@@ -21,7 +21,7 @@ export declare type AuthObjects = PathOrObjects<AuthenticationType>;
|
|
|
21
21
|
* @param {_Element} el The element being decoded.
|
|
22
22
|
* @returns {AuthObjects} The decoded data structure.
|
|
23
23
|
*/
|
|
24
|
-
export declare function _decode_AuthObjects(el: _Element):
|
|
24
|
+
export declare function _decode_AuthObjects(el: _Element): AuthObjects;
|
|
25
25
|
/**
|
|
26
26
|
* @summary Encodes a(n) AuthObjects into an ASN.1 Element.
|
|
27
27
|
* @function
|
|
@@ -21,7 +21,7 @@ export declare type Certificates = PathOrObjects<CertificateType>;
|
|
|
21
21
|
* @param {_Element} el The element being decoded.
|
|
22
22
|
* @returns {Certificates} The decoded data structure.
|
|
23
23
|
*/
|
|
24
|
-
export declare function _decode_Certificates(el: _Element):
|
|
24
|
+
export declare function _decode_Certificates(el: _Element): Certificates;
|
|
25
25
|
/**
|
|
26
26
|
* @summary Encodes a(n) Certificates into an ASN.1 Element.
|
|
27
27
|
* @function
|
|
@@ -17,7 +17,7 @@ export declare type DHPrivateKey = INTEGER;
|
|
|
17
17
|
* @param {_Element} el The element being decoded.
|
|
18
18
|
* @returns {DHPrivateKey} The decoded data structure.
|
|
19
19
|
*/
|
|
20
|
-
export declare function _decode_DHPrivateKey(el: _Element):
|
|
20
|
+
export declare function _decode_DHPrivateKey(el: _Element): INTEGER;
|
|
21
21
|
/**
|
|
22
22
|
* @summary Encodes a(n) DHPrivateKey into an ASN.1 Element.
|
|
23
23
|
* @function
|
|
@@ -17,7 +17,7 @@ export declare type DSAPrivateKey = INTEGER;
|
|
|
17
17
|
* @param {_Element} el The element being decoded.
|
|
18
18
|
* @returns {DSAPrivateKey} The decoded data structure.
|
|
19
19
|
*/
|
|
20
|
-
export declare function _decode_DSAPrivateKey(el: _Element):
|
|
20
|
+
export declare function _decode_DSAPrivateKey(el: _Element): INTEGER;
|
|
21
21
|
/**
|
|
22
22
|
* @summary Encodes a(n) DSAPrivateKey into an ASN.1 Element.
|
|
23
23
|
* @function
|
|
@@ -21,7 +21,7 @@ export declare type DataObjects = PathOrObjects<DataType>;
|
|
|
21
21
|
* @param {_Element} el The element being decoded.
|
|
22
22
|
* @returns {DataObjects} The decoded data structure.
|
|
23
23
|
*/
|
|
24
|
-
export declare function _decode_DataObjects(el: _Element):
|
|
24
|
+
export declare function _decode_DataObjects(el: _Element): DataObjects;
|
|
25
25
|
/**
|
|
26
26
|
* @summary Encodes a(n) DataObjects into an ASN.1 Element.
|
|
27
27
|
* @function
|
|
@@ -17,7 +17,7 @@ export declare type ECPrivateKey = INTEGER;
|
|
|
17
17
|
* @param {_Element} el The element being decoded.
|
|
18
18
|
* @returns {ECPrivateKey} The decoded data structure.
|
|
19
19
|
*/
|
|
20
|
-
export declare function _decode_ECPrivateKey(el: _Element):
|
|
20
|
+
export declare function _decode_ECPrivateKey(el: _Element): INTEGER;
|
|
21
21
|
/**
|
|
22
22
|
* @summary Encodes a(n) ECPrivateKey into an ASN.1 Element.
|
|
23
23
|
* @function
|
|
@@ -77,10 +77,10 @@ export declare const v4: EnvelopedData_version;
|
|
|
77
77
|
* @param {_Element} el The element being decoded.
|
|
78
78
|
* @returns A function that will decode an ASN.1 element.
|
|
79
79
|
*/
|
|
80
|
-
export declare function _get_decoder_for_EnvelopedData_version<Type>(_decode_Type: $.ASN1Decoder<Type>): $.ASN1Decoder<
|
|
80
|
+
export declare function _get_decoder_for_EnvelopedData_version<Type>(_decode_Type: $.ASN1Decoder<Type>): $.ASN1Decoder<INTEGER>;
|
|
81
81
|
/**
|
|
82
82
|
* @summary Returns a function that will encode a(n) EnvelopedData_version into an ASN.1 Element.
|
|
83
83
|
* @function
|
|
84
84
|
* @returns A function that will encode a(n) EnvelopedData_version as an ASN.1 element.
|
|
85
85
|
*/
|
|
86
|
-
export declare function _get_encoder_for_EnvelopedData_version<Type>(_encode_Type: $.ASN1Encoder<Type>): $.ASN1Encoder<
|
|
86
|
+
export declare function _get_encoder_for_EnvelopedData_version<Type>(_encode_Type: $.ASN1Encoder<Type>): $.ASN1Encoder<INTEGER>;
|
|
@@ -22,7 +22,7 @@ export declare type ExternalIDO = ObjectValue<_Element>;
|
|
|
22
22
|
* @param {_Element} el The element being decoded.
|
|
23
23
|
* @returns {ExternalIDO} The decoded data structure.
|
|
24
24
|
*/
|
|
25
|
-
export declare function _decode_ExternalIDO(el: _Element):
|
|
25
|
+
export declare function _decode_ExternalIDO(el: _Element): ExternalIDO;
|
|
26
26
|
/**
|
|
27
27
|
* @summary Encodes a(n) ExternalIDO into an ASN.1 Element.
|
|
28
28
|
* @function
|
|
@@ -17,7 +17,7 @@ export declare type KEAPrivateKey = INTEGER;
|
|
|
17
17
|
* @param {_Element} el The element being decoded.
|
|
18
18
|
* @returns {KEAPrivateKey} The decoded data structure.
|
|
19
19
|
*/
|
|
20
|
-
export declare function _decode_KEAPrivateKey(el: _Element):
|
|
20
|
+
export declare function _decode_KEAPrivateKey(el: _Element): INTEGER;
|
|
21
21
|
/**
|
|
22
22
|
* @summary Encodes a(n) KEAPrivateKey into an ASN.1 Element.
|
|
23
23
|
* @function
|
|
@@ -20,7 +20,7 @@ export declare type Opaque = ObjectValue<_Element>;
|
|
|
20
20
|
* @param {_Element} el The element being decoded.
|
|
21
21
|
* @returns {Opaque} The decoded data structure.
|
|
22
22
|
*/
|
|
23
|
-
export declare function _decode_Opaque(el: _Element):
|
|
23
|
+
export declare function _decode_Opaque(el: _Element): Opaque;
|
|
24
24
|
/**
|
|
25
25
|
* @summary Encodes a(n) Opaque into an ASN.1 Element.
|
|
26
26
|
* @function
|
|
@@ -29,7 +29,7 @@ export declare const v1: PKCS15Token_version;
|
|
|
29
29
|
* @param {_Element} el The element being decoded.
|
|
30
30
|
* @returns {PKCS15Token_version} The decoded data structure.
|
|
31
31
|
*/
|
|
32
|
-
export declare function _decode_PKCS15Token_version(el: _Element):
|
|
32
|
+
export declare function _decode_PKCS15Token_version(el: _Element): INTEGER;
|
|
33
33
|
/**
|
|
34
34
|
* @summary Encodes a(n) PKCS15Token_version into an ASN.1 Element.
|
|
35
35
|
* @function
|
|
@@ -37,7 +37,7 @@ export declare type PathOrObjects<ObjectType> = {
|
|
|
37
37
|
* @param {_Element} el The element being decoded.
|
|
38
38
|
* @returns A function that will decode an ASN.1 element.
|
|
39
39
|
*/
|
|
40
|
-
export declare function _get_decoder_for_PathOrObjects<ObjectType>(_decode_ObjectType: $.ASN1Decoder<ObjectType>): $.ASN1Decoder<PathOrObjects<ObjectType
|
|
40
|
+
export declare function _get_decoder_for_PathOrObjects<ObjectType>(_decode_ObjectType: $.ASN1Decoder<ObjectType>): $.ASN1Decoder<$.ExtensibleChoice<PathOrObjects<ObjectType>>>;
|
|
41
41
|
/**
|
|
42
42
|
* @summary Returns a function that will encode a(n) PathOrObjects into an ASN.1 Element.
|
|
43
43
|
* @function
|
|
@@ -21,7 +21,7 @@ export declare type PrivateKeys = PathOrObjects<PrivateKeyType>;
|
|
|
21
21
|
* @param {_Element} el The element being decoded.
|
|
22
22
|
* @returns {PrivateKeys} The decoded data structure.
|
|
23
23
|
*/
|
|
24
|
-
export declare function _decode_PrivateKeys(el: _Element):
|
|
24
|
+
export declare function _decode_PrivateKeys(el: _Element): PrivateKeys;
|
|
25
25
|
/**
|
|
26
26
|
* @summary Encodes a(n) PrivateKeys into an ASN.1 Element.
|
|
27
27
|
* @function
|
|
@@ -21,7 +21,7 @@ export declare type PublicKeys = PathOrObjects<PublicKeyType>;
|
|
|
21
21
|
* @param {_Element} el The element being decoded.
|
|
22
22
|
* @returns {PublicKeys} The decoded data structure.
|
|
23
23
|
*/
|
|
24
|
-
export declare function _decode_PublicKeys(el: _Element):
|
|
24
|
+
export declare function _decode_PublicKeys(el: _Element): PublicKeys;
|
|
25
25
|
/**
|
|
26
26
|
* @summary Encodes a(n) PublicKeys into an ASN.1 Element.
|
|
27
27
|
* @function
|
|
@@ -17,7 +17,7 @@ export declare type Reference = INTEGER;
|
|
|
17
17
|
* @param {_Element} el The element being decoded.
|
|
18
18
|
* @returns {Reference} The decoded data structure.
|
|
19
19
|
*/
|
|
20
|
-
export declare function _decode_Reference(el: _Element):
|
|
20
|
+
export declare function _decode_Reference(el: _Element): INTEGER;
|
|
21
21
|
/**
|
|
22
22
|
* @summary Encodes a(n) Reference into an ASN.1 Element.
|
|
23
23
|
* @function
|
|
@@ -27,10 +27,10 @@ export declare type ReferencedValue<Type> = {
|
|
|
27
27
|
* @param {_Element} el The element being decoded.
|
|
28
28
|
* @returns A function that will decode an ASN.1 element.
|
|
29
29
|
*/
|
|
30
|
-
export declare function _get_decoder_for_ReferencedValue<Type>(_decode_Type: $.ASN1Decoder<Type>): $.ASN1Decoder<ReferencedValue<
|
|
30
|
+
export declare function _get_decoder_for_ReferencedValue<Type>(_decode_Type: $.ASN1Decoder<Type>): $.ASN1Decoder<ReferencedValue<Type>>;
|
|
31
31
|
/**
|
|
32
32
|
* @summary Returns a function that will encode a(n) ReferencedValue into an ASN.1 Element.
|
|
33
33
|
* @function
|
|
34
34
|
* @returns A function that will encode a(n) ReferencedValue as an ASN.1 element.
|
|
35
35
|
*/
|
|
36
|
-
export declare function _get_encoder_for_ReferencedValue<Type>(_encode_Type: $.ASN1Encoder<Type>): $.ASN1Encoder<ReferencedValue<
|
|
36
|
+
export declare function _get_encoder_for_ReferencedValue<Type>(_encode_Type: $.ASN1Encoder<Type>): $.ASN1Encoder<ReferencedValue<Type>>;
|
|
@@ -21,7 +21,7 @@ export declare type SecretKeys = PathOrObjects<SecretKeyType>;
|
|
|
21
21
|
* @param {_Element} el The element being decoded.
|
|
22
22
|
* @returns {SecretKeys} The decoded data structure.
|
|
23
23
|
*/
|
|
24
|
-
export declare function _decode_SecretKeys(el: _Element):
|
|
24
|
+
export declare function _decode_SecretKeys(el: _Element): SecretKeys;
|
|
25
25
|
/**
|
|
26
26
|
* @summary Encodes a(n) SecretKeys into an ASN.1 Element.
|
|
27
27
|
* @function
|
|
@@ -29,7 +29,7 @@ export declare const v1: TokenInfo_version;
|
|
|
29
29
|
* @param {_Element} el The element being decoded.
|
|
30
30
|
* @returns {TokenInfo_version} The decoded data structure.
|
|
31
31
|
*/
|
|
32
|
-
export declare function _decode_TokenInfo_version(el: _Element):
|
|
32
|
+
export declare function _decode_TokenInfo_version(el: _Element): INTEGER;
|
|
33
33
|
/**
|
|
34
34
|
* @summary Encodes a(n) TokenInfo_version into an ASN.1 Element.
|
|
35
35
|
* @function
|
|
@@ -17,7 +17,7 @@ export declare type SequenceNumber = INTEGER;
|
|
|
17
17
|
* @param {_Element} el The element being decoded.
|
|
18
18
|
* @returns {SequenceNumber} The decoded data structure.
|
|
19
19
|
*/
|
|
20
|
-
export declare function _decode_SequenceNumber(el: _Element):
|
|
20
|
+
export declare function _decode_SequenceNumber(el: _Element): INTEGER;
|
|
21
21
|
/**
|
|
22
22
|
* @summary Encodes a(n) SequenceNumber into an ASN.1 Element.
|
|
23
23
|
* @function
|
|
@@ -29,7 +29,7 @@ export declare const v1_0: RC5_CBC_Parameters_version;
|
|
|
29
29
|
* @param {_Element} el The element being decoded.
|
|
30
30
|
* @returns {RC5_CBC_Parameters_version} The decoded data structure.
|
|
31
31
|
*/
|
|
32
|
-
export declare function _decode_RC5_CBC_Parameters_version(el: _Element):
|
|
32
|
+
export declare function _decode_RC5_CBC_Parameters_version(el: _Element): INTEGER;
|
|
33
33
|
/**
|
|
34
34
|
* @summary Encodes a(n) RC5_CBC_Parameters_version into an ASN.1 Element.
|
|
35
35
|
* @function
|
|
@@ -17,7 +17,7 @@ export declare type Version = INTEGER;
|
|
|
17
17
|
* @param {_Element} el The element being decoded.
|
|
18
18
|
* @returns {Version} The decoded data structure.
|
|
19
19
|
*/
|
|
20
|
-
export declare function _decode_Version(el: _Element):
|
|
20
|
+
export declare function _decode_Version(el: _Element): INTEGER;
|
|
21
21
|
/**
|
|
22
22
|
* @summary Encodes a(n) Version into an ASN.1 Element.
|
|
23
23
|
* @function
|
|
@@ -18,7 +18,7 @@ exports._root_component_type_list_1_spec_for_CertId = [
|
|
|
18
18
|
new $.ComponentSpec("issuer", false, $.hasAnyTag, undefined, undefined),
|
|
19
19
|
new $.ComponentSpec("serialNumber", false, $.hasTag(asn1.ASN1TagClass.universal, asn1.ASN1UniversalType.octetString), undefined, undefined),
|
|
20
20
|
];
|
|
21
|
-
|
|
21
|
+
const _encode_CertId = function (value, elGetter) {
|
|
22
22
|
return $._encodeSequence([]
|
|
23
23
|
.concat([
|
|
24
24
|
GeneralName_ta_1._encode_GeneralName(value.issuer, $.BER),
|
|
@@ -26,7 +26,8 @@ exports._encode_CertId = function (value, elGetter) {
|
|
|
26
26
|
])
|
|
27
27
|
.filter((c) => !!c), $.BER);
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
29
|
+
exports._encode_CertId = _encode_CertId;
|
|
30
|
+
const _decode_CertId = function (el) {
|
|
30
31
|
let issuer;
|
|
31
32
|
let serialNumber;
|
|
32
33
|
const callbacks = {
|
|
@@ -40,4 +41,5 @@ exports._decode_CertId = function (el) {
|
|
|
40
41
|
$._parse_sequence(el, callbacks, exports._root_component_type_list_1_spec_for_CertId, [], [], undefined);
|
|
41
42
|
return new CertId(issuer, serialNumber);
|
|
42
43
|
};
|
|
44
|
+
exports._decode_CertId = _decode_CertId;
|
|
43
45
|
//# sourceMappingURL=CertId.ta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CertId.ta.js","sourceRoot":"","sources":["../../../../../../../libs/pkcs/src/lib/modules/PKIXCRMF-2009/CertId.ta.ts"],"names":[],"mappings":";;;AAAA,gCAAgC;AAChC,kDAAkD;AAClD,wGAI6E;AAE7E,wBAAwB;AACxB,oCAAoC;AACpC,iCAAiC;AAEjC,MAAa,MAAM;IACf,YACa,MAAmB,EACnB,YAA+B;QAD/B,WAAM,GAAN,MAAM,CAAa;QACnB,iBAAY,GAAZ,YAAY,CAAmB;IACzC,CAAC;CACP;AALD,wBAKC;AACY,QAAA,2CAA2C,GAAsB;IAC1E,IAAI,CAAC,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACvE,IAAI,CAAC,CAAC,aAAa,CACf,cAAc,EACd,KAAK,EACL,CAAC,CAAC,MAAM,CACJ,IAAI,CAAC,YAAY,CAAC,SAAS,EAC3B,IAAI,CAAC,iBAAiB,CAAC,WAAW,CACrC,EACD,SAAS,EACT,SAAS,CACZ;CACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"CertId.ta.js","sourceRoot":"","sources":["../../../../../../../libs/pkcs/src/lib/modules/PKIXCRMF-2009/CertId.ta.ts"],"names":[],"mappings":";;;AAAA,gCAAgC;AAChC,kDAAkD;AAClD,wGAI6E;AAE7E,wBAAwB;AACxB,oCAAoC;AACpC,iCAAiC;AAEjC,MAAa,MAAM;IACf,YACa,MAAmB,EACnB,YAA+B;QAD/B,WAAM,GAAN,MAAM,CAAa;QACnB,iBAAY,GAAZ,YAAY,CAAmB;IACzC,CAAC;CACP;AALD,wBAKC;AACY,QAAA,2CAA2C,GAAsB;IAC1E,IAAI,CAAC,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACvE,IAAI,CAAC,CAAC,aAAa,CACf,cAAc,EACd,KAAK,EACL,CAAC,CAAC,MAAM,CACJ,IAAI,CAAC,YAAY,CAAC,SAAS,EAC3B,IAAI,CAAC,iBAAiB,CAAC,WAAW,CACrC,EACD,SAAS,EACT,SAAS,CACZ;CACJ,CAAC;AACK,MAAM,cAAc,GAAG,UAC1B,KAAa,EACb,QAA+B;IAE/B,OAAO,CAAC,CAAC,eAAe,CACnB,EAAuC;SACnC,MAAM,CAAC;QACJ,oCAAmB,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC;QACxC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,GAAG,CAAC;KAC7C,CAAC;SACD,MAAM,CACH,CAAC,CAA+B,EAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAC9B,EAC3B,CAAC,CAAC,GAAG,CACR,CAAC;AACN,CAAC,CAAC;AAfW,QAAA,cAAc,kBAezB;AACK,MAAM,cAAc,GAAG,UAAU,EAAoB;IACxD,IAAI,MAAoB,CAAC;IACzB,IAAI,YAAgC,CAAC;IACrC,MAAM,SAAS,GAAkB;QAC7B,MAAM,EAAE,CAAC,GAAqB,EAAQ,EAAE;YACpC,MAAM,GAAG,CAAC,CAAC,gBAAgB,CAAc,GAAG,EAAE,CAAC,oCAAmB,CAAC,CAC/D,GAAG,CACN,CAAC;QACN,CAAC;QACD,YAAY,EAAE,CAAC,GAAqB,EAAQ,EAAE;YAC1C,YAAY,GAAG,CAAC,CAAC,gBAAgB,CAC7B,GAAG,EAAE,CAAC,CAAC,CAAC,aAAa,CACxB,CAAC,GAAG,CAAC,CAAC;QACX,CAAC;KACJ,CAAC;IACF,CAAC,CAAC,eAAe,CACb,EAAE,EACF,SAAS,EACT,mDAA2C,EAC3C,EAAE,EACF,EAAE,EACF,SAAS,CACZ,CAAC;IACF,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAC5C,CAAC,CAAC;AAxBW,QAAA,cAAc,kBAwBzB"}
|