163 struct _randomGenerator
237 struct _randomGeneratorContext
357 struct _hashFunctionContext
438 struct _keyedHashFunction
496 struct _keyedHashFunctionContext
762 struct _blockCipherContext
int(* randomGeneratorNext)(randomGeneratorParam *, byte *, size_t)
Definition: beecrypt.h:137
uint32_t *(* blockCipherFeedback)(blockCipherParam *)
Definition: beecrypt.h:623
const char * name
The entropy source's name.
Definition: beecrypt.h:61
const blockCipherMode cbc
The cipher's CBC functions.
Definition: beecrypt.h:701
int blockCipherContextFree(blockCipherContext *)
const size_t paramsize
Definition: beecrypt.h:307
const hashFunction * hashFunctionDefault(void)
const blockCipherSetCTR setctr
Pointer to the cipher's ctr setup function.
Definition: beecrypt.h:685
void blockCipherParam
Placeholder type definition for blockcipher parameters.
Definition: beecrypt.h:568
keyedHashFunctionParam * param
Definition: beecrypt.h:500
cipherOperation
Specifies whether to perform encryption or decryption.
Definition: beecrypt.h:556
BeeCrypt API, portability headers.
cipherOperation op
Definition: beecrypt.h:775
int blockCipherContextValidKeylen(blockCipherContext *, size_t)
int(* keyedHashFunctionDigest)(keyedHashFunctionParam *, byte *)
Definition: beecrypt.h:419
void hashFunctionParam
Definition: beecrypt.h:284
int hashFunctionContextFree(hashFunctionContext *)
int blockCipherContextECB(blockCipherContext *, uint32_t *, const uint32_t *, int)
void keyedHashFunctionParam
Definition: beecrypt.h:414
This struct holds information and pointers to code specific to each pseudo-random number generator...
Definition: beecrypt.h:161
int keyedHashFunctionContextUpdateMP(keyedHashFunctionContext *, const mpnumber *)
int keyedHashFunctionContextUpdateMC(keyedHashFunctionContext *, const memchunk *)
int randomGeneratorContextInit(randomGeneratorContext *, const randomGenerator *)
Definition: beecrypt.h:560
Holds information and pointers to code specific to each cipher.
Definition: beecrypt.h:644
const blockCipherRawcrypt decrypt
Definition: beecrypt.h:628
int hashFunctionContextDigestMP(hashFunctionContext *, mpnumber *)
int(* hashFunctionReset)(hashFunctionParam *)
Definition: beecrypt.h:286
Holds a pointer to a blockcipher as well as its parameters.
Definition: beecrypt.h:760
int(* blockCipherSetup)(blockCipherParam *, const byte *, size_t, cipherOperation)
Prototype definition for a setup function.
Definition: beecrypt.h:573
const hashFunctionDigest digest
Definition: beecrypt.h:312
int keyedHashFunctionContextUpdate(keyedHashFunctionContext *, const byte *, size_t)
Definition: beecrypt.h:235
int entropyGatherNext(byte *, size_t)
This function gathers size bytes of entropy into data.
const entropySource * entropySourceFind(const char *name)
This function returns the entropy source specified by the given name.
Definition: beecrypt.h:436
const keyedHashFunction * keyedHashFunctionDefault(void)
const hashFunction * algo
Definition: beecrypt.h:360
const blockCipherSetIV setiv
Pointer to the cipher's initialization vector setup function.
Definition: beecrypt.h:681
blockCipherParam * param
Pointer to the parameters used by algo.
Definition: beecrypt.h:772
Definition: memchunk.h:28
int(* blockCipherSetCTR)(blockCipherParam *, const byte *, size_t)
Prototype definition for an initialization vector setup function.
Definition: beecrypt.h:596
int(* hashFunctionDigest)(hashFunctionParam *, byte *)
Definition: beecrypt.h:288
Definition: beecrypt.h:631
const entropySource * entropySourceGet(int n)
This function returns the n -th entropy source implemented by the library.
int(* entropyNext)(byte *, size_t)
Prototype definition for an entropy-generating function.
Definition: beecrypt.h:46
int keyedHashFunctionContextFree(keyedHashFunctionContext *)
const blockCipher * blockCipherFind(const char *)
This function returns the blockcipher specified by the given name.
int randomGeneratorContextFree(randomGeneratorContext *)
const char * name
Definition: beecrypt.h:441
Definition: beecrypt.h:355
const randomGenerator * rng
Definition: beecrypt.h:240
const keyedHashFunction * algo
Definition: beecrypt.h:499
Definition: beecrypt.h:625
int(* hashFunctionUpdate)(hashFunctionParam *, const byte *, size_t)
Definition: beecrypt.h:287
Definition: beecrypt.h:559
int blockCipherContextCBC(blockCipherContext *, uint32_t *, const uint32_t *, int)
const blockCipherMode ctr
The cipher's CTR functions.
Definition: beecrypt.h:705
const entropyNext next
Points to the function which produces the entropy.
Definition: beecrypt.h:65
int(* keyedHashFunctionSetup)(keyedHashFunctionParam *, const byte *, size_t)
Definition: beecrypt.h:416
const size_t keybitsmin
Definition: beecrypt.h:445
const blockCipherModcrypt decrypt
Definition: beecrypt.h:634
const randomGeneratorCleanup cleanup
Definition: beecrypt.h:191
int hashFunctionContextDigest(hashFunctionContext *, byte *)
const keyedHashFunctionReset reset
Definition: beecrypt.h:449
uint8_t byte
Definition: api.h:72
const blockCipherRaw raw
The cipher's raw functions.
Definition: beecrypt.h:693
Definition: beecrypt.h:494
const blockCipherFeedback getfb
Pointer to the cipher's feedback-returning function.
Definition: beecrypt.h:689
const char * name
Definition: beecrypt.h:306
const size_t paramsize
The size of the random generator's parameters.
Definition: beecrypt.h:175
randomGeneratorParam * param
Definition: beecrypt.h:241
const blockCipher * blockCipherDefault(void)
This functions returns the default blockcipher; the default value can be specified by setting environ...
int keyedHashFunctionContextSetup(keyedHashFunctionContext *, const byte *, size_t)
const keyedHashFunctionDigest digest
Definition: beecrypt.h:451
const char * name
The random generator's name.
Definition: beecrypt.h:169
const entropySource * entropySourceDefault(void)
This functions returns the default entropy source; the default value can be specified by setting envi...
int(* keyedHashFunctionUpdate)(keyedHashFunctionParam *, const byte *, size_t)
Definition: beecrypt.h:418
const blockCipherSetup setup
Pointer to the cipher's setup function.
Definition: beecrypt.h:677
const randomGeneratorNext next
Definition: beecrypt.h:187
int(* blockCipherModcrypt)(blockCipherParam *, uint32_t *, const uint32_t *, unsigned int)
Prototype for a encryption or decryption function which operates on multiple blocks in a certain mode...
Definition: beecrypt.h:621
Multi-precision numbers, headers.
const blockCipherMode ecb
The cipher's ECB functions.
Definition: beecrypt.h:697
int keyedHashFunctionContextDigestMP(keyedHashFunctionContext *, mpnumber *)
int(* blockCipherRawcrypt)(blockCipherParam *, uint32_t *, const uint32_t *)
Prototype for a raw encryption or decryption function.
Definition: beecrypt.h:608
int blockCipherContextInit(blockCipherContext *, const blockCipher *)
int hashFunctionCount(void)
int blockCipherContextCTR(blockCipherContext *, uint32_t *, const uint32_t *, int)
int keyedHashFunctionCount(void)
const keyedHashFunctionSetup setup
Definition: beecrypt.h:448
int hashFunctionContextUpdateMC(hashFunctionContext *, const memchunk *)
int entropySourceCount(void)
This function returns the number of entropy sources implemented by the library.
int hashFunctionContextInit(hashFunctionContext *, const hashFunction *)
const blockCipher * algo
Pointer to a blockCipher.
Definition: beecrypt.h:768
const randomGeneratorSeed seed
Points to the seeding function.
Definition: beecrypt.h:183
int(* randomGeneratorCleanup)(randomGeneratorParam *)
Definition: beecrypt.h:138
int(* keyedHashFunctionReset)(keyedHashFunctionParam *)
Definition: beecrypt.h:417
hashFunctionParam * param
Definition: beecrypt.h:361
const keyedHashFunction * keyedHashFunctionGet(int)
const size_t keybitsmax
Definition: beecrypt.h:446
int keyedHashFunctionContextDigest(keyedHashFunctionContext *, byte *)
const blockCipherModcrypt encrypt
Definition: beecrypt.h:633
int hashFunctionContextUpdate(hashFunctionContext *, const byte *, size_t)
const randomGenerator * randomGeneratorDefault(void)
int keyedHashFunctionContextReset(keyedHashFunctionContext *)
int(* randomGeneratorSeed)(randomGeneratorParam *, const byte *, size_t)
Definition: beecrypt.h:136
const size_t keybitsinc
Definition: beecrypt.h:447
const char * name
The blockcipher's name.
Definition: beecrypt.h:652
int blockCipherContextSetIV(blockCipherContext *, const byte *)
#define BEECRYPTAPI
Definition: api.h:52
int(* blockCipherSetIV)(blockCipherParam *, const byte *)
Prototype definition for an initialization vector setup function.
Definition: beecrypt.h:584
const size_t digestsize
Definition: beecrypt.h:444
const size_t keybitsinc
The allowed increment in key bits between min and max.
Definition: beecrypt.h:673
const size_t blocksize
Definition: beecrypt.h:443
int randomGeneratorContextNext(randomGeneratorContext *, byte *, size_t)
const blockCipherRawcrypt encrypt
Definition: beecrypt.h:627
int(* randomGeneratorSetup)(randomGeneratorParam *)
Definition: beecrypt.h:135
Definition: mpnumber.h:36
const size_t keybitsmin
The minimum number of key bits.
Definition: beecrypt.h:664
const size_t blocksize
The size of one block of data, in bytes.
Definition: beecrypt.h:660
const keyedHashFunctionUpdate update
Definition: beecrypt.h:450
int hashFunctionContextDigestMatch(hashFunctionContext *, const mpnumber *)
const size_t paramsize
The size of the parameters required by this cipher, in bytes.
Definition: beecrypt.h:656
const size_t paramsize
Definition: beecrypt.h:442
const size_t blocksize
Definition: beecrypt.h:308
Definition: beecrypt.h:301
const randomGenerator * randomGeneratorGet(int)
const hashFunctionUpdate update
Definition: beecrypt.h:311
Definition: beecrypt.h:558
const hashFunction * hashFunctionFind(const char *)
const size_t digestsize
Definition: beecrypt.h:309
int keyedHashFunctionContextDigestMatch(keyedHashFunctionContext *, const mpnumber *)
This struct holds information and pointers to code specific to each source of entropy.
Definition: beecrypt.h:53
int randomGeneratorContextSeed(randomGeneratorContext *, const byte *, size_t)
int keyedHashFunctionContextInit(keyedHashFunctionContext *, const keyedHashFunction *)
void randomGeneratorParam
Definition: beecrypt.h:133
int hashFunctionContextUpdateMP(hashFunctionContext *, const mpnumber *)
const hashFunctionReset reset
Definition: beecrypt.h:310
const hashFunction * hashFunctionGet(int)
int blockCipherContextSetup(blockCipherContext *, const byte *, size_t, cipherOperation)
int randomGeneratorCount(void)
const blockCipher * blockCipherGet(int)
This function returns the n -th blockcipher implemented by the library.
int blockCipherContextSetCTR(blockCipherContext *, const byte *, size_t)
const randomGeneratorSetup setup
Points to the setup function.
Definition: beecrypt.h:179
int hashFunctionContextReset(hashFunctionContext *)
const randomGenerator * randomGeneratorFind(const char *)
int blockCipherCount(void)
This function returns the number of blockciphers implemented by the library.
const size_t keybitsmax
The maximum number of key bits.
Definition: beecrypt.h:668
const keyedHashFunction * keyedHashFunctionFind(const char *)