eliminate warning: large integer implicitly truncated to unsigned type
This commit is contained in:
parent
6064229027
commit
f974a32a19
|
@ -1,5 +1,6 @@
|
||||||
/* Portable C version of des() function */
|
/* Portable C version of des() function */
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include "des.h"
|
#include "des.h"
|
||||||
|
|
||||||
/* Tables defined in the Data Encryption Standard documents
|
/* Tables defined in the Data Encryption Standard documents
|
||||||
|
@ -115,7 +116,7 @@ int Asmversion = 0;
|
||||||
* For best results, ensure that this is aligned on a 32-bit boundary;
|
* For best results, ensure that this is aligned on a 32-bit boundary;
|
||||||
* Borland C++ 3.1 doesn't guarantee this!
|
* Borland C++ 3.1 doesn't guarantee this!
|
||||||
*/
|
*/
|
||||||
extern unsigned long Spbox[8][64]; /* Combined S and P boxes */
|
extern uint64_t Spbox[8][64]; /* Combined S and P boxes */
|
||||||
|
|
||||||
/* Primitive function F.
|
/* Primitive function F.
|
||||||
* Input is r, subkey array in keys, output is XORed into l.
|
* Input is r, subkey array in keys, output is XORed into l.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
unsigned long Spbox[8][64] = {
|
#include <stdint.h>
|
||||||
|
uint64_t Spbox[8][64] = {
|
||||||
0x01010400,0x00000000,0x00010000,0x01010404,
|
0x01010400,0x00000000,0x00010000,0x01010404,
|
||||||
0x01010004,0x00010404,0x00000004,0x00010000,
|
0x01010004,0x00010404,0x00000004,0x00010000,
|
||||||
0x00000400,0x01010400,0x01010404,0x00000400,
|
0x00000400,0x01010400,0x01010404,0x00000400,
|
||||||
|
|
Loading…
Reference in New Issue