

const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
const require_Hasher = require('../hashes/Hasher.js');
require('../hashes/index.js');
const require_CredoSubtle = require('./CredoSubtle.js');
const require_CredoWalletWebCrypto = require('./CredoWalletWebCrypto.js');
let webcrypto_core = require("webcrypto-core");
webcrypto_core = require_rolldown_runtime.__toESM(webcrypto_core);

//#region src/crypto/webcrypto/CredoWebCrypto.ts
var CredoWebCrypto = class extends webcrypto_core.Crypto {
	constructor(agentContext) {
		super();
		this.walletWebCrypto = new require_CredoWalletWebCrypto.CredoWalletWebCrypto(agentContext);
		this.subtle = new require_CredoSubtle.CredoSubtle(this.walletWebCrypto);
	}
	getRandomValues(array) {
		return this.walletWebCrypto.generateRandomValues(array);
	}
	digest(algorithm, data) {
		return require_Hasher.Hasher.hash(new Uint8Array(data), algorithm);
	}
};

//#endregion
exports.CredoWebCrypto = CredoWebCrypto;