Lines Matching defs:plaintext
60 * CRYPTO_INVALID_PLAINTEXT: bogus 'plaintext' argument.
296 * plaintext: The message to be encrypted
298 * depends on the mechanism, and the plaintext's size.
306 * single-part encryption of 'plaintext' with the mechanism 'mech', using
319 crypto_mechanism_t *mech, crypto_data_t *plaintext, crypto_key_t *key,
340 plaintext, ciphertext, tmpl);
354 crypto_encrypt(crypto_mechanism_t *mech, crypto_data_t *plaintext,
369 list, CRYPTO_FG_ENCRYPT_ATOMIC, plaintext->cd_length)) == NULL) {
402 plaintext, ciphertext, spi_ctx_tmpl, KCF_SWFP_RHNDL(crq));
406 mech, key, plaintext, ciphertext, spi_ctx_tmpl);
458 * plaintext: The message part to be encrypted
473 crypto_encrypt_update(crypto_context_t context, crypto_data_t *plaintext,
492 error = KCF_PROV_ENCRYPT_UPDATE(pd, ctx, plaintext,
500 if (plaintext->cd_length < kcf_ctx->kc_mech->me_threshold &&
508 ctx->cc_session, NULL, NULL, plaintext, ciphertext, NULL);
578 * plaintext: Storage for the encrypted message. The length needed
579 * depends on the mechanism, and the plaintext's size.
589 * When complete and successful, 'plaintext' will contain the decrypted
601 crypto_ctx_template_t tmpl, crypto_data_t *plaintext,
621 ciphertext, plaintext, tmpl);
637 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *plaintext,
684 ciphertext, plaintext, spi_ctx_tmpl, KCF_SWFP_RHNDL(crq));
688 mech, key, ciphertext, plaintext, spi_ctx_tmpl);
741 * plaintext: Storage for the decrypted message part.
756 crypto_data_t *plaintext, crypto_call_req_t *cr)
775 plaintext, NULL);
790 ctx->cc_session, NULL, NULL, ciphertext, plaintext, NULL);
801 * plaintext: Storage for the last part of the decrypted message
815 crypto_decrypt_final(crypto_context_t context, crypto_data_t *plaintext,
834 error = KCF_PROV_DECRYPT_FINAL(pd, ctx, plaintext,
839 ctx->cc_session, NULL, NULL, NULL, plaintext, NULL);
852 crypto_encrypt_single(crypto_context_t context, crypto_data_t *plaintext,
869 error = KCF_PROV_ENCRYPT(pd, ctx, plaintext,
874 NULL, NULL, plaintext, ciphertext, NULL);
888 crypto_data_t *plaintext, crypto_call_req_t *cr)
905 plaintext, NULL);
909 NULL, NULL, ciphertext, plaintext, NULL);