Lines Matching refs:cipher
101 static int cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
257 sess.cipher = ciphers[i].id;
298 sess.cipher = 0;
377 if ((inl % ctx->cipher->block_size) != 0)
391 if (ctx->cipher->iv_len) {
394 iiv = in + inl - ctx->cipher->iv_len;
395 memcpy(save_iv, iiv, ctx->cipher->iv_len);
407 if (ctx->cipher->iv_len) {
409 iiv = out + inl - ctx->cipher->iv_len;
412 memcpy(ctx->iv, iiv, ctx->cipher->iv_len);
423 int cipher = -1, i;
426 if (ctx->cipher->nid == ciphers[i].nid &&
427 ctx->cipher->iv_len <= ciphers[i].ivmax &&
429 cipher = ciphers[i].id;
445 sess->cipher = cipher;
493 * gets called when libcrypto requests a cipher NID.
609 cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
612 if (!cipher)
617 *cipher = &cryptodev_rc4;
620 *cipher = &cryptodev_3des_cbc;
623 *cipher = &cryptodev_des_cbc;
626 *cipher = &cryptodev_bf_cbc;
629 *cipher = &cryptodev_cast_cbc;
632 *cipher = &cryptodev_aes_cbc;
635 *cipher = &cryptodev_aes_192_cbc;
638 *cipher = &cryptodev_aes_256_cbc;
641 *cipher = NULL;
644 return (*cipher != NULL);