Lines Matching refs:cbc_out
352 unsigned char cbc_in[40], cbc_out[40], iv[8]; in test_bf_cbc() local
361 memset(cbc_out, 0, sizeof(cbc_out)); in test_bf_cbc()
363 BF_cbc_encrypt((unsigned char *)cbc_data, cbc_out, len, in test_bf_cbc()
365 if (!TEST_mem_eq(cbc_out, 32, cbc_ok, 32)) in test_bf_cbc()
369 BF_cbc_encrypt(cbc_out, cbc_in, len, &key, iv, BF_DECRYPT); in test_bf_cbc()
378 unsigned char cbc_in[40], cbc_out[40], iv[8]; in test_bf_cfb64() local
387 memset(cbc_out, 0, 40); in test_bf_cfb64()
390 BF_cfb64_encrypt((unsigned char *)cbc_data, cbc_out, (long)13, in test_bf_cfb64()
392 BF_cfb64_encrypt((unsigned char *)&(cbc_data[13]), &(cbc_out[13]), in test_bf_cfb64()
394 if (!TEST_mem_eq(cbc_out, (int)len, cfb64_ok, (int)len)) in test_bf_cfb64()
399 BF_cfb64_encrypt(cbc_out, cbc_in, 17, &key, iv, &n, BF_DECRYPT); in test_bf_cfb64()
400 BF_cfb64_encrypt(&(cbc_out[17]), &(cbc_in[17]), len - 17, in test_bf_cfb64()
410 unsigned char cbc_in[40], cbc_out[40], iv[8]; in test_bf_ofb64() local
419 memset(cbc_out, 0, 40); in test_bf_ofb64()
422 BF_ofb64_encrypt((unsigned char *)cbc_data, cbc_out, (long)13, &key, iv, in test_bf_ofb64()
424 BF_ofb64_encrypt((unsigned char *)&(cbc_data[13]), &(cbc_out[13]), in test_bf_ofb64()
426 if (!TEST_mem_eq(cbc_out, (int)len, ofb64_ok, (int)len)) in test_bf_ofb64()
431 BF_ofb64_encrypt(cbc_out, cbc_in, 17, &key, iv, &n); in test_bf_ofb64()
432 BF_ofb64_encrypt(&(cbc_out[17]), &(cbc_in[17]), len - 17, &key, iv, &n); in test_bf_ofb64()