Lines Matching refs:iv_offset
543 int rc, iv_offset = 0; in tls_do_encryption() local
549 iv_offset = 1; in tls_do_encryption()
553 iv_offset = 1; in tls_do_encryption()
557 memcpy(&rec->iv_data[iv_offset], tls_ctx->tx.iv, in tls_do_encryption()
560 tls_xor_iv_with_seq(prot, rec->iv_data + iv_offset, in tls_do_encryption()
1507 int iv_offset = 0; in tls_decrypt_sg() local
1560 iv_offset = 1; in tls_decrypt_sg()
1564 iv_offset = 1; in tls_decrypt_sg()
1571 memcpy(&dctx->iv[iv_offset], tls_ctx->rx.iv, in tls_decrypt_sg()
1575 &dctx->iv[iv_offset] + prot->salt_size, in tls_decrypt_sg()
1579 memcpy(&dctx->iv[iv_offset], tls_ctx->rx.iv, prot->salt_size); in tls_decrypt_sg()
1581 tls_xor_iv_with_seq(prot, &dctx->iv[iv_offset], tls_ctx->rx.rec_seq); in tls_decrypt_sg()