

const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
let __peculiar_asn1_ecc = require("@peculiar/asn1-ecc");
let __peculiar_asn1_schema = require("@peculiar/asn1-schema");
let __peculiar_asn1_x509 = require("@peculiar/asn1-x509");
let __peculiar_asn1_rsa = require("@peculiar/asn1-rsa");

//#region src/crypto/webcrypto/algorithmIdentifiers.ts
const ecPublicKeyAlgorithmIdentifier = (objectId) => new __peculiar_asn1_x509.AlgorithmIdentifier({
	algorithm: __peculiar_asn1_ecc.id_ecPublicKey,
	parameters: __peculiar_asn1_schema.AsnObjectIdentifierConverter.toASN(objectId).toBER()
});
/**
*
* https://oid-rep.orange-labs.fr/get/1.2.840.10045.3.1.7
*
*/
const ecPublicKeyWithP256AlgorithmIdentifier = ecPublicKeyAlgorithmIdentifier(__peculiar_asn1_ecc.id_secp256r1);
/**
*
* https://oid-rep.orange-labs.fr/get/1.3.132.0.34
*
*/
const ecPublicKeyWithP384AlgorithmIdentifier = ecPublicKeyAlgorithmIdentifier(__peculiar_asn1_ecc.id_secp384r1);
/**
*
* https://oid-rep.orange-labs.fr/get/1.3.132.0.35
*
*/
const ecPublicKeyWithP521AlgorithmIdentifier = ecPublicKeyAlgorithmIdentifier(__peculiar_asn1_ecc.id_secp521r1);
/**
*
* https://oid-rep.orange-labs.fr/get/1.3.132.0.10
*
*/
const ecPublicKeyWithK256AlgorithmIdentifier = ecPublicKeyAlgorithmIdentifier("1.3.132.0.10");
/**
*
* from: https://datatracker.ietf.org/doc/html/rfc8410#section-3
*
*/
const ed25519AlgorithmIdentifier = new __peculiar_asn1_x509.AlgorithmIdentifier({ algorithm: "1.3.101.112" });
/**
*
* from: https://datatracker.ietf.org/doc/html/rfc8410#section-3
*
*/
const x25519AlgorithmIdentifier = new __peculiar_asn1_x509.AlgorithmIdentifier({ algorithm: "1.3.101.110" });
/**
*
* RSA algorithm identifier
* https://oid-rep.orange-labs.fr/get/1.2.840.113549.1.1.1
*
*/
const rsaKeyAlgorithmIdentifier = new __peculiar_asn1_x509.AlgorithmIdentifier({
	algorithm: __peculiar_asn1_rsa.id_rsaEncryption,
	parameters: null
});

//#endregion
exports.ecPublicKeyWithK256AlgorithmIdentifier = ecPublicKeyWithK256AlgorithmIdentifier;
exports.ecPublicKeyWithP256AlgorithmIdentifier = ecPublicKeyWithP256AlgorithmIdentifier;
exports.ecPublicKeyWithP384AlgorithmIdentifier = ecPublicKeyWithP384AlgorithmIdentifier;
exports.ecPublicKeyWithP521AlgorithmIdentifier = ecPublicKeyWithP521AlgorithmIdentifier;
exports.ed25519AlgorithmIdentifier = ed25519AlgorithmIdentifier;
exports.rsaKeyAlgorithmIdentifier = rsaKeyAlgorithmIdentifier;
exports.x25519AlgorithmIdentifier = x25519AlgorithmIdentifier;