Lines Matching refs:ciphertext

1654     unsigned char ciphertext[32], plaintext[16];  in test_EVP_Enveloped()  local
1671 || !TEST_true(EVP_SealUpdate(ctx, ciphertext, &ciphertext_len, in test_EVP_Enveloped()
1673 || !TEST_true(EVP_SealFinal(ctx, ciphertext + ciphertext_len, in test_EVP_Enveloped()
1681 ciphertext, ciphertext_len)) in test_EVP_Enveloped()
2386 uint8_t ciphertext[128]; in test_EVP_SM2() local
2387 size_t ctext_len = sizeof(ciphertext); in test_EVP_SM2()
2520 if (!TEST_true(EVP_PKEY_encrypt(cctx, ciphertext, &ctext_len, kMsg, in test_EVP_SM2()
2530 if (!TEST_int_gt(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len, ciphertext, in test_EVP_SM2()
3441 unsigned char ciphertext[80]; in test_decrypt_null_chunks() local
3452 || !TEST_true(EVP_EncryptUpdate(ctx, ciphertext, &ctlen, msg, in test_decrypt_null_chunks()
3455 || !TEST_true(EVP_EncryptUpdate(ctx, ciphertext + ctlen, &tmp, NULL, in test_decrypt_null_chunks()
3458 || !TEST_true(EVP_EncryptUpdate(ctx, ciphertext + ctlen, &tmp, in test_decrypt_null_chunks()
3462 || !TEST_true(EVP_EncryptFinal(ctx, ciphertext + ctlen, &tmp)) in test_decrypt_null_chunks()
3469 || !TEST_true(EVP_DecryptUpdate(ctx, plaintext, &ptlen, ciphertext, in test_decrypt_null_chunks()
3479 ciphertext + dec_offset, in test_decrypt_null_chunks()
3740 unsigned char ciphertext[32], oiv[16], iv[16]; in test_evp_iv_aes() local
3766 int len = sizeof(ciphertext); in test_evp_iv_aes()
3845 || !TEST_true(EVP_EncryptUpdate(ctx, ciphertext, &len, msg, in test_evp_iv_aes()
3849 || !TEST_true(EVP_EncryptFinal_ex(ctx, ciphertext, &len))) in test_evp_iv_aes()
3897 unsigned char ciphertext[32], oiv[8], iv[8]; in test_evp_iv_des() local
3917 int len = sizeof(ciphertext); in test_evp_iv_des()
3962 || !TEST_true(EVP_EncryptUpdate(ctx, ciphertext, &len, msg, in test_evp_iv_des()
3966 || !TEST_true(EVP_EncryptFinal_ex(ctx, ciphertext, &len))) in test_evp_iv_des()