Home
last modified time | relevance | path

Searched refs:cbc_data (Results 1 – 2 of 2) sorted by relevance

/third_party/openssl/test/
Dbftest.c168 static char cbc_data[40] = "7654321 Now is the time for "; variable
268 printf("\ndata[%d] = '%s'", (int)strlen(cbc_data) + 1, cbc_data); in print_test_data()
269 printf("\ndata[%d] = ", (int)strlen(cbc_data) + 1); in print_test_data()
270 for (j = 0; j < strlen(cbc_data) + 1; j++) in print_test_data()
271 printf("%02X", cbc_data[j]); in print_test_data()
280 printf("cipher[%d]= ", (int)strlen(cbc_data) + 1); in print_test_data()
281 for (j = 0; j < strlen(cbc_data) + 1; j++) in print_test_data()
286 printf("cipher[%d]= ", (int)strlen(cbc_data) + 1); in print_test_data()
287 for (j = 0; j < strlen(cbc_data) + 1; j++) in print_test_data()
355 len = strlen(cbc_data) + 1; in test_bf_cbc()
[all …]
Ddestest.c193 static unsigned char cbc_data[40] = { variable
368 const size_t cbc_data_len = strlen((char *)cbc_data); in test_des_cbc()
375 DES_ncbc_encrypt(cbc_data, cbc_out, cbc_data_len + 1, &ks, in test_des_cbc()
383 return TEST_mem_eq(cbc_in, cbc_data_len, cbc_data, cbc_data_len); in test_des_cbc()
392 const size_t n = strlen((char *)cbc_data) + 1; in test_des_ede_cbc()
399 DES_xcbc_encrypt(cbc_data, cbc_out, n, &ks, &iv3, &cbc2_key, &cbc3_key, in test_des_ede_cbc()
406 return TEST_mem_eq(cbc_data, n, cbc_data, n); in test_des_ede_cbc()
415 const size_t i = strlen((char *)cbc_data) + 1; in test_ede_cbc()
428 DES_ede3_cbc_encrypt(cbc_data, cbc_out, 16L, &ks, &ks2, &ks3, &iv3, in test_ede_cbc()
430 DES_ede3_cbc_encrypt(&cbc_data[16], &cbc_out[16], i - 16, &ks, &ks2, in test_ede_cbc()
[all …]