

import { Hasher } from "../hashes/Hasher.mjs";
import "../hashes/index.mjs";
import { CredoSubtle } from "./CredoSubtle.mjs";
import { CredoWalletWebCrypto } from "./CredoWalletWebCrypto.mjs";
import * as core from "webcrypto-core";

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

//#endregion
export { CredoWebCrypto };
//# sourceMappingURL=CredoWebCrypto.mjs.map