1
0
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:
Darryl Pogue
2012-02-12 15:23:31 -08:00
parent 7a5d61f7c8
commit 39e8dd1b3c
4 changed files with 48 additions and 172 deletions

View File

@ -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