Lines Matching refs:iv_offset
506 int rc, iv_offset = 0; in tls_do_encryption() local
512 iv_offset = 1; in tls_do_encryption()
516 iv_offset = 1; in tls_do_encryption()
520 memcpy(&rec->iv_data[iv_offset], tls_ctx->tx.iv, in tls_do_encryption()
523 tls_xor_iv_with_seq(prot, rec->iv_data + iv_offset, in tls_do_encryption()
1473 int iv_offset = 0; in tls_decrypt_sg() local
1526 iv_offset = 1; in tls_decrypt_sg()
1530 iv_offset = 1; in tls_decrypt_sg()
1537 memcpy(&dctx->iv[iv_offset], tls_ctx->rx.iv, in tls_decrypt_sg()
1541 &dctx->iv[iv_offset] + prot->salt_size, in tls_decrypt_sg()
1545 memcpy(&dctx->iv[iv_offset], tls_ctx->rx.iv, prot->salt_size); in tls_decrypt_sg()
1547 tls_xor_iv_with_seq(prot, &dctx->iv[iv_offset], tls_ctx->rx.rec_seq); in tls_decrypt_sg()