Files
dinlo 436a9631fc Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 18:44:04 +08:00

16 lines
501 B
JavaScript

import { makeDERSequence, makeDERTaggedData } from './derUtil.js';
// abstract
var ContentInfo = /** @class */ (function () {
function ContentInfo(contentType, content) {
this.contentType = contentType;
this.content = content;
}
ContentInfo.prototype.toDER = function () {
return makeDERSequence(this.contentType
.toDER()
.concat(makeDERTaggedData(0, this.content.toDER())));
};
return ContentInfo;
}());
export default ContentInfo;