Lines Matching refs:tbs
76 const char *r_in = NULL, *s_in = NULL, *tbs = NULL; in x9_62_tests() local
93 tbs = ecdsa_cavs_kats[n].msg; in x9_62_tests()
106 || !TEST_ptr(message = OPENSSL_hexstr2buf(tbs, &msg_len)) in x9_62_tests()
191 unsigned char dirt, offset, tbs[128]; in test_builtin() local
226 || !TEST_int_gt(RAND_bytes(tbs, sizeof(tbs)), 0) in test_builtin()
251 || !TEST_true(EVP_DigestSign(mctx, sig, &sig_len, tbs, sizeof(tbs))) in test_builtin()
257 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 0) in test_builtin()
262 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len - 1, tbs, sizeof(tbs)), -1) in test_builtin()
267 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 1) in test_builtin()
272 tbs[0] ^= 1; in test_builtin()
275 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 0) in test_builtin()
279 tbs[0] ^= 1; in test_builtin()
282 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 1) in test_builtin()
312 offset = tbs[0] % sig_len; in test_builtin()
313 dirt = tbs[1] ? tbs[1] : 1; in test_builtin()
317 || !TEST_int_ne(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 1) in test_builtin()
324 || !TEST_int_eq(EVP_DigestVerify(mctx, sig, sig_len, tbs, sizeof(tbs)), 1) in test_builtin()