NeahNew/node_modules/resedit/dist/sign/data/AlgorithmIdentifier.js
2025-05-06 22:43:27 +02:00

17 lines
576 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var derUtil_js_1 = require("./derUtil.js");
var AlgorithmIdentifier = /** @class */ (function () {
function AlgorithmIdentifier(algorithm) {
this.algorithm = algorithm;
}
AlgorithmIdentifier.prototype.toDER = function () {
var r = this.algorithm.toDER();
return derUtil_js_1.makeDERSequence(r.concat(
// parameters is not used now
[0x05, 0x00]));
};
return AlgorithmIdentifier;
}());
exports.default = AlgorithmIdentifier;