Lines Matching defs:plaintext
523 rsaprov_encrypt(crypto_ctx_t *ctx, crypto_data_t *plaintext,
532 RSA_ARG_INPLACE(plaintext, ciphertext);
540 rv = rsa_encrypt_common(ctxp->mech_type, ctxp->key, plaintext,
553 crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext,
560 RSA_ARG_INPLACE(plaintext, ciphertext);
562 return (rsa_encrypt_common(mechanism->cm_type, key, plaintext,
589 crypto_data_t *plaintext, crypto_data_t *ciphertext)
606 plen = plaintext->cd_length;
623 ASSERT(plaintext->cd_length <= sizeof (tmp_data));
624 if ((rv = crypto_get_input_data(plaintext, &ptptr, tmp_data))
696 crypto_data_t *plaintext, crypto_req_handle_t req)
704 RSA_ARG_INPLACE(ciphertext, plaintext);
708 ciphertext, plaintext);
720 crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext,
727 RSA_ARG_INPLACE(ciphertext, plaintext);
730 plaintext));
735 crypto_data_t *ciphertext, crypto_data_t *plaintext)
774 if (plain_len > plaintext->cd_length) {
775 plaintext->cd_length = plain_len;
781 plaintext, plain_len)) != CRYPTO_SUCCESS)
784 plaintext->cd_length = plain_len;