Lines Matching defs:ciphertext
3728 crypto_data_t *ciphertext, crypto_req_handle_t req)
3740 if (!ciphertext) {
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,
3769 ciphertext->cd_length = 0;
3780 crypto_data_t *ciphertext, crypto_req_handle_t req)
3792 if (!ciphertext) {
3795 ciphertext = plaintext;
3801 error = dca_3desupdate(ctx, plaintext, ciphertext, req,
3805 error = dca_3desupdate(ctx, plaintext, ciphertext, req,
3822 dca_encrypt_final(crypto_ctx_t *ctx, crypto_data_t *ciphertext,
3837 error = dca_3desfinal(ctx, ciphertext, DR_ENCRYPT);
3840 error = dca_3desfinal(ctx, ciphertext, DR_ENCRYPT | DR_TRIPLE);
3858 crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext,
3870 if (!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);
3898 ciphertext->cd_length = 0;
3949 dca_decrypt(crypto_ctx_t *ctx, crypto_data_t *ciphertext,
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,
4002 dca_decrypt_update(crypto_ctx_t *ctx, crypto_data_t *ciphertext,
4018 plaintext = ciphertext;
4024 error = dca_3desupdate(ctx, ciphertext, plaintext, req,
4028 error = dca_3desupdate(ctx, ciphertext, plaintext, req,
4081 crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *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);