mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +00:00
Remove all the Digest stuff from pnUtCrypt.
This commit is contained in:
@ -61,35 +61,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
struct CryptKey;
|
||||
|
||||
enum ECryptAlgorithm {
|
||||
kCryptSha,
|
||||
kCryptRc4,
|
||||
kCryptRsa,
|
||||
kNumCryptAlgorithms
|
||||
};
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Digest functions
|
||||
*
|
||||
***/
|
||||
|
||||
void CryptDigest (
|
||||
ECryptAlgorithm algorithm,
|
||||
void * dest, // must be sized to the algorithm's digest size
|
||||
const unsigned sourceBytes,
|
||||
const void * sourceData
|
||||
);
|
||||
|
||||
void CryptDigest (
|
||||
ECryptAlgorithm algorithm,
|
||||
void * dest, // must be sized to the algorithm's digest size
|
||||
unsigned sourceCount,
|
||||
const unsigned sourceBytes[], // [sourceCount]
|
||||
const void * sourcePtrs[] // [sourceCount]
|
||||
);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Key generation
|
||||
@ -119,18 +96,6 @@ unsigned CryptKeyGetBlockSize (
|
||||
CryptKey * key
|
||||
);
|
||||
|
||||
void CryptCreateRandomSeed (
|
||||
unsigned bytes,
|
||||
uint8_t * data
|
||||
);
|
||||
|
||||
void CryptCreateFastWeakChallenge (
|
||||
unsigned * challenge,
|
||||
unsigned val1,
|
||||
unsigned val2
|
||||
);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Encryption and Decryption
|
||||
|
Reference in New Issue
Block a user