Infrasctucture Crypto Function Reference
Crypto
The crypto module(s) may be used to encrypt and decrypt blocks of random data. This is the method used by I/O. The reason I broke the functions out like I did was so they could be used by other programs (like newpw).
| | |
|
int
|
bfAddVecs( *cryp_t crp )
|
Add function vectors to the encryption control block (cryp_t). For making keys,
encryption, decryption, and freeing resources.
| | |
|
int
|
bfFree( *cryp_t crp )
|
Free all resources attached to the supplied encryption control block (cryp_t).
| | |
|
int
|
bfMkKey( cryp_t* crp, char* seed, int dither, int typ )
|
Build an encryption or decryption key for Blowfish encryption. The "typ" of 'I' is for
decryption and 'O' is for encryption.
| | |
|
int
|
bfEnc( u_char* dat, int* len, cryp_t* crp )
|
Encrypt the data at *dat using blowfish encryption.
| | |
|
int
|
bfDec( u_char* dat, int* len, cryp_t* crp )
|
Decrypt the data at *dat using Blowfish encryption algorythm.
| | |
|
int
|
aesAddVecs( *cryp_t crp )
|
Add function vectors to the encryption control block (cryp_t).
For making keys, encryption, decryption, and freeing resources.
| | |
|
int
|
aesFree( *cryp_t crp )
|
Free all resources attached to the supplied encryption control block (cryp_t).
| | |
|
int
|
aesMkKey( cryp_t* crp, char* seed, int dither, int typ )
|
Build an encryption or decryption key for AES encryption. The "typ" of 'I' is for
decryption and 'O' is for encryption.
| | |
|
int
|
aesEnc( u_char* dat, int* len, cryp_t* crp )
|
Encrypt the data at *dat using AES encryption algorythm.
| | |
|
int
|
aesDec( u_char* dat, int* len, cryp_t* crp )
|
Decrypt the data at *dat using AES encryption algorythm.