uci*_*ass 3 encryption webauthn fido yubikey
我正在尝试利用 CTAP hmac-secret 扩展在 Web 浏览器中检索对称加密的密钥。我有 Yubikey5 实现了这个扩展。我通读了 CTAP 规范,但在获得断言数据后找不到如何执行此操作的参考。
这是我的简化代码:
var getCredentialDefaultArgs = {
publicKey: {
timeout: 60000,
allowCredentials: myCredentials,
challenge: myUint8Array,
extensions: {
hmacGetSecret: {
salt1: "01234567890ABCDEF"
}
}
}
}
navigator.credentials.get(getCredentialDefaultArgs)
.then((assertion) => {
console.log("assertion", assertion.response.authenticatorData);
// How do I get my symmetric secret from the authenticatorData ?
// log just shows: ArrayBuffer(37) {byteLength: 37}
})
.catch((err) => {
console.log("assertion error", err);
});
Run Code Online (Sandbox Code Playgroud)
我还没有找到一个可以在 Web 浏览器中利用此功能的 JavaScript工作示例。
| 归档时间: |
|
| 查看次数: |
1094 次 |
| 最近记录: |