mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-18 12:12:43 +08:00
18 lines
584 B
JavaScript
18 lines
584 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var derUtil_js_1 = require("./derUtil.js");
|
|
// abstract
|
|
var ContentInfo = /** @class */ (function () {
|
|
function ContentInfo(contentType, content) {
|
|
this.contentType = contentType;
|
|
this.content = content;
|
|
}
|
|
ContentInfo.prototype.toDER = function () {
|
|
return derUtil_js_1.makeDERSequence(this.contentType
|
|
.toDER()
|
|
.concat(derUtil_js_1.makeDERTaggedData(0, this.content.toDER())));
|
|
};
|
|
return ContentInfo;
|
|
}());
|
|
exports.default = ContentInfo;
|