Lines Matching defs:plaintext

3727 dca_encrypt(crypto_ctx_t *ctx, crypto_data_t *plaintext,
3743 ciphertext = plaintext;
3749 error = dca_3des(ctx, plaintext, ciphertext, req, DR_ENCRYPT);
3752 error = dca_3des(ctx, plaintext, ciphertext, req,
3757 error = dca_rsastart(ctx, plaintext, ciphertext, req,
3779 dca_encrypt_update(crypto_ctx_t *ctx, crypto_data_t *plaintext,
3795 ciphertext = plaintext;
3801 error = dca_3desupdate(ctx, plaintext, ciphertext, req,
3805 error = dca_3desupdate(ctx, plaintext, ciphertext, req,
3858 crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext,
3871 ciphertext = plaintext;
3878 plaintext, ciphertext, KM_SLEEP, req,
3883 plaintext, ciphertext, KM_SLEEP, req,
3889 plaintext, ciphertext, KM_SLEEP, req, DCA_RSA_ENC);
3950 crypto_data_t *plaintext, crypto_req_handle_t req)
3962 if (!plaintext) {
3965 plaintext = ciphertext;
3971 error = dca_3des(ctx, ciphertext, plaintext, req, DR_DECRYPT);
3974 error = dca_3des(ctx, ciphertext, plaintext, req,
3979 error = dca_rsastart(ctx, ciphertext, plaintext, req,
3991 if (plaintext)
3992 plaintext->cd_length = 0;
4003 crypto_data_t *plaintext, crypto_req_handle_t req)
4015 if (!plaintext) {
4018 plaintext = ciphertext;
4024 error = dca_3desupdate(ctx, ciphertext, plaintext, req,
4028 error = dca_3desupdate(ctx, ciphertext, plaintext, req,
4045 dca_decrypt_final(crypto_ctx_t *ctx, crypto_data_t *plaintext,
4060 error = dca_3desfinal(ctx, plaintext, DR_DECRYPT);
4063 error = dca_3desfinal(ctx, plaintext, DR_DECRYPT | DR_TRIPLE);
4081 crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext,
4093 if (!plaintext) {
4094 plaintext = ciphertext;
4101 ciphertext, plaintext, KM_SLEEP, req,
4106 ciphertext, plaintext, KM_SLEEP, req,
4112 ciphertext, plaintext, KM_SLEEP, req, DCA_RSA_DEC);
4121 plaintext->cd_length = 0;