Lines Matching refs:csp
57 const struct crypto_session_params *csp) in ossl_chacha20() argument
72 cipher_key = csp->csp_cipher_key; in ossl_chacha20()
157 const struct crypto_session_params *csp) in ossl_chacha20_poly1305_encrypt() argument
174 cipher_key = csp->csp_cipher_key; in ossl_chacha20_poly1305_encrypt()
179 crypto_read_iv(crp, counter + (CHACHA_CTR_SIZE - csp->csp_ivlen) / 4); in ossl_chacha20_poly1305_encrypt()
241 if (csp->csp_ivlen == 8 && next_counter < counter[0]) { in ossl_chacha20_poly1305_encrypt()
250 if (csp->csp_ivlen == 8 && counter[0] == 0) in ossl_chacha20_poly1305_encrypt()
289 crypto_copyback(crp, crp->crp_digest_start, csp->csp_auth_mlen == 0 ? in ossl_chacha20_poly1305_encrypt()
290 POLY1305_HASH_LEN : csp->csp_auth_mlen, tag); in ossl_chacha20_poly1305_encrypt()
303 const struct crypto_session_params *csp) in ossl_chacha20_poly1305_decrypt() argument
321 cipher_key = csp->csp_cipher_key; in ossl_chacha20_poly1305_decrypt()
326 crypto_read_iv(crp, counter + (CHACHA_CTR_SIZE - csp->csp_ivlen) / 4); in ossl_chacha20_poly1305_decrypt()
366 mlen = csp->csp_auth_mlen == 0 ? POLY1305_HASH_LEN : csp->csp_auth_mlen; in ossl_chacha20_poly1305_decrypt()
410 if (csp->csp_ivlen == 8 && next_counter < counter[0]) { in ossl_chacha20_poly1305_decrypt()
418 if (csp->csp_ivlen == 8 && counter[0] == 0) in ossl_chacha20_poly1305_decrypt()