VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Build
AgeCommit message (Collapse)AuthorFilesLines
2018-03-27Increment version to 1.22-BETA7 (1.22.7)Mounir IDRASSI1-1/+1
2018-03-25Increment version to 1.22-BETA6 (1.22.6)Mounir IDRASSI1-1/+1
2018-03-22Increment version to 1.22-BETA5 (1.22.5)Mounir IDRASSI1-1/+1
2017-12-09Increment version to 1.22-BETA4 (1.22.4)Mounir IDRASSI1-1/+1
2017-07-10FreeBSD: make official FreeBSD build script executableVeraCrypt_1.21Mounir IDRASSI1-0/+0
2017-07-10FreeBSD: enable wxWidgets static build by default in official build scriptMounir IDRASSI1-4/+4
2017-07-10Add support for building under FreeBSD 11Mounir IDRASSI1-0/+48
2017-07-09Increment version to 1.21.5Mounir IDRASSI1-1/+1
2017-07-05Increment version to 1.21.4Mounir IDRASSI1-1/+1
2017-07-04Increment version to 1.21.3Mounir IDRASSI1-1/+1
2017-07-02Increment version to 1.21 (1.21.1)Mounir IDRASSI1-1/+1
2017-06-29MacOSX: put back full wxWidgets build in official build script.Mounir IDRASSI1-3/+2<
/*
 * Non-physical true random number generator based on timing jitter.
 *
 * Copyright Stephan Mueller <smueller@chronox.de>, 2014
 *
 * License
 * =======
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, and the entire permission notice in its entirety,
 *    including the disclaimer of warranties.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. The name of the author may not be used to endorse or promote
 *    products derived from this software without specific prior
 *    written permission.
 *
 * ALTERNATIVELY, this product may be distributed under the terms of
 * the GNU General Public License, in which case the provisions of the GPL are
 * required INSTEAD OF the above restrictions.  (This clause is
 * necessary due to a potential bad interaction between the GPL and
 * the restrictions contained in a BSD-style copyright.)
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
 * WHICH ARE HEREBY DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
 * DAMAGE.
 */

/* Adapted for VeraCrypt */

#ifndef _JITTERENTROPY_H
#define _JITTERENTROPY_H

#include "jitterentropy-base-user.h"

/* The entropy pool */
struct rand_data
{
	/* all data values that are vital to maintain the security
	 * of the RNG are marked as SENSITIVE. A user must not
	 * access that information while the RNG executes its loops to
	 * calculate the next random value. */
	uint64_t data;		/* SENSITIVE Actual random number */
	uint64_t old_data;	/* SENSITIVE Previous random number */
	uint64_t prev_time;	/* SENSITIVE Previous time stamp */
#define DATA_SIZE_BITS ((sizeof(uint64_t)) * 8)
	uint64_t last_delta;	/* SENSITIVE stuck test */
	int64_t last_delta2;	/* SENSITIVE stuck test */
	unsigned int osr;	/* Oversample rate */
	int fips_enabled;	/* FIPS enabled? */
	unsigned int stir:1;		/* Post-processing stirring */
	unsigned int disable_unbias:1;	/* Deactivate Von-Neuman unbias */
#define JENT_MEMORY_BLOCKS 64
#define JENT_MEMORY_BLOCKSIZE 32
#define JENT_MEMORY_ACCESSLOOPS 128
#define JENT_MEMORY_SIZE (JENT_MEMORY_BLOCKS*JENT_MEMORY_BLOCKSIZE)
	unsigned char *mem
2015-10-07Increment version to 1.16. Update user guide PDF file.VeraCrypt_1.16Mounir IDRASSI1-1/+1
2015-09-26Increment version to 1.15. Update user guide PDF file.VeraCrypt_1.15Mounir IDRASSI1-1/+1
2015-09-16Increment version to 1.14. Update user guide PDF file.VeraCrypt_1.14Mounir IDRASSI1-1/+1
2015-08-09Increment version to 1.13VeraCrypt_1.13Mounir IDRASSI1-1/+1
2015-08-06Linux: modify official build script to use different build directories for ↵VeraCrypt_1.12Mounir IDRASSI1-3/+14
wxWidgets console and GUI builds.
2015-08-06Increment version to 1.12. Update user guide PDF file.Mounir IDRASSI1-1/+1
2015-08-06Update license information to reflect the use of a dual license Apache 2.0 ↵Mounir IDRASSI3-4/+22
and TrueCrypt 3.0.
2015-04-06MacOSX: Set properly the version in the bundle and the installation package. ↵VeraCrypt_1.0f-2Mounir IDRASSI1-2/+2
Allow downgrading using older installers.
2014-11-08MacOSX: add shell script to perform build under MacOSXVeraCrypt_MacOSX_1.0f-BETAVeraCrypt_Linux_1.0f-BETAVeraCrypt_1.0f-BETAMounir IDRASSI1-0/+24
2014-11-08Linux: Add shell script to perform VeraCrypt full buildMounir IDRASSI1-0/+29
2014-11-08MacOSX : Correct issue of compiling assembly files in both 32-bit and 64-bit ↵Mounir IDRASSI1-5/+12
mode. Modify Makefiles to correct compilation process using latest Xcode.
2014-11-08MacOSX : add nasm binary to be used instead of the native one because of the ↵Mounir IDRASSI1-0/+0
limitations of the version shipped by Apple
2014-11-08Replace TrueCrypt references in added sources and resources by VeraCrypt ones.Mounir IDRASSI1-5/+5
2014-11-08Add TrueCrypt 7.1a MacOSX/Linux specific source files.Mounir IDRASSI2-0/+102