Projects
Extra
GostCrypt
GostCrypt.inline.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File GostCrypt.inline.patch of Package GostCrypt (Revision 8)
Currently displaying revision
8
,
Show latest
--- a/Crypto/GrasshopperCipher.c +++ b/Crypto/GrasshopperCipher.c @@ -123,6 +123,7 @@ unsigned char mult_mod_poly[8][256] = { 103, 156, 82, 169, 13, 246, 56, 195, 179, 72, 134, 125, 217, 34, 236, 23, 12, 247, 57, 194, 102, 157, 83, 168, 216, 35, 237, 22, 178, 73, 135, 124}}; /* S conversion function */ +static inline void S(unsigned long long * block) { unsigned long long valtmp; @@ -151,6 +152,7 @@ inline void S(unsigned long long * block } /* Inverse of S conversion function */ +static inline void S_inv(unsigned long long * block) { unsigned long long valtmp; @@ -179,6 +181,7 @@ inline void S_inv(unsigned long long * b } /* Linear transformation */ +static inline unsigned char ll(unsigned long long *block) { @@ -202,6 +205,7 @@ inline unsigned char ll(unsigned long lo } /* R conversion function */ +static inline void R(unsigned long long * block) { unsigned long long valtmp[2]; @@ -219,6 +223,7 @@ inline void R(unsigned long long * block } /* Inverse of R conversion function */ +static inline void R_inv(unsigned long long * block) { unsigned long long valtmp[2]; @@ -237,6 +242,7 @@ inline void R_inv(unsigned long long * b } /* L conversion function (16 iteration of R) */ +static inline void L(unsigned long long * block) { R(block); R(block); R(block); R(block); @@ -246,6 +252,7 @@ inline void L(unsigned long long * block } /* Inverse of L conversion function (16 iteration of R_inv) */ +static inline void L_inv(unsigned long long * block) { R_inv(block); R_inv(block); R_inv(block); R_inv(block); @@ -255,6 +262,7 @@ inline void L_inv(unsigned long long * b } /* F conversion function (used in key setup) */ +static inline void F(unsigned long long * k, unsigned long long * block1, unsigned long long * block0) { unsigned long long tmpblock[2];
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.