INNER CODE UNIT · JavaScript

start

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

		let start = 18 + credentialIDLength;
		let end = start + 1;
		while (end < authData.byteLength) {
			try {
				publicKey = CBOR.decode(remainingBytes.slice(start,end).buffer);
				break;
			}
			catch (err) {
				end++;
			}
		}

		// public-key was successfully decoded?
		if (publicKey != null) {
			// public-key in OKP (typically EdDSA) form?
			if (
				publicKey[1] == 1 &&
				publicKey[3] == -8

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…