INNER CODE UNIT · JavaScript

computeSHA256Hash

mylofi/webauthn-local-client · src/walc.js:754

async function computeSHA256Hash(val) {
	return new Uint8Array(
		await window.crypto.subtle.digest(
			"SHA-256",
			new Uint8Array(val)
		)
	);
}

function isPublicKeyAlgorithm(algoName,COSEID) {
	return (
		publicKeyAlgorithmsLookup[algoName] == publicKeyAlgorithmsLookup[COSEID]
	);
}

function packPublicKeyJSON(publicKeyEntry,stringify = false) {
	publicKeyEntry = {
		...publicKeyEntry,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…