/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/ |
A D | sha3_test.c | 40 return CRYPT_FAIL_TESTVECTOR; in sha3_224_test() 49 return CRYPT_FAIL_TESTVECTOR; in sha3_224_test() 60 return CRYPT_FAIL_TESTVECTOR; in sha3_224_test() 96 return CRYPT_FAIL_TESTVECTOR; in sha3_256_test() 104 return CRYPT_FAIL_TESTVECTOR; in sha3_256_test() 113 return CRYPT_FAIL_TESTVECTOR; in sha3_256_test() 124 return CRYPT_FAIL_TESTVECTOR; in sha3_256_test() 154 return CRYPT_FAIL_TESTVECTOR; in sha3_256_test() 187 return CRYPT_FAIL_TESTVECTOR; in sha3_384_test() 196 return CRYPT_FAIL_TESTVECTOR; in sha3_384_test() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/chachapoly/ |
A D | chacha20poly1305_test.c | 50 …if (compare_testvector(ct, mlen, enc, sizeof(enc), "ENC-CT", 1) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test() 62 if (compare_testvector(pt, mlen, m, mlen, "DEC-PT", 3) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test() 69 …f (compare_testvector(ct, mlen, enc, sizeof(enc), "ENC-CT2", 1) != 0) return CRYPT_FAIL_TESTVECTOR; 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() 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() 118 if (compare_testvector(dmac, len, emac, len, "DEC-TAG4", 2) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test() 137 if (err != CRYPT_OK) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test() 144 if (err != CRYPT_OK) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/chacha/ |
A D | chacha_test.c | 46 …ctor(out, len, ct, sizeof(ct), "CHACHA-TV1", 1)) return CRYPT_FAIL_TESTVECTOR; in chacha_test() 52 …ctor(out, len, ct, sizeof(ct), "CHACHA-TV2", 1)) return CRYPT_FAIL_TESTVECTOR; in chacha_test() 58 …ctor(out, len, ct, sizeof(ct), "CHACHA-TV3", 1)) return CRYPT_FAIL_TESTVECTOR; in chacha_test() 63 …ctor(out, len, ct, sizeof(ct), "CHACHA-TV4", 1)) return CRYPT_FAIL_TESTVECTOR; in chacha_test() 68 …ctor(out, len, ct, sizeof(ct), "CHACHA-TV5", 1)) return CRYPT_FAIL_TESTVECTOR; in chacha_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_test.c | 225 return CRYPT_FAIL_TESTVECTOR; in ocb3_test() 240 return CRYPT_FAIL_TESTVECTOR; in ocb3_test() 258 return CRYPT_FAIL_TESTVECTOR; in ocb3_test() 273 return CRYPT_FAIL_TESTVECTOR; in ocb3_test() 284 …re_testvector(outct, sizeof(P), C, sizeof(C), "OCB3 CT", x)) return CRYPT_FAIL_TESTVECTOR; in ocb3_test() 285 …re_testvector(outtag, len, T, sizeof(T), "OCB3 Tag.enc", x)) return CRYPT_FAIL_TESTVECTOR; in ocb3_test() 292 …re_testvector(outct, sizeof(C), P, sizeof(P), "OCB3 PT", x)) return CRYPT_FAIL_TESTVECTOR; in ocb3_test() 293 …re_testvector(outtag, len, T, sizeof(T), "OCB3 Tag.dec", x)) return CRYPT_FAIL_TESTVECTOR; in ocb3_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/gcm/ |
A D | gcm_test.c | 339 …stvector(T[0], y, tests[0].T, 16, "GCM Encrypt Tag-special", 0)) return CRYPT_FAIL_TESTVECTOR; in gcm_test() 352 return CRYPT_FAIL_TESTVECTOR; in gcm_test() 356 return CRYPT_FAIL_TESTVECTOR; in gcm_test() 370 return CRYPT_FAIL_TESTVECTOR; in gcm_test() 390 return CRYPT_FAIL_TESTVECTOR; in gcm_test() 398 return CRYPT_FAIL_TESTVECTOR; /* should fail */ in gcm_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/sosemanuk/ |
A D | sosemanuk_test.c | 33 …r(out, len, ct, sizeof(ct), "SOSEMANUK-TV1", 1)) return CRYPT_FAIL_TESTVECTOR; in sosemanuk_test() 39 …mpare_testvector(out, len, ct, sizeof(ct), "SOSEMANUK-TV2", 1)) return CRYPT_FAIL_TESTVECTOR; in sosemanuk_test() 44 …mpare_testvector(out, len, ct, sizeof(ct), "SOSEMANUK-TV3", 1)) return CRYPT_FAIL_TESTVECTOR; in sosemanuk_test() 72 …f (compare_testvector(out, 64, ct3, sizeof(ct3), "SOSEMANUK-TV4", 1)) return CRYPT_FAIL_TESTVECTOR; in sosemanuk_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/salsa20/ |
A D | salsa20_test.c | 46 …ompare_testvector(out, len, ct, sizeof(ct), "SALSA20-TV1", 1)) return CRYPT_FAIL_TESTVECTOR; in salsa20_test() 54 …ompare_testvector(out, len, ct2, sizeof(ct2), "SALSA20-TV2", 1)) return CRYPT_FAIL_TESTVECTOR; in salsa20_test() 59 …ompare_testvector(out, len, ct2, sizeof(ct2), "SALSA20-TV3", 1)) return CRYPT_FAIL_TESTVECTOR; in salsa20_test() 79 …mpare_testvector(out, 64, ct3, sizeof(ct3), "SALSA20-TV4", 1)) return CRYPT_FAIL_TESTVECTOR; in salsa20_test()
|
A D | xsalsa20_test.c | 53 …f (compare_testvector(msg, msglen, msg2, msglen, "XSALSA20-TV1", 1)) return CRYPT_FAIL_TESTVECTOR; in xsalsa20_test() 59 …f (compare_testvector(msg, msglen, msg2, msglen, "XSALSA20-TV2", 1)) return CRYPT_FAIL_TESTVECTOR; in xsalsa20_test() 81 … sizeof(hash), expecthash, sizeof(expecthash), "XSALSA20-TV3", 1)) return CRYPT_FAIL_TESTVECTOR; in xsalsa20_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_test.c | 172 return CRYPT_FAIL_TESTVECTOR; in ccm_test() 175 return CRYPT_FAIL_TESTVECTOR; in ccm_test() 211 return CRYPT_FAIL_TESTVECTOR; in ccm_test() 226 return CRYPT_FAIL_TESTVECTOR; in ccm_test() 229 return CRYPT_FAIL_TESTVECTOR; in ccm_test() 233 return CRYPT_FAIL_TESTVECTOR; in ccm_test() 258 return CRYPT_FAIL_TESTVECTOR; in ccm_test() 266 return CRYPT_FAIL_TESTVECTOR; /* should fail */ in ccm_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/lrw/ |
A D | lrw_test.c | 85 return CRYPT_FAIL_TESTVECTOR; in lrw_test() 96 return CRYPT_FAIL_TESTVECTOR; in lrw_test() 112 return CRYPT_FAIL_TESTVECTOR; in lrw_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/rc4/ |
A D | rc4_test.c | 22 … (compare_testvector(buf, sizeof(ct), ct, sizeof(ct), "RC4-TV1", 0)) return CRYPT_FAIL_TESTVECTOR; in rc4_stream_test() 27 … (compare_testvector(buf, sizeof(ct), ct, sizeof(ct), "RC4-TV2", 0)) return CRYPT_FAIL_TESTVECTOR; in rc4_stream_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/sober128/ |
A D | sober128_test.c | 29 return CRYPT_FAIL_TESTVECTOR; in sober128_stream_test() 36 return CRYPT_FAIL_TESTVECTOR; in sober128_stream_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/blake2/ |
A D | blake2bmac_test.c | 292 …are_testvector(out, olen, mac, mlen, "BLAKE2B MAC multi", ilen) != 0) return CRYPT_FAIL_TESTVECTOR; in blake2bmac_test() 298 …re_testvector(out, olen, mac, mlen, "BLAKE2B MAC single", ilen) != 0) return CRYPT_FAIL_TESTVECTOR; in blake2bmac_test()
|
A D | blake2smac_test.c | 292 …are_testvector(out, olen, mac, mlen, "BLAKE2S MAC multi", ilen) != 0) return CRYPT_FAIL_TESTVECTOR; in blake2smac_test() 298 …re_testvector(out, olen, mac, mlen, "BLAKE2S MAC single", ilen) != 0) return CRYPT_FAIL_TESTVECTOR; in blake2smac_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/poly1305/ |
A D | poly1305_test.c | 36 …testvector(out, len, tag, sizeof(tag), "POLY1305-TV1", 1) != 0) return CRYPT_FAIL_TESTVECTOR; in poly1305_test() 41 …testvector(out, len, tag, sizeof(tag), "POLY1305-TV2", 1) != 0) return CRYPT_FAIL_TESTVECTOR; in poly1305_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb/ |
A D | ocb_test.c | 179 return CRYPT_FAIL_TESTVECTOR; in ocb_test() 190 return CRYPT_FAIL_TESTVECTOR; in ocb_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/eax/ |
A D | eax_test.c | 228 return CRYPT_FAIL_TESTVECTOR; in eax_test() 241 return CRYPT_FAIL_TESTVECTOR; in eax_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt.h | 42 CRYPT_FAIL_TESTVECTOR, /* Algorithm failed test vectors */ enumerator
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/f9/ |
A D | f9_test.c | 57 return CRYPT_FAIL_TESTVECTOR; in f9_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/f8/ |
A D | f8_test_mode.c | 57 return CRYPT_FAIL_TESTVECTOR; in f8_test_mode()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/xcbc/ |
A D | xcbc_test.c | 107 return CRYPT_FAIL_TESTVECTOR; in xcbc_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/prngs/ |
A D | chacha20.c | 197 … (compare_testvector(out, 10, t1, sizeof(t1), "CHACHA-PRNG", 1)) return CRYPT_FAIL_TESTVECTOR; in chacha20_prng_test() 205 … (compare_testvector(out, 10, t2, sizeof(t2), "CHACHA-PRNG", 2)) return CRYPT_FAIL_TESTVECTOR; in chacha20_prng_test() 211 … (compare_testvector(out, 10, t3, sizeof(t3), "CHACHA-PRNG", 3)) return CRYPT_FAIL_TESTVECTOR; in chacha20_prng_test()
|
A D | sober128.c | 199 … 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 D | pmac_test.c | 134 return CRYPT_FAIL_TESTVECTOR; in pmac_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/omac/ |
A D | omac_test.c | 86 return CRYPT_FAIL_TESTVECTOR; in omac_test()
|