mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:15:52 +00:00
[FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces
This commit is contained in:
parent
4b4ffa92f5
commit
34593d933b
952 changed files with 12942 additions and 12942 deletions
|
@ -5,7 +5,7 @@
|
|||
* Copyright 2004 Michael Jung
|
||||
* Based on public domain code by Tom St Denis (tomstdenis@iahu.ca)
|
||||
* and Dobes Vandermeer.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
|
@ -22,21 +22,21 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* This file contains code from the LibTomCrypt cryptographic
|
||||
* This file contains code from the LibTomCrypt cryptographic
|
||||
* library written by Tom St Denis (tomstdenis@iahu.ca). LibTomCrypt
|
||||
* is in the public domain. The code in this file is tailored to
|
||||
* special requirements. Take a look at http://libtomcrypt.org for the
|
||||
* original version.
|
||||
* original version.
|
||||
*/
|
||||
|
||||
#include "tomcrypt.h"
|
||||
|
||||
#define EN0 0
|
||||
#define EN0 0
|
||||
#define DE1 1
|
||||
|
||||
static const ulong32 bytebit[8] =
|
||||
{
|
||||
0200, 0100, 040, 020, 010, 04, 02, 01
|
||||
0200, 0100, 040, 020, 010, 04, 02, 01
|
||||
};
|
||||
|
||||
static const ulong32 bigbyte[24] =
|
||||
|
@ -46,22 +46,22 @@ static const ulong32 bigbyte[24] =
|
|||
0x8000UL, 0x4000UL, 0x2000UL, 0x1000UL,
|
||||
0x800UL, 0x400UL, 0x200UL, 0x100UL,
|
||||
0x80UL, 0x40UL, 0x20UL, 0x10UL,
|
||||
0x8UL, 0x4UL, 0x2UL, 0x1L
|
||||
0x8UL, 0x4UL, 0x2UL, 0x1L
|
||||
};
|
||||
|
||||
/* Use the key schedule specific in the standard (ANSI X3.92-1981) */
|
||||
|
||||
static const unsigned char pc1[56] = {
|
||||
56, 48, 40, 32, 24, 16, 8, 0, 57, 49, 41, 33, 25, 17,
|
||||
9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35,
|
||||
56, 48, 40, 32, 24, 16, 8, 0, 57, 49, 41, 33, 25, 17,
|
||||
9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35,
|
||||
62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21,
|
||||
13, 5, 60, 52, 44, 36, 28, 20, 12, 4, 27, 19, 11, 3
|
||||
13, 5, 60, 52, 44, 36, 28, 20, 12, 4, 27, 19, 11, 3
|
||||
};
|
||||
|
||||
static const unsigned char totrot[16] = {
|
||||
1, 2, 4, 6,
|
||||
8, 10, 12, 14,
|
||||
15, 17, 19, 21,
|
||||
8, 10, 12, 14,
|
||||
15, 17, 19, 21,
|
||||
23, 25, 27, 28
|
||||
};
|
||||
|
||||
|
@ -1278,7 +1278,7 @@ static const ulong64 des_fp[8][256] = {
|
|||
CONST64(0x40404000,0x00004040), CONST64(0x40404010,0x00004040), CONST64(0x40404000,0x40004040), CONST64(0x40404010,0x40004040),
|
||||
CONST64(0x40404000,0x00404040), CONST64(0x40404010,0x00404040), CONST64(0x40404000,0x40404040), CONST64(0x40404010,0x40404040)
|
||||
}};
|
||||
|
||||
|
||||
|
||||
static void cookey(const ulong32 *raw1, ulong32 *keyout);
|
||||
|
||||
|
@ -1408,7 +1408,7 @@ static void desfunc(ulong32 *block, const ulong32 *keys)
|
|||
des_fp[7][byte(right, 3)];
|
||||
leftt = (ulong32)(tmp >> 32);
|
||||
right = (ulong32)(tmp & 0xFFFFFFFFUL);
|
||||
|
||||
|
||||
block[0] = right;
|
||||
block[1] = leftt;
|
||||
}
|
||||
|
|
|
@ -22,11 +22,11 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* This file contains code from the LibTomCrypt cryptographic
|
||||
* This file contains code from the LibTomCrypt cryptographic
|
||||
* library written by Tom St Denis (tomstdenis@iahu.ca). LibTomCrypt
|
||||
* is in the public domain. The code in this file is tailored to
|
||||
* special requirements. Take a look at http://libtomcrypt.org for the
|
||||
* original version.
|
||||
* original version.
|
||||
*/
|
||||
|
||||
#ifndef __WINE_TOMCRYPT_H_
|
||||
|
@ -78,8 +78,8 @@ enum {
|
|||
#define CONST64(a,b) ((((ULONG64)(a)) << 32) | (b))
|
||||
typedef ULONG64 ulong64;
|
||||
|
||||
/* this is the "32-bit at least" data type
|
||||
* Re-define it to suit your platform but it must be at least 32-bits
|
||||
/* this is the "32-bit at least" data type
|
||||
* Re-define it to suit your platform but it must be at least 32-bits
|
||||
*/
|
||||
typedef ULONG32 ulong32;
|
||||
|
||||
|
@ -117,8 +117,8 @@ static inline unsigned ROR(unsigned word, int i)
|
|||
|
||||
#define byte(x, n) (((x) >> (8 * (n))) & 255)
|
||||
|
||||
typedef struct tag_rc2_key {
|
||||
unsigned xkey[64];
|
||||
typedef struct tag_rc2_key {
|
||||
unsigned xkey[64];
|
||||
} rc2_key;
|
||||
|
||||
typedef struct tag_des_key {
|
||||
|
@ -184,7 +184,7 @@ unsigned long rc4_read(unsigned char *buf, unsigned long len, prng_state *prng);
|
|||
typedef unsigned long mp_digit;
|
||||
typedef ulong64 mp_word;
|
||||
#define DIGIT_BIT 28
|
||||
|
||||
|
||||
#define MP_DIGIT_BIT DIGIT_BIT
|
||||
#define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1))
|
||||
#define MP_DIGIT_MAX MP_MASK
|
||||
|
@ -376,7 +376,7 @@ int mp_exptmod(const mp_int *a, const mp_int *b, mp_int *c, mp_int *d);
|
|||
int mp_prime_fermat(mp_int *a, mp_int *b, int *result);
|
||||
|
||||
/* This gives [for a given bit size] the number of trials required
|
||||
* such that Miller-Rabin gives a prob of failure lower than 2^-96
|
||||
* such that Miller-Rabin gives a prob of failure lower than 2^-96
|
||||
*/
|
||||
int mp_prime_rabin_miller_trials(int size);
|
||||
|
||||
|
@ -388,7 +388,7 @@ int mp_prime_rabin_miller_trials(int size);
|
|||
int mp_prime_next_prime(mp_int *a, int t, int bbs_style);
|
||||
|
||||
/* makes a truly random prime of a given size (bytes),
|
||||
* call with bbs = 1 if you want it to be congruent to 3 mod 4
|
||||
* call with bbs = 1 if you want it to be congruent to 3 mod 4
|
||||
*
|
||||
* You have to supply a callback which fills in a buffer with random bytes. "dat" is a parameter you can
|
||||
* have passed to the callback (e.g. a state or something). This function doesn't use "dat" itself
|
||||
|
@ -401,7 +401,7 @@ int mp_prime_next_prime(mp_int *a, int t, int bbs_style);
|
|||
/* makes a truly random prime of a given size (bits),
|
||||
*
|
||||
* Flags are as follows:
|
||||
*
|
||||
*
|
||||
* LTM_PRIME_BBS - make prime congruent to 3 mod 4
|
||||
* LTM_PRIME_SAFE - make sure (p-1)/2 is prime as well (implies LTM_PRIME_BBS)
|
||||
* LTM_PRIME_2MSB_OFF - make the 2nd highest bit zero
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue