Searched refs:cfb_buf1 (Results 1 – 3 of 3) sorted by relevance
/freebsd/crypto/openssl/test/ |
H A D | ideatest.c | 43 static unsigned char cfb_buf1[40], cfb_buf2[40], cfb_tmp[8]; variable 100 IDEA_cfb64_encrypt(plain, cfb_buf1, (long)12, &eks, in test_idea_cfb64() 102 IDEA_cfb64_encrypt(&plain[12], &cfb_buf1[12], in test_idea_cfb64() 105 if (!TEST_mem_eq(cfb_cipher64, CFB_TEST_SIZE, cfb_buf1, CFB_TEST_SIZE)) in test_idea_cfb64() 109 IDEA_cfb64_encrypt(cfb_buf1, cfb_buf2, (long)13, &eks, in test_idea_cfb64() 111 IDEA_cfb64_encrypt(&cfb_buf1[13], &cfb_buf2[13], in test_idea_cfb64()
|
H A D | destest.c | 246 static unsigned char cfb_buf1[40], cfb_buf2[40], cfb_tmp[8]; variable 513 DES_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 515 if (!TEST_mem_eq(cfb_cipher, sizeof(plain), cfb_buf1, sizeof(plain))) in cfb_test() 518 DES_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 555 DES_cfb64_encrypt(plain, cfb_buf1, 12, &ks, &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64() 556 DES_cfb64_encrypt(&plain[12], &cfb_buf1[12], sizeof(plain) - 12, &ks, in test_des_cfb64() 558 if (!TEST_mem_eq(cfb_cipher64, sizeof(plain), cfb_buf1, sizeof(plain))) in test_des_cfb64() 562 DES_cfb64_encrypt(cfb_buf1, cfb_buf2, 17, &ks, &cfb_tmp, &n, DES_DECRYPT); in test_des_cfb64() 563 DES_cfb64_encrypt(&cfb_buf1[17], &cfb_buf2[17], in test_des_cfb64() 570 DES_cfb_encrypt(&plain[i], &cfb_buf1[i], 8, 1, &ks, &cfb_tmp, in test_des_cfb64() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libdes/ |
H A D | t_des.c | 290 static unsigned char cfb_buf1[40], cfb_buf2[40], cfb_tmp[8]; variable 376 snprintf(buf2, sizeof(buf2), "%s /", pt(&(cfb_buf1[i]))); in fail_cfb_buf() 391 des_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), ks, &cfb_tmp, in cfb_test() 393 if (memcmp(cfb_cipher, cfb_buf1, sizeof(plain)) != 0) in cfb_test() 394 fail_cfb_buf("cfb_encrypt encrypt error", cfb_buf1); in cfb_test() 396 des_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), ks, &cfb_tmp, in cfb_test() 413 des_cfb64_encrypt(plain, cfb_buf1, 12, ks, &cfb_tmp, &n, DES_ENCRYPT); in cfb64_test() 414 des_cfb64_encrypt(&(plain[12]), &(cfb_buf1[12]), sizeof(plain) - 12, ks, in cfb64_test() 416 if (memcmp(cfb_cipher, cfb_buf1, sizeof(plain)) != 0) in cfb64_test() 417 fail_cfb_buf("cfb_encrypt encrypt error", cfb_buf1); in cfb64_test() [all …]
|