/netbsd-src/crypto/external/bsd/openssl/dist/test/ |
H A D | ideatest.c | 43 static unsigned char cfb_buf1[40], cfb_buf2[40], cfb_tmp[8]; variable 98 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_tmp)); in test_idea_cfb64() 101 cfb_tmp, &n, IDEA_ENCRYPT); in test_idea_cfb64() 104 cfb_tmp, &n, IDEA_ENCRYPT); in test_idea_cfb64() 107 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_tmp)); in test_idea_cfb64() 110 cfb_tmp, &n, IDEA_DECRYPT); in test_idea_cfb64() 113 cfb_tmp, &n, IDEA_DECRYPT); in test_idea_cfb64()
|
H A D | destest.c | 246 static unsigned char cfb_buf1[40], cfb_buf2[40], cfb_tmp[8]; variable 512 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb_test() 513 DES_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 517 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb_test() 518 DES_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 553 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_cfb64() 555 DES_cfb64_encrypt(plain, cfb_buf1, 12, &ks, &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64() 557 &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64() 560 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_cfb64() 562 DES_cfb64_encrypt(cfb_buf1, cfb_buf2, 17, &ks, &cfb_tmp, &n, DES_DECRYPT); in test_des_cfb64() [all …]
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/ |
H A D | ideatest.c | 36 static unsigned char cfb_buf1[40], cfb_buf2[40], cfb_tmp[8]; variable 91 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_tmp)); in test_idea_cfb64() 94 cfb_tmp, &n, IDEA_ENCRYPT); in test_idea_cfb64() 97 cfb_tmp, &n, IDEA_ENCRYPT); in test_idea_cfb64() 100 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_tmp)); in test_idea_cfb64() 103 cfb_tmp, &n, IDEA_DECRYPT); in test_idea_cfb64() 106 cfb_tmp, &n, IDEA_DECRYPT); in test_idea_cfb64()
|
H A D | destest.c | 239 static unsigned char cfb_buf1[40], cfb_buf2[40], cfb_tmp[8]; variable 505 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb_test() 506 DES_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 510 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb_test() 511 DES_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 546 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_cfb64() 548 DES_cfb64_encrypt(plain, cfb_buf1, 12, &ks, &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64() 550 &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64() 553 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_cfb64() 555 DES_cfb64_encrypt(cfb_buf1, cfb_buf2, 17, &ks, &cfb_tmp, &n, DES_DECRYPT); in test_des_cfb64() [all …]
|
/netbsd-src/tests/lib/libdes/ |
H A D | t_des.c | 290 static unsigned char cfb_buf1[40], cfb_buf2[40], cfb_tmp[8]; variable 390 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb_test() 391 des_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), ks, &cfb_tmp, in cfb_test() 395 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb_test() 396 des_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), ks, &cfb_tmp, in cfb_test() 411 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb64_test() 413 des_cfb64_encrypt(plain, cfb_buf1, 12, ks, &cfb_tmp, &n, DES_ENCRYPT); in cfb64_test() 415 &cfb_tmp, &n, DES_ENCRYPT); in cfb64_test() 418 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb64_test() 420 des_cfb64_encrypt(cfb_buf1, cfb_buf2, 17, ks, &cfb_tmp, &n, DES_DECRYPT); in cfb64_test() [all …]
|