Home | History | Annotate | Download | only in evp

Lines Matching refs:cipher

130 static int dev_crypto_init_key(EVP_CIPHER_CTX *ctx,int cipher,
138 assert(ctx->cipher->iv_len <= MAX_HW_IV);
142 CDATA(ctx)->cipher=cipher;
170 assert((inl&(ctx->cipher->block_size-1)) == 0);
174 if(ctx->cipher->iv_len)
178 memcpy(lb,&in[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len);
231 memcpy(ctx->iv,&out[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len);
233 memcpy(ctx->iv,lb,ctx->cipher->iv_len);