Lines Matching refs:cfb_tmp

253 static unsigned char cfb_buf1[40], cfb_buf2[40], cfb_tmp[8];  variable
522 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb_test()
523 DES_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test()
527 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in cfb_test()
528 DES_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test()
563 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_cfb64()
565 DES_cfb64_encrypt(plain, cfb_buf1, 12, &ks, &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64()
567 &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64()
570 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_cfb64()
572 DES_cfb64_encrypt(cfb_buf1, cfb_buf2, 17, &ks, &cfb_tmp, &n, DES_DECRYPT); in test_des_cfb64()
574 sizeof(plain) - 17, &ks, &cfb_tmp, &n, DES_DECRYPT); in test_des_cfb64()
578 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_cfb64()
580 DES_cfb_encrypt(&plain[i], &cfb_buf1[i], 8, 1, &ks, &cfb_tmp, in test_des_cfb64()
585 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_cfb64()
587 DES_cfb_encrypt(&cfb_buf1[i], &cfb_buf2[i], 8, 1, &ks, &cfb_tmp, in test_des_cfb64()
598 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_ede_cfb64()
600 DES_ede3_cfb64_encrypt(plain, cfb_buf1, 12, &ks, &ks, &ks, &cfb_tmp, &n, in test_des_ede_cfb64()
603 &ks, &ks, &cfb_tmp, &n, DES_ENCRYPT); in test_des_ede_cfb64()
606 memcpy(cfb_tmp, cfb_iv, sizeof(cfb_iv)); in test_des_ede_cfb64()
609 &cfb_tmp, &n, DES_DECRYPT); in test_des_ede_cfb64()
611 &ks, &ks, &ks, &cfb_tmp, &n, DES_DECRYPT); in test_des_ede_cfb64()