Home
last modified time | relevance | path

Searched refs:compare_testvector (Results 1 – 25 of 78) sorted by relevance

1234

/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/
A Dsha3_test.c406 if(compare_testvector(hash, 28, in keccak_224_test()
418 if(compare_testvector(hash, 28, in keccak_224_test()
432 if(compare_testvector(hash, 28, in keccak_224_test()
457 if(compare_testvector(hash, 28, in keccak_224_test()
481 if(compare_testvector(hash, 32, in keccak_256_test()
493 if(compare_testvector(hash, 32, in keccak_256_test()
507 if(compare_testvector(hash, 32, in keccak_256_test()
532 if(compare_testvector(hash, 32, in keccak_256_test()
556 if(compare_testvector(hash, 48, in keccak_384_test()
570 if(compare_testvector(hash, 48, in keccak_384_test()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/chachapoly/
A Dchacha20poly1305_test.c50 …if (compare_testvector(ct, mlen, enc, sizeof(enc), "ENC-CT", 1) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test()
51 …if (compare_testvector(emac, len, tag, sizeof(tag), "ENC-TAG", 2) != 0) return CRYPT_FAIL_TESTVECT… in chacha20poly1305_test()
62 if (compare_testvector(pt, mlen, m, mlen, "DEC-PT", 3) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test()
63 …if (compare_testvector(dmac, len, tag, sizeof(tag), "DEC-TAG", 4) != 0) return CRYPT_FAIL_TESTVECT… in chacha20poly1305_test()
69 …if (compare_testvector(ct, mlen, enc, sizeof(enc), "ENC-CT2", 1) != 0) return CRYPT_FAIL_TESTVECTO… in chacha20poly1305_test()
77 if (compare_testvector(pt, mlen, m, mlen, "DEC-PT2", 3) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test()
87 if (compare_testvector(ct, 16, rfc7905_enc, 16, "ENC-CT3", 1) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test()
88 …if (compare_testvector(emac, len, rfc7905_tag, 16, "ENC-TAG3", 2) != 0) return CRYPT_FAIL_TESTVECT… in chacha20poly1305_test()
98 if (compare_testvector(pt, 16, rfc7905_pt, 16, "DEC-CT3", 1) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test()
117 if (compare_testvector(pt, mlen, m, mlen, "DEC-PT4", 1) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_test.c223 if (compare_testvector(outtag, len, tests[x].tag, sizeof(tests[x].tag), "OCB3 Tag", x) || in ocb3_test()
224compare_testvector(outct, tests[x].ptlen, tests[x].ct, tests[x].ptlen, "OCB3 CT", x)) { in ocb3_test()
236 …if ((res != 1) || compare_testvector(outct, tests[x].ptlen, tests[x].pt, tests[x].ptlen, "OCB3", x… in ocb3_test()
256 if (compare_testvector(outtag, len, T, sizeof(T), "OCB3 Tag", x) || in ocb3_test()
257 compare_testvector(outct, sizeof(P), C, sizeof(C), "OCB3 CT", x)) { in ocb3_test()
269 if ((res != 1) || compare_testvector(outct, sizeof(C), P, sizeof(P), "OCB3", x)) { in ocb3_test()
284 …if (compare_testvector(outct, sizeof(P), C, sizeof(C), "OCB3 CT", x)) return CRYPT_FAIL_T… in ocb3_test()
285 …if (compare_testvector(outtag, len, T, sizeof(T), "OCB3 Tag.enc", x)) return CRYPT_FAIL_T… in ocb3_test()
292 …if (compare_testvector(outct, sizeof(C), P, sizeof(P), "OCB3 PT", x)) return CRYPT_FAIL_T… in ocb3_test()
293 …if (compare_testvector(outtag, len, T, sizeof(T), "OCB3 Tag.dec", x)) return CRYPT_FAIL_T… in ocb3_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/chacha/
A Dchacha_test.c46 …if (compare_testvector(out, len, ct, sizeof(ct), "CHACHA-TV1", 1)) return CRY… in chacha_test()
52 …if (compare_testvector(out, len, ct, sizeof(ct), "CHACHA-TV2", 1)) return CRY… in chacha_test()
58 …if (compare_testvector(out, len, ct, sizeof(ct), "CHACHA-TV3", 1)) return CRY… in chacha_test()
63 …if (compare_testvector(out, len, ct, sizeof(ct), "CHACHA-TV4", 1)) return CRY… in chacha_test()
68 …if (compare_testvector(out, len, ct, sizeof(ct), "CHACHA-TV5", 1)) return CRY… in chacha_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/sosemanuk/
A Dsosemanuk_test.c33 …if (compare_testvector(out, len, ct, sizeof(ct), "SOSEMANUK-TV1", 1)) return … in sosemanuk_test()
39 …if (compare_testvector(out, len, ct, sizeof(ct), "SOSEMANUK-TV2", 1)) return CRYPT_FAIL_TEST… in sosemanuk_test()
44 …if (compare_testvector(out, len, ct, sizeof(ct), "SOSEMANUK-TV3", 1)) return CRYPT_FAIL_TEST… in sosemanuk_test()
72 …if (compare_testvector(out, 64, ct3, sizeof(ct3), "SOSEMANUK-TV4", 1)) return CRYPT_FAIL_TESTVECTO… in sosemanuk_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/salsa20/
A Dsalsa20_test.c46 …if (compare_testvector(out, len, ct, sizeof(ct), "SALSA20-TV1", 1)) return CRYPT_FAIL_TESTV… in salsa20_test()
54 …if (compare_testvector(out, len, ct2, sizeof(ct2), "SALSA20-TV2", 1)) return CRYPT_FAIL_TESTV… in salsa20_test()
59 …if (compare_testvector(out, len, ct2, sizeof(ct2), "SALSA20-TV3", 1)) return CRYPT_FAIL_TESTV… in salsa20_test()
79 …if (compare_testvector(out, 64, ct3, sizeof(ct3), "SALSA20-TV4", 1)) return CRYPT_FAIL_TEST… in salsa20_test()
A Dxsalsa20_test.c53 …if (compare_testvector(msg, msglen, msg2, msglen, "XSALSA20-TV1", 1)) return CRYPT_FAIL_TESTVECTO… in xsalsa20_test()
59 …if (compare_testvector(msg, msglen, msg2, msglen, "XSALSA20-TV2", 1)) return CRYPT_FAIL_TESTVECTO… in xsalsa20_test()
81 …if (compare_testvector(hash, sizeof(hash), expecthash, sizeof(expecthash), "XSALSA20-TV3", 1)) … in xsalsa20_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/lrw/
A Dlrw_test.c83 if (compare_testvector(tests[x].expected_tweak, 16, lrw.pad, 16, "LRW Tweak", x)) { in lrw_test()
94 if (compare_testvector(buf[0], 16, tests[x].C, 16, "LRW Encrypt", x)) { in lrw_test()
110 if (compare_testvector(buf[1], 16, tests[x].P, 16, "LRW Decrypt", x)) { in lrw_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb/
A Docb_test.c177 if (compare_testvector(outtag, len, tests[x].tag, sizeof(tests[x].tag), "OCB Tag", x) || in ocb_test()
178 compare_testvector(outct, tests[x].ptlen, tests[x].ct, tests[x].ptlen, "OCB CT", x)) { in ocb_test()
186 …if ((res != 1) || compare_testvector(outct, tests[x].ptlen, tests[x].pt, tests[x].ptlen, "OCB", x)… in ocb_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/rc4/
A Drc4_test.c22 …if (compare_testvector(buf, sizeof(ct), ct, sizeof(ct), "RC4-TV1", 0)) return CRYPT_FAIL_TESTVECT… in rc4_stream_test()
27 …if (compare_testvector(buf, sizeof(ct), ct, sizeof(ct), "RC4-TV2", 0)) return CRYPT_FAIL_TESTVECT… in rc4_stream_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/gcm/
A Dgcm_test.c339 …if (compare_testvector(T[0], y, tests[0].T, 16, "GCM Encrypt Tag-special", 0)) return CRYPT_F… in gcm_test()
351 if (compare_testvector(out[0], tests[x].ptlen, tests[x].C, tests[x].ptlen, "GCM CT", x)) { in gcm_test()
355 if (compare_testvector(T[0], y, tests[x].T, 16, "GCM Encrypt Tag", x)) { in gcm_test()
369 if (compare_testvector(out[1], tests[x].ptlen, tests[x].P, tests[x].ptlen, "GCM PT", x)) { in gcm_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/sober128/
A Dsober128_test.c28 if (compare_testvector(dst, len, out, len, "SOBER-128-TV1", 0)) { in sober128_stream_test()
35 if (compare_testvector(dst, len, out, len, "SOBER-128-TV2", 0)) { in sober128_stream_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/eax/
A Deax_test.c226 if (compare_testvector(outtag, len, tests[x].tag, len, "EAX Tag", x) || in eax_test()
227compare_testvector(outct, tests[x].msglen, tests[x].ciphertext, tests[x].msglen, "EAX CT", x)) { in eax_test()
237 …if ((res != 1) || compare_testvector(outct, tests[x].msglen, tests[x].plaintext, tests[x].msglen, … in eax_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pkcs5/
A Dpkcs_5_test.c177 … else if (compare_testvector(DK, dkLen, cases_5_2[i].DK, cases_5_2[i].dkLen, "PKCS#5_2", i)) { in pkcs_5_test()
194 … else if (compare_testvector(DK, dkLen, cases_5_1[i].DK, cases_5_1[i].dkLen, "PKCS#5_1", i)) { in pkcs_5_test()
211 … else if (compare_testvector(DK, dkLen, cases_5_1o[i].DK, cases_5_1o[i].dkLen, "PKCS#5_1o", i)) { in pkcs_5_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/blake2/
A Dblake2bmac_test.c292 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC multi", ilen) != 0) return CRYPT_FAIL_TE… in blake2bmac_test()
298 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC single", ilen) != 0) return CRYPT_FAIL_T… in blake2bmac_test()
A Dblake2smac_test.c292 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC multi", ilen) != 0) return CRYPT_FAIL_TE… in blake2smac_test()
298 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC single", ilen) != 0) return CRYPT_FAIL_T… in blake2smac_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/poly1305/
A Dpoly1305_test.c36 …if (compare_testvector(out, len, tag, sizeof(tag), "POLY1305-TV1", 1) != 0) return CRYPT_FAI… in poly1305_test()
41 …if (compare_testvector(out, len, tag, sizeof(tag), "POLY1305-TV2", 1) != 0) return CRYPT_FAI… in poly1305_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_test.c171 … if (compare_testvector(buf, tests[x].ptlen, tests[x].ct, tests[x].ptlen, "CCM encrypt data", x)) { in ccm_test()
174 if (compare_testvector(tag, taglen, tests[x].tag, tests[x].taglen, "CCM encrypt tag", x)) { in ccm_test()
210 …if (compare_testvector(buf2, tests[x].ptlen, tests[x].pt, tests[x].ptlen, "CCM decrypt data", x)) { in ccm_test()
228 … if (compare_testvector(buf2, tests[x].ptlen, zero, tests[x].ptlen, "CCM decrypt wrong tag", x)) { in ccm_test()
232 … if (compare_testvector(tag2, taglen, tests[x].tag, tests[x].taglen, "CCM decrypt tag", x)) { in ccm_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/f9/
A Df9_test.c56 if (compare_testvector(T, taglen, tests[x].T, 4, "F9", x)) { in f9_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/f8/
A Df8_test_mode.c56 if (compare_testvector(buf, sizeof(ct), ct, sizeof(ct), "f8", 0)) { in f8_test_mode()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/xcbc/
A Dxcbc_test.c106 if (compare_testvector(T, taglen, tests[x].T, 16, "XCBC", x)) { in xcbc_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/prngs/
A Dchacha20.c197 …if (compare_testvector(out, 10, t1, sizeof(t1), "CHACHA-PRNG", 1)) return CRYPT_FAIL_TESTVECT… in chacha20_prng_test()
205 …if (compare_testvector(out, 10, t2, sizeof(t2), "CHACHA-PRNG", 2)) return CRYPT_FAIL_TESTVECT… in chacha20_prng_test()
211 …if (compare_testvector(out, 10, t3, sizeof(t3), "CHACHA-PRNG", 3)) return CRYPT_FAIL_TESTVECT… in chacha20_prng_test()
A Dsober128.c199 … if (compare_testvector(out, 10, t1, sizeof(t1), "SOBER128-PRNG", 1)) return CRYPT_FAIL_TESTVECTOR; in sober128_test()
207 … if (compare_testvector(out, 10, t2, sizeof(t2), "SOBER128-PRNG", 2)) return CRYPT_FAIL_TESTVECTOR; in sober128_test()
213 … if (compare_testvector(out, 10, t3, sizeof(t3), "SOBER128-PRNG", 3)) return CRYPT_FAIL_TESTVECTOR; in sober128_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/pmac/
A Dpmac_test.c133 if (compare_testvector(outtag, len, tests[x].tag, sizeof(tests[x].tag), "PMAC", x)) { in pmac_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/omac/
A Domac_test.c85 if (compare_testvector(out, len, tests[x].tag, sizeof(tests[x].tag), "OMAC", x) != 0) { in omac_test()

Completed in 23 milliseconds

1234