import { __commonJS, __require } from "../../../_virtual/rolldown_runtime.mjs";

//#region ../../node_modules/xml-crypto/lib/hash-algorithms.js
var require_hash_algorithms = /* @__PURE__ */ __commonJS({ "../../node_modules/xml-crypto/lib/hash-algorithms.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.Sha512 = exports.Sha256 = exports.Sha1 = void 0;
	const crypto = __require("crypto");
	var Sha1 = class {
		constructor() {
			this.getHash = function(xml) {
				const shasum = crypto.createHash("sha1");
				shasum.update(xml, "utf8");
				return shasum.digest("base64");
			};
			this.getAlgorithmName = function() {
				return "http://www.w3.org/2000/09/xmldsig#sha1";
			};
		}
	};
	exports.Sha1 = Sha1;
	var Sha256 = class {
		constructor() {
			this.getHash = function(xml) {
				const shasum = crypto.createHash("sha256");
				shasum.update(xml, "utf8");
				return shasum.digest("base64");
			};
			this.getAlgorithmName = function() {
				return "http://www.w3.org/2001/04/xmlenc#sha256";
			};
		}
	};
	exports.Sha256 = Sha256;
	var Sha512 = class {
		constructor() {
			this.getHash = function(xml) {
				const shasum = crypto.createHash("sha512");
				shasum.update(xml, "utf8");
				return shasum.digest("base64");
			};
			this.getAlgorithmName = function() {
				return "http://www.w3.org/2001/04/xmlenc#sha512";
			};
		}
	};
	exports.Sha512 = Sha512;
}) });

//#endregion
export default require_hash_algorithms();

export { require_hash_algorithms };
//# sourceMappingURL=hash-algorithms.mjs.map