Lines Matching defs:pt
46 static int _test_cryptor(evp_alg_t alg, const byteVector_t *key[], const byteVector_t *pt[], const byteVector_t *ct[], const unsigned num_tests)
63 size_t blocksize = (pt[i]->len > ct[i]->len) ? pt[i]->len : ct[i]->len;
95 if (!EVP_Cipher(&ectx, blk1, pt[i]->value, blocksize)) {
122 if (memcmp(blk2, pt[i]->value, blocksize) != 0) {
128 hex_encode(pt[i]->value, blocksize, &s2);
534 static int _test_mode(evp_alg_t alg, const byteVector_t *key[], const byteVector_t *iv[], const byteVector_t *pt[], const byteVector_t *ct[], const unsigned num_tests)
551 size_t blocksize = (pt[i]->len > ct[i]->len) ? pt[i]->len : ct[i]->len;
583 if (!EVP_Cipher(&ectx, blk1, pt[i]->value, blocksize)) {
610 if (memcmp(blk2, pt[i]->value, blocksize) != 0) {
616 hex_encode(pt[i]->value, blocksize, &s2);