Lines Matching refs:cipher
252 struct ossl_cipher *cipher;
255 cipher = ossl_lookup_cipher(csp);
256 if (cipher == NULL)
259 s->cipher.cipher = cipher;
265 if (cipher->set_encrypt_key != NULL) {
266 error = cipher->set_encrypt_key(csp->csp_cipher_key,
267 8 * csp->csp_cipher_klen, &s->cipher.enc_ctx);
273 if (cipher->set_decrypt_key != NULL)
274 error = cipher->set_decrypt_key(csp->csp_cipher_key,
275 8 * csp->csp_cipher_klen, &s->cipher.dec_ctx);
383 return (s->cipher.cipher->process(&s->cipher, crp, csp));
393 error = s->cipher.cipher->process(&s->cipher, crp, csp);
399 error = s->cipher.cipher->process(&s->cipher, crp, csp);
415 return (s->cipher.cipher->process(&s->cipher, crp, csp));