Lines Matching refs:cipher
129 static int dev_crypto_init_key(EVP_CIPHER_CTX *ctx, int cipher,
137 assert(ctx->cipher->iv_len <= MAX_HW_IV);
141 CDATA(ctx)->cipher = cipher;
168 assert((inl & (ctx->cipher->block_size - 1)) == 0);
172 if (ctx->cipher->iv_len)
176 memcpy(lb, &in[cryp.len - ctx->cipher->iv_len], ctx->cipher->iv_len);
221 memcpy(ctx->iv, &out[cryp.len - ctx->cipher->iv_len],
222 ctx->cipher->iv_len);
224 memcpy(ctx->iv, lb, ctx->cipher->iv_len);