Lines Matching refs:plain
254 static unsigned char plain[24] = { variable
523 DES_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test()
525 if (!TEST_mem_eq(cfb_cipher, sizeof(plain), cfb_buf1, sizeof(plain))) in cfb_test()
528 DES_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test()
530 return TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain)); in cfb_test()
565 DES_cfb64_encrypt(plain, cfb_buf1, 12, &ks, &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64()
566 DES_cfb64_encrypt(&plain[12], &cfb_buf1[12], sizeof(plain) - 12, &ks, in test_des_cfb64()
568 if (!TEST_mem_eq(cfb_cipher64, sizeof(plain), cfb_buf1, sizeof(plain))) in test_des_cfb64()
574 sizeof(plain) - 17, &ks, &cfb_tmp, &n, DES_DECRYPT); in test_des_cfb64()
575 if (!TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain))) in test_des_cfb64()
579 for (i = 0; i < sizeof(plain); i++) in test_des_cfb64()
580 DES_cfb_encrypt(&plain[i], &cfb_buf1[i], 8, 1, &ks, &cfb_tmp, in test_des_cfb64()
582 if (!TEST_mem_eq(cfb_cipher8, sizeof(plain), cfb_buf1, sizeof(plain))) in test_des_cfb64()
586 for (i = 0; i < sizeof(plain); i++) in test_des_cfb64()
589 return TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain)); in test_des_cfb64()
600 DES_ede3_cfb64_encrypt(plain, cfb_buf1, 12, &ks, &ks, &ks, &cfb_tmp, &n, in test_des_ede_cfb64()
602 DES_ede3_cfb64_encrypt(&plain[12], &cfb_buf1[12], sizeof(plain) - 12, &ks, in test_des_ede_cfb64()
604 if (!TEST_mem_eq(cfb_cipher64, sizeof(plain), cfb_buf1, sizeof(plain))) in test_des_ede_cfb64()
610 DES_ede3_cfb64_encrypt(&cfb_buf1[17], &cfb_buf2[17], sizeof(plain) - 17, in test_des_ede_cfb64()
612 return TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain)); in test_des_ede_cfb64()
621 DES_ofb_encrypt(plain, ofb_buf1, 64, sizeof(plain) / 8, &ks, &ofb_tmp); in test_des_ofb()
628 return TEST_mem_eq(plain, sizeof(ofb_buf2), ofb_buf2, sizeof(ofb_buf2)); in test_des_ofb()
642 for (i = 0; i < sizeof(plain); i++) { in test_des_ofb64()
643 DES_ofb64_encrypt(&plain[i], &ofb_buf1[i], 1, &ks, &ofb_tmp, &num); in test_des_ofb64()
651 return TEST_mem_eq(plain, sizeof(ofb_buf2), ofb_buf2, sizeof(ofb_buf2)); in test_des_ofb64()
665 for (i = 0; i < sizeof(plain); i++) { in test_des_ede_ofb64()
666 DES_ede3_ofb64_encrypt(&plain[i], &ofb_buf1[i], 1, &ks, &ks, in test_des_ede_ofb64()
675 return TEST_mem_eq(plain, sizeof(ofb_buf2), ofb_buf2, sizeof(ofb_buf2)); in test_des_ede_ofb64()