Initial commit
This commit is contained in:
commit
c101616e62
309 changed files with 53937 additions and 0 deletions
23
bundled/cbits/ref10/include/load.h
Normal file
23
bundled/cbits/ref10/include/load.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef CRYPTO_LOAD_H
|
||||
#define CRYPTO_LOAD_H
|
||||
|
||||
static inline crypto_uint64 load_3(const unsigned char *in)
|
||||
{
|
||||
crypto_uint64 result;
|
||||
result = (crypto_uint64) in[0];
|
||||
result |= ((crypto_uint64) in[1]) << 8;
|
||||
result |= ((crypto_uint64) in[2]) << 16;
|
||||
return result;
|
||||
}
|
||||
|
||||
static inline crypto_uint64 load_4(const unsigned char *in)
|
||||
{
|
||||
crypto_uint64 result;
|
||||
result = (crypto_uint64) in[0];
|
||||
result |= ((crypto_uint64) in[1]) << 8;
|
||||
result |= ((crypto_uint64) in[2]) << 16;
|
||||
result |= ((crypto_uint64) in[3]) << 24;
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif /* CRYPTO_LOAD_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue