• Home
  • Raw
  • Download

Lines Matching +full:native +full:- +full:test

1 # coding: utf-8
28 with open(os.path.join(fixtures_dir, 'keys/test-der.key'), 'rb') as f:
32 'two-prime',
33 key['version'].native
37 key['modulus'].native
41 key['public_exponent'].native
45 key['private_exponent'].native
49 key['prime1'].native
53 key['prime2'].native
57 key['exponent1'].native
61 key['exponent2'].native
65 key['coefficient'].native
69 key['other_prime_infos'].native
73 with open(os.path.join(fixtures_dir, 'keys/test-der.key'), 'rb') as f:
78 key[0].native
82 key[1].native
86 key[2].native
90 key[3].native
94 key[4].native
98 key[5].native
102 key[6].native
106 key[7].native
110 key[8].native
114 key[9].native
117 with open(os.path.join(fixtures_dir, 'keys/test-dsa-der.key'), 'rb') as f:
122 key['version'].native
126 key['p'].native
130 key['q'].native
134 key['g'].native
138 key['public_key'].native
142 key['private_key'].native
146 with open(os.path.join(fixtures_dir, 'keys/test-ec-der.key'), 'rb') as f:
151 key['version'].native
155 key['private_key'].native
197 key['parameters'].native
204 key['public_key'].native
208 with open(os.path.join(fixtures_dir, 'keys/test-public-rsa-der.key'), 'rb') as f:
213 key['modulus'].native
217 key['public_exponent'].native
221 with open(os.path.join(fixtures_dir, 'keys/test-public-der.key'), 'rb') as f:
228 key['algorithm']['algorithm'].native
232 key['algorithm']['parameters'].native
236 public_key['modulus'].native
240 public_key['public_exponent'].native
244 with open(os.path.join(fixtures_dir, 'keys/test-pkcs8-der.key'), 'rb') as f:
251 key_info['version'].native
255 key_info['private_key_algorithm']['algorithm'].native
259 key_info['private_key_algorithm']['parameters'].native
263 'two-prime',
264 key['version'].native
268 key['modulus'].native
272 key['public_exponent'].native
276 key['private_exponent'].native
280 key['prime1'].native
284 key['prime2'].native
288 key['exponent1'].native
292 key['exponent2'].native
296 key['coefficient'].native
300 key['other_prime_infos'].native
305 key_info['attributes'].native
309 with open(os.path.join(fixtures_dir, 'keys/test-rsapss-der.key'), 'rb') as f:
316 key_info['version'].native
320 key_info['private_key_algorithm']['algorithm'].native
324 key_info['private_key_algorithm']['parameters'].native
328 'two-prime',
329 key['version'].native
333 key['modulus'].native
337 key['public_exponent'].native
341 key['private_exponent'].native
345 key['prime1'].native
349 key['prime2'].native
353 key['exponent1'].native
357 key['exponent2'].native
361 key['coefficient'].native
365 key['other_prime_infos'].native
370 key_info['attributes'].native
374 with open(os.path.join(fixtures_dir, 'keys/test-public-rsapss-der.key'), 'rb') as f:
381 key['algorithm']['algorithm'].native
385 key['algorithm']['parameters'].native
389 public_key['modulus'].native
393 public_key['public_exponent'].native
399 … ('keys/test-public-der.key', b'\xbeB\x85=\xcc\xff\xe3\xf9(\x02\x8f~XV\xb4\xfd\x03\\\xeaK'),
400 … ('keys/test-public-dsa-der.key', b'\x81\xa37\x86\xf9\x99(\xf2tp`\x87\xf2\xd3~\x8d\x19a\xa8\xbe'),
401 … ('keys/test-public-ec-named-der.key', b'#\x8d\xee\xeeGH*\xe45T\xb8\xfdVh\x16_\xe2\xaa\xcd\x81'),
402 … ('keys/test-public-ec-der.key', b'T\xaaTpl4\x1am\xeb]\x97\xd7\x1e\xfc\xd5$<\x8a\x0e\xd7'),
416 'keys/test-public-der.key',
420 'keys/test-public-dsa-der.key',
424 'keys/test-public-ec-named-der.key',
428 'keys/test-public-ec-der.key',
429 … b'\xf3\xa3k\xe0\xbf\xa9\xd9sl\xaa\x99\xe7\x9c-\xec\xb9\x0e\xe2d\xe9\xc3$\xb9\x893\x99A\xc19ec_'
445 'keys/test-pkcs8-dsa-der.key',
446 'keys/test-public-dsa-der.key',
452 'keys/test-pkcs8-ec-named-der.key',
453 'keys/test-public-ec-named-der.key',
459 'keys/test-pkcs8-ec-der.key',
460 'keys/test-public-ec-der.key',
466 'keys/test-pkcs8-der.key',
467 'keys/test-public-der.key',
500 'keys/test-pkcs8-dsa-der.key',
501 'keys/test-dsa-der.key',
505 'keys/test-pkcs8-ec-named-der.key',
506 'keys/test-ec-named-der.key',
510 'keys/test-pkcs8-ec-der.key',
511 'keys/test-ec-der.key',
515 'keys/test-pkcs8-der.key',
516 'keys/test-der.key',
521 with open(os.path.join(fixtures_dir, 'keys/test-pkcs8-der.key'), 'rb') as f:
527 with open(os.path.join(fixtures_dir, 'keys/test-public-rsa-der.key'), 'rb') as f:
534 with open(os.path.join(fixtures_dir, 'keys/test-pkcs8-ec-named-der.key'), 'rb') as f:
541 with open(os.path.join(fixtures_dir, 'keys/test-public-ec-named-der.key'), 'rb') as f:
547 with open(os.path.join(fixtures_dir, 'keys/test-pkcs8-ec-der.key'), 'rb') as f:
598 with open(os.path.join(fixtures_dir, 'keys/test-public-ec-der.key'), 'rb') as f:
607 self.assertEqual('customcurve', k.native)
616 self.assertEqual('ecPrivkeyVer1', k['version'].native)
617 self.assertEqual(1, k['private_key'].native)
618 self.assertEqual('customcurve', k['parameters'].native)
631 self.assertEqual('ecPrivkeyVer1', k['version'].native)
632 self.assertEqual(1, k['private_key'].native)
633 self.assertEqual('secp256r1', k['parameters'].native)
647 self.assertEqual('ecPrivkeyVer1', k['version'].native)
648 self.assertEqual(1, k['private_key'].native)
649 self.assertEqual('secp256k1', k['parameters'].native)
670 self.assertEqual('ecPrivkeyVer1', k['version'].native)
671 self.assertEqual(1, k['private_key'].native)
672 self.assertEqual(None, k['parameters'].native)