encrypt_update
crypto_encrypt_update_t encrypt_update;
encrypt_update.eu_session = session_p->k_session;
encrypt_update.eu_datalen = ulPartLen;
encrypt_update.eu_databuf = (char *)pPart;
encrypt_update.eu_encrlen = *pulEncryptedPartLen;
encrypt_update.eu_encrbuf = (char *)pEncryptedPart;
encrypt_update.eu_flags =
(encrypt_update.eu_encrlen == encrypt_update.eu_datalen) ?
&encrypt_update)) < 0) {
encrypt_update.eu_return_value);
*pulEncryptedPartLen = encrypt_update.eu_encrlen;
int encrypt_update(crypto_op_t *op, size_t offset, size_t plainlen,
.tf_update = encrypt_update,
STRUCT_DECL(crypto_encrypt_update, encrypt_update);
STRUCT_INIT(encrypt_update, mode);
if (copyin(arg, STRUCT_BUF(encrypt_update),
STRUCT_SIZE(encrypt_update)) != 0) {
datalen = STRUCT_FGET(encrypt_update, eu_datalen);
encrlen = STRUCT_FGET(encrypt_update, eu_encrlen);
encrbuf = STRUCT_FGETP(encrypt_update, eu_encrbuf);
session_id = STRUCT_FGET(encrypt_update, eu_session);
do_inplace = (STRUCT_FGET(encrypt_update, eu_flags) &
if (datalen != 0 && copyin(STRUCT_FGETP(encrypt_update, eu_databuf),
if (STRUCT_FGETP(encrypt_update, eu_encrbuf) == NULL)
STRUCT_FSET(encrypt_update, eu_encrlen,
STRUCT_FSET(encrypt_update, eu_return_value, rv);
if (copyout(STRUCT_BUF(encrypt_update), arg,
STRUCT_SIZE(encrypt_update)) != 0) {
return (encrypt_update(dev, ARG, mode, rval));
if (cipher_ops->encrypt_update != NULL)
(KCF_PROV_CIPHER_OPS(pd) && KCF_PROV_CIPHER_OPS(pd)->encrypt_update) ? \
KCF_PROV_CIPHER_OPS(pd)->encrypt_update(ctx, plaintext, \
int (*encrypt_update)(crypto_ctx_t *,