securityos/node_modules/resedit/dist/sign/data/AlgorithmIdentifier.js

15 lines
485 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import { makeDERSequence } from './derUtil.js';
var AlgorithmIdentifier = /** @class */ (function () {
function AlgorithmIdentifier(algorithm) {
this.algorithm = algorithm;
}
AlgorithmIdentifier.prototype.toDER = function () {
var r = this.algorithm.toDER();
return makeDERSequence(r.concat(
// parameters is not used now
[0x05, 0x00]));
};
return AlgorithmIdentifier;
}());
export default AlgorithmIdentifier;