Lines Matching refs:bytes
27 return bytes(reversed(bytes.fromhex(hex_str)))
61 bytes.fromhex(private_A), bytes.fromhex(public_A_x), bytes.fromhex(public_A_y)
63 shared_key = key_a.dh(bytes.fromhex(public_B_x), bytes.fromhex(public_B_y))
64 assert shared_key == bytes.fromhex(dhkey)
67 bytes.fromhex(private_B), bytes.fromhex(public_B_x), bytes.fromhex(public_B_y)
69 shared_key = key_b.dh(bytes.fromhex(public_A_x), bytes.fromhex(public_A_y))
70 assert shared_key == bytes.fromhex(dhkey)
75 k = bytes(16)
89 k = bytes(16)
99 k = bytes.fromhex('2b7e1516 28aed2a6 abf71588 09cf4f3c')
101 assert cmac == bytes.fromhex('bb1d6929 e9593728 7fa37d12 9b756746')
103 m = bytes.fromhex('6bc1bee2 2e409f96 e93d7e11 7393172a')
105 assert cmac == bytes.fromhex('070a16b4 6b4d4144 f79bdd9d d04a287c')
107 m = bytes.fromhex(
113 assert cmac == bytes.fromhex('dfa66747 de9ae630 30ca3261 1497c827')
115 m = bytes.fromhex(
122 assert cmac == bytes.fromhex('51f0bebf 7e3b9d92 fc497417 79363cfe')
127 u = bytes(
129 bytes.fromhex(
135 v = bytes(
137 bytes.fromhex(
143 x = bytes(reversed(bytes.fromhex('d5cb8454 d177733e ffffb2ec 712baeab')))
144 z = bytes([0])
146 assert bytes(reversed(value)) == bytes.fromhex(
153 w = bytes(
155 bytes.fromhex(
161 n1 = bytes(reversed(bytes.fromhex('d5cb8454 d177733e ffffb2ec 712baeab')))
162 n2 = bytes(reversed(bytes.fromhex('a6e8e7cc 25a75f6e 216583f7 ff3dc4cf')))
163 a1 = bytes(reversed(bytes.fromhex('00561237 37bfce')))
164 a2 = bytes(reversed(bytes.fromhex('00a71370 2dcfc1')))
166 assert bytes(reversed(value[0])) == bytes.fromhex(
169 assert bytes(reversed(value[1])) == bytes.fromhex(
176 n1 = bytes(reversed(bytes.fromhex('d5cb8454 d177733e ffffb2ec 712baeab')))
177 n2 = bytes(reversed(bytes.fromhex('a6e8e7cc 25a75f6e 216583f7 ff3dc4cf')))
178 mac_key = bytes(reversed(bytes.fromhex('2965f176 a1084a02 fd3f6a20 ce636e20')))
179 r = bytes(reversed(bytes.fromhex('12a3343b b453bb54 08da42d2 0c2d0fc8')))
180 io_cap = bytes(reversed(bytes.fromhex('010102')))
181 a1 = bytes(reversed(bytes.fromhex('00561237 37bfce')))
182 a2 = bytes(reversed(bytes.fromhex('00a71370 2dcfc1')))
184 assert bytes(reversed(value)) == bytes.fromhex(
191 u = bytes(
193 bytes.fromhex(
199 v = bytes(
201 bytes.fromhex(
207 x = bytes(reversed(bytes.fromhex('d5cb8454 d177733e ffffb2ec 712baeab')))
208 y = bytes(reversed(bytes.fromhex('a6e8e7cc 25a75f6e 216583f7 ff3dc4cf')))
215 KEY = bytes.fromhex('ec0234a3 57c8ad05 341010a6 0a397d9b')
216 KEY_ID = bytes.fromhex('6c656272')
217 assert h6(KEY, KEY_ID) == bytes.fromhex('2d9ae102 e76dc91c e8d3a9e2 80b16399')
222 KEY = bytes.fromhex('ec0234a3 57c8ad05 341010a6 0a397d9b')
223 SALT = bytes.fromhex('00000000 00000000 00000000 746D7031')
224 assert h7(SALT, KEY) == bytes.fromhex('fb173597 c6a3c0ec d2998c2a 75a57011')
229 irk = bytes(reversed(bytes.fromhex('ec0234a3 57c8ad05 341010a6 0a397d9b')))
230 prand = bytes(reversed(bytes.fromhex('708194')))
232 expected = bytes(reversed(bytes.fromhex('0dfbaa')))