Lines Matching refs:cipher
98 static int cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
302 sess.cipher = ciphers[i].id;
342 sess.cipher = 0;
419 if ((inl % ctx->cipher->block_size) != 0)
433 if (ctx->cipher->iv_len) {
436 iiv = in + inl - ctx->cipher->iv_len;
437 memcpy(save_iv, iiv, ctx->cipher->iv_len);
450 if (ctx->cipher->iv_len) {
452 iiv = out + inl - ctx->cipher->iv_len;
455 memcpy(ctx->iv, iiv, ctx->cipher->iv_len);
466 int cipher = -1, i;
469 if (ctx->cipher->nid == ciphers[i].nid &&
470 ctx->cipher->iv_len <= ciphers[i].ivmax &&
472 cipher = ciphers[i].id;
488 sess->cipher = cipher;
534 * gets called when libcrypto requests a cipher NID.
690 cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
693 if (!cipher)
698 *cipher = &cryptodev_rc4;
701 *cipher = &cryptodev_3des_cbc;
704 *cipher = &cryptodev_des_cbc;
707 *cipher = &cryptodev_bf_cbc;
710 *cipher = &cryptodev_cast_cbc;
713 *cipher = &cryptodev_aes_cbc;
716 *cipher = &cryptodev_aes_192_cbc;
719 *cipher = &cryptodev_aes_256_cbc;
723 *cipher = &cryptodev_aes_ctr;
726 *cipher = &cryptodev_aes_ctr_192;
729 *cipher = &cryptodev_aes_ctr_256;
733 *cipher = NULL;
736 return (*cipher != NULL);