Changeset View
Changeset View
Standalone View
Standalone View
cipher/rijndael.c
Show First 20 Lines • Show All 915 Lines • ▼ Show 20 Lines | static int _gcry_aes_generic_cbc_enc (const void *context, unsigned char *iv, | ||||
size_t nblocks, | size_t nblocks, | ||||
int cbc_mac) | int cbc_mac) | ||||
{ | { | ||||
const RIJNDAEL_context *ctx = context; | const RIJNDAEL_context *ctx = context; | ||||
unsigned char *outbuf = outbuf_arg; | unsigned char *outbuf = outbuf_arg; | ||||
const unsigned char *inbuf = inbuf_arg; | const unsigned char *inbuf = inbuf_arg; | ||||
rijndael_cryptfn_t encrypt_fn = ctx->encrypt_fn; | rijndael_cryptfn_t encrypt_fn = ctx->encrypt_fn; | ||||
int burn_depth = 0; | int burn_depth = 0; | ||||
unsigned char *last_iv = iv; | |||||
unsigned char *last_iv = iv; | unsigned char *last_iv = iv; | ||||
if (ctx->prefetch_enc_fn) | if (ctx->prefetch_enc_fn) | ||||
ctx->prefetch_enc_fn(); | ctx->prefetch_enc_fn(); | ||||
for ( ;nblocks; nblocks-- ) | for ( ;nblocks; nblocks-- ) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 991 Lines • Show Last 20 Lines |