first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";
import { id_pkcs_9 } from "./types";
export class CertBag {
constructor(params = {}) {
this.certId = "";
this.certValue = new ArrayBuffer(0);
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
], CertBag.prototype, "certId", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.Any, context: 0 })
], CertBag.prototype, "certValue", void 0);
export const id_certTypes = `${id_pkcs_9}.22`;
export const id_x509Certificate = `${id_certTypes}.1`;
export const id_sdsiCertificate = `${id_certTypes}.2`;
+18
View File
@@ -0,0 +1,18 @@
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";
import { id_pkcs_9 } from "./types";
export class CRLBag {
constructor(params = {}) {
this.crlId = "";
this.crltValue = new ArrayBuffer(0);
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
], CRLBag.prototype, "crlId", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.Any, context: 0 })
], CRLBag.prototype, "crltValue", void 0);
export const id_crlTypes = `${id_pkcs_9}.23`;
export const id_x509CRL = `${id_crlTypes}.1`;
+6
View File
@@ -0,0 +1,6 @@
export * from "./cert_bag";
export * from "./crl_bag";
export * from "./key_bag";
export * from "./pkcs8_shrouded_key_bag";
export * from "./secret_bag";
export * from "./types";
+9
View File
@@ -0,0 +1,9 @@
import { __decorate } from "tslib";
import { PrivateKeyInfo } from "@peculiar/asn1-pkcs8";
import { AsnType, AsnTypeTypes } from "@peculiar/asn1-schema";
let KeyBag = class KeyBag extends PrivateKeyInfo {
};
KeyBag = __decorate([
AsnType({ type: AsnTypeTypes.Sequence })
], KeyBag);
export { KeyBag };
@@ -0,0 +1,9 @@
import { __decorate } from "tslib";
import { EncryptedPrivateKeyInfo } from "@peculiar/asn1-pkcs8";
import { AsnType, AsnTypeTypes } from "@peculiar/asn1-schema";
let PKCS8ShroudedKeyBag = class PKCS8ShroudedKeyBag extends EncryptedPrivateKeyInfo {
};
PKCS8ShroudedKeyBag = __decorate([
AsnType({ type: AsnTypeTypes.Sequence })
], PKCS8ShroudedKeyBag);
export { PKCS8ShroudedKeyBag };
+15
View File
@@ -0,0 +1,15 @@
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";
export class SecretBag {
constructor(params = {}) {
this.secretTypeId = "";
this.secretValue = new ArrayBuffer(0);
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
], SecretBag.prototype, "secretTypeId", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.Any, context: 0 })
], SecretBag.prototype, "secretValue", void 0);
+8
View File
@@ -0,0 +1,8 @@
import { id_bagtypes } from "../object_identifiers";
export const id_keyBag = `${id_bagtypes}.1`;
export const id_pkcs8ShroudedKeyBag = `${id_bagtypes}.2`;
export const id_certBag = `${id_bagtypes}.3`;
export const id_CRLBag = `${id_bagtypes}.4`;
export const id_SecretBag = `${id_bagtypes}.5`;
export const id_SafeContents = `${id_bagtypes}.6`;
export const id_pkcs_9 = "1.2.840.113549.1.9";