• Home
  • Raw
  • Download

Lines Matching refs:wycheproof

24 def test_aes_cbc_pkcs5(backend, wycheproof):  argument
25 key = binascii.unhexlify(wycheproof.testcase["key"])
26 iv = binascii.unhexlify(wycheproof.testcase["iv"])
27 msg = binascii.unhexlify(wycheproof.testcase["msg"])
28 ct = binascii.unhexlify(wycheproof.testcase["ct"])
39 if wycheproof.valid or wycheproof.acceptable:
51 def test_aes_gcm(backend, wycheproof): argument
52 key = binascii.unhexlify(wycheproof.testcase["key"])
53 iv = binascii.unhexlify(wycheproof.testcase["iv"])
54 aad = binascii.unhexlify(wycheproof.testcase["aad"])
55 msg = binascii.unhexlify(wycheproof.testcase["msg"])
56 ct = binascii.unhexlify(wycheproof.testcase["ct"])
57 tag = binascii.unhexlify(wycheproof.testcase["tag"])
58 if wycheproof.valid or wycheproof.acceptable:
90 def test_aes_gcm_aead_api(backend, wycheproof): argument
91 key = binascii.unhexlify(wycheproof.testcase["key"])
92 iv = binascii.unhexlify(wycheproof.testcase["iv"])
93 aad = binascii.unhexlify(wycheproof.testcase["aad"])
94 msg = binascii.unhexlify(wycheproof.testcase["msg"])
95 ct = binascii.unhexlify(wycheproof.testcase["ct"])
96 tag = binascii.unhexlify(wycheproof.testcase["tag"])
98 if wycheproof.valid or wycheproof.acceptable:
117 def test_aes_ccm_aead_api(backend, wycheproof): argument
118 key = binascii.unhexlify(wycheproof.testcase["key"])
119 iv = binascii.unhexlify(wycheproof.testcase["iv"])
120 aad = binascii.unhexlify(wycheproof.testcase["aad"])
121 msg = binascii.unhexlify(wycheproof.testcase["msg"])
122 ct = binascii.unhexlify(wycheproof.testcase["ct"])
123 tag = binascii.unhexlify(wycheproof.testcase["tag"])
126 wycheproof.invalid and
127 wycheproof.testcase["comment"] == "Invalid tag size"
130 AESCCM(key, tag_length=wycheproof.testgroup["tagSize"] // 8)
133 aesccm = AESCCM(key, tag_length=wycheproof.testgroup["tagSize"] // 8)
134 if wycheproof.valid or wycheproof.acceptable: