Lines Matching refs:rl
23 static int tls_is_multiblock_capable(OSSL_RECORD_LAYER *rl, uint8_t type, in tls_is_multiblock_capable() argument
29 && rl->compctx == NULL in tls_is_multiblock_capable()
30 && rl->msg_callback == NULL in tls_is_multiblock_capable()
31 && !rl->use_etm in tls_is_multiblock_capable()
32 && RLAYER_USE_EXPLICIT_IV(rl) in tls_is_multiblock_capable()
33 && !BIO_get_ktls_send(rl->bio) in tls_is_multiblock_capable()
34 && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx)) in tls_is_multiblock_capable()
41 size_t tls_get_max_records_multiblock(OSSL_RECORD_LAYER *rl, uint8_t type, in tls_get_max_records_multiblock() argument
45 if (tls_is_multiblock_capable(rl, type, len, *preffrag)) { in tls_get_max_records_multiblock()
56 return tls_get_max_records_default(rl, type, len, maxfrag, preffrag); in tls_get_max_records_multiblock()
65 static int tls_write_records_multiblock_int(OSSL_RECORD_LAYER *rl, in tls_write_records_multiblock_int() argument
94 if (!tls_is_multiblock_capable(rl, templates[0].type, totlen, in tls_write_records_multiblock_int()
111 packlen = EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int()
115 if (!tls_setup_write_buffer(rl, 1, packlen, packlen)) { in tls_write_records_multiblock_int()
119 wb = &rl->wbuf[0]; in tls_write_records_multiblock_int()
122 memcpy(aad, rl->sequence, 8); in tls_write_records_multiblock_int()
132 packleni = EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int()
137 RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR); in tls_write_records_multiblock_int()
145 if (EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int()
148 RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR); in tls_write_records_multiblock_int()
152 rl->sequence[7] += mb_param.interleave; in tls_write_records_multiblock_int()
153 if (rl->sequence[7] < mb_param.interleave) { in tls_write_records_multiblock_int()
155 while (j >= 0 && (++rl->sequence[j--]) == 0) ; in tls_write_records_multiblock_int()
167 int tls_write_records_multiblock(OSSL_RECORD_LAYER *rl, in tls_write_records_multiblock() argument
173 ret = tls_write_records_multiblock_int(rl, templates, numtempl); in tls_write_records_multiblock()
180 if (!tls_write_records_default(rl, templates, numtempl)) { in tls_write_records_multiblock()