Last active
September 28, 2019 12:28
-
-
Save gebogebogebo/b7014d600a4d2d1bcfd47116c9d7cc04 to your computer and use it in GitHub Desktop.
CTAP2 お勉強メモ#5 - PIN ref: https://qiita.com/gebo/items/84454583daeaf6711fd0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fido_reset: FIDO_ERR_NOT_ALLOWED (0x30) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kty":"EC", | |
"alg": ECDH-ES + HKDF-256, | |
"crv":"P-256", | |
"x":"73F9BE8101091A83CA35550D9E1BE509B43855F51E72B545137DCCFDEE6A4F98" | |
"y":"6B60E0BF603FA18D934B65F9D6D09390734BC55F3DB12DFB0FA8213E54738C7F" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 0x02 : pinToken | |
2: h'BF856405F09C7931A2C8AC868421666D' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c:\work>retries.exe \\?\hid#vid_1050&pid_0120#6&1b5e4874&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} | |
5 ← 5回、という意味 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PINが設定されていないAuthenticatorに対してPIN=1234にセットする | |
c:\work>setpin.exe 1234 \\?\hid#vid_1050&pid_0120#6&1b5e4874&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cred.exe -P 1111 -i C:\work\cred_out\creid.dat -k C:\work\cred_out\pubkey.pem \\?\hid#vid_1050&pid_0120#6&1b5e4874&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 0x01:pinProtocol : 1固定 | |
1: 1, | |
// 0x05:subCommand : 0x05 getPINToken | |
2: 5, | |
// 0x03:keyAgreement | |
3: { | |
1: 2, | |
3: -7, | |
-1: 1, | |
-2: h'D74E96BB2DCC3AD363487B07FA0498F8C78A6D8E67B2C1E9D0D76A8C8CEF24C6', | |
-3: h'A740AA0127727A3F453D4F7494D2EC4413CE5ADB577EC7C3586B1B1C87EA795C' | |
}, | |
// 0x06 : pinHashEnc | |
6: h'7C0D83AE025D2A7D9CEEFE5F132069F3' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 0x01:pinProtocol = 1固定 | |
1: 1, | |
// 0x02:subCommand = 0x01:getRetries | |
2: 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment