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
var devParam = DevParam.GetDefaultParams(); | |
byte[] challenge = System.Text.Encoding.ASCII.GetBytes("this is challenge"); | |
string pin = "xxxx"; | |
string json = | |
"{" + | |
"rp : {" + | |
"id : 'demo.WebauthnMODOKI.gebogebo.com'," + | |
"}," + | |
"user : {" + | |
"id : 'userid'," + |
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
{ | |
1: {"id": h'5674B3BE66FD4A14485AAE76648D0080', "type": "public-key"}, | |
2: h'0FA85A9CAE4160AFBCC898FC3A43010427EA3C6EC6CC07AA64424B31634C002E0400000071', | |
3: h'3045022100AB1FB333AA1F9EE5462F08CEE64112CD701FA6416AF4278F17D822812D3C39210220375DB0A46EFCB6E938BECB6F7E66AB74254786B65A6C33F167B359578FAFEFFC', | |
// user.idしか取れない | |
4: {"id": h'6765626F696400'}} | |
} |
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
{ | |
// 0x01:credential | |
1: { | |
"id": h'C52D9FDEBA951F4ACA94C2CB7DCFB47B13D0E4D676E2491F90D081D65E6995C74A77828BF8DFE239FC1D62D93DDB547827C524A2A3C035A27D4041DB8352F87E', | |
"type": "public-key" | |
}, | |
// 0x02:authData | |
2: h'49960DE5880E8C687434170F6476605B8FE4AEB9A28632C7995CF3BA831D97630000000068', |
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":"ES256", | |
"crv":"P-256", | |
"x":"03F4209E13CB29D16C86D90200C66E1CD7FFC1000D01E9FE74E95F9EC4BD08F1", | |
"y":"BF6AAFF13F6D6B0EE187C0BCE01A471239ECC87715C68270C95CAF61528C8826" | |
} |
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
// payload len 86 | |
00 a6 01 82 66 55 32 46 5f 56 32 68 46 49 44 4f | |
5f 32 5f 30 02 81 6b 68 6d 61 63 2d 73 65 63 72 | |
65 74 03 50 f8 a0 11 f3 8c 0a 4d 15 80 06 17 11 | |
1f 9e dc 7d 04 a4 62 72 6b f5 62 75 70 f5 64 70 | |
6c 61 74 f4 69 63 6c 69 65 6e 74 50 69 6e f4 05 | |
19 04 b0 06 81 01 |
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:\project\libfido2\build\examples\Debug>exemanifest.exe | |
\\?\hid#vid_1050&pid_0120#6&1b5e4874&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}: vendor=0x1050, product=0x0120 (Yubico Security Key by Yubico) |
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
byte[] c1 = data.Skip(1).Take(2).ToArray(); | |
var val = Common.ConvertToFloat(c1, Common.ConvType.IEEE_11073_16bit_float); | |
Console.WriteLine($"Blood Pressure Measurement Compound Value - Systolic(最高血圧) = {val}mmHg"); |