Lines Matching defs:ciphertext
3736 crypto_data_t *ciphertext, crypto_req_handle_t req)
3751 if (!ciphertext) {
3754 ciphertext = plaintext;
3760 error = dca_3des(ctx, plaintext, ciphertext, req, DR_ENCRYPT);
3763 error = dca_3des(ctx, plaintext, ciphertext, req,
3768 error = dca_rsastart(ctx, plaintext, ciphertext, req,
3780 ciphertext->cd_length = 0;
3791 crypto_data_t *ciphertext, crypto_req_handle_t req)
3806 if (!ciphertext) {
3809 ciphertext = plaintext;
3815 error = dca_3desupdate(ctx, plaintext, ciphertext, req,
3819 error = dca_3desupdate(ctx, plaintext, ciphertext, req,
3836 dca_encrypt_final(crypto_ctx_t *ctx, crypto_data_t *ciphertext,
3854 error = dca_3desfinal(ctx, ciphertext, DR_ENCRYPT);
3857 error = dca_3desfinal(ctx, ciphertext, DR_ENCRYPT | DR_TRIPLE);
3875 crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext,
3887 if (!ciphertext) {
3888 ciphertext = plaintext;
3895 plaintext, ciphertext, KM_SLEEP, req,
3900 plaintext, ciphertext, KM_SLEEP, req,
3906 plaintext, ciphertext, KM_SLEEP, req, DCA_RSA_ENC);
3915 ciphertext->cd_length = 0;
3969 dca_decrypt(crypto_ctx_t *ctx, crypto_data_t *ciphertext,
3988 plaintext = ciphertext;
3994 error = dca_3des(ctx, ciphertext, plaintext, req, DR_DECRYPT);
3997 error = dca_3des(ctx, ciphertext, plaintext, req,
4002 error = dca_rsastart(ctx, ciphertext, plaintext, req,
4025 dca_decrypt_update(crypto_ctx_t *ctx, crypto_data_t *ciphertext,
4044 plaintext = ciphertext;
4050 error = dca_3desupdate(ctx, ciphertext, plaintext, req,
4054 error = dca_3desupdate(ctx, ciphertext, plaintext, req,
4110 crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext,
4123 plaintext = ciphertext;
4130 ciphertext, plaintext, KM_SLEEP, req,
4135 ciphertext, plaintext, KM_SLEEP, req,
4141 ciphertext, plaintext, KM_SLEEP, req, DCA_RSA_DEC);