Lines Matching refs:ofb_buf1
292 static unsigned char ofb_buf1[24], ofb_buf2[24], ofb_tmp[8]; variable
621 DES_ofb_encrypt(plain, ofb_buf1, 64, sizeof(plain) / 8, &ks, &ofb_tmp); in test_des_ofb()
622 if (!TEST_mem_eq(ofb_cipher, sizeof(ofb_buf1), ofb_buf1, sizeof(ofb_buf1))) in test_des_ofb()
626 DES_ofb_encrypt(ofb_buf1, ofb_buf2, 64, sizeof(ofb_buf1) / 8, &ks, in test_des_ofb()
639 memset(ofb_buf1, 0, sizeof(ofb_buf1)); in test_des_ofb64()
640 memset(ofb_buf2, 0, sizeof(ofb_buf1)); in test_des_ofb64()
643 DES_ofb64_encrypt(&plain[i], &ofb_buf1[i], 1, &ks, &ofb_tmp, &num); in test_des_ofb64()
645 if (!TEST_mem_eq(ofb_cipher, sizeof(ofb_buf1), ofb_buf1, sizeof(ofb_buf1))) in test_des_ofb64()
649 DES_ofb64_encrypt(ofb_buf1, ofb_buf2, sizeof(ofb_buf1), &ks, &ofb_tmp, in test_des_ofb64()
662 memset(ofb_buf1, 0, sizeof(ofb_buf1)); in test_des_ede_ofb64()
663 memset(ofb_buf2, 0, sizeof(ofb_buf1)); in test_des_ede_ofb64()
666 DES_ede3_ofb64_encrypt(&plain[i], &ofb_buf1[i], 1, &ks, &ks, in test_des_ede_ofb64()
669 if (!TEST_mem_eq(ofb_cipher, sizeof(ofb_buf1), ofb_buf1, sizeof(ofb_buf1))) in test_des_ede_ofb64()
673 DES_ede3_ofb64_encrypt(ofb_buf1, ofb_buf2, sizeof(ofb_buf1), &ks, &ks, &ks, in test_des_ede_ofb64()