37
37
* the terms of any one of the MPL, the GPL or the LGPL.
39
39
* ***** END LICENSE BLOCK ***** */
40
/* $Id: loader.h,v 1.21 2007/11/13 03:12:48 wtc%google.com Exp $ */
40
/* $Id: loader.h,v 1.26 2009/03/29 03:45:32 wtc%google.com Exp $ */
43
43
#define _LOADER_H_ 1
47
#define FREEBL_VERSION 0x030A
47
#define FREEBL_VERSION 0x030B
49
49
struct FREEBLVectorStr {
491
491
void (* p_PQG_DestroyVerify)(PQGVerify *vfy);
493
493
/* Version 3.010 came to here */
495
SECStatus (* p_SEED_InitContext)(SEEDContext *cx,
496
const unsigned char *key,
498
const unsigned char *iv,
500
unsigned int encrypt,
503
SEEDContext *(*p_SEED_AllocateContext)(void);
505
SEEDContext *(* p_SEED_CreateContext)(const unsigned char *key,
506
const unsigned char *iv,
507
int mode, PRBool encrypt);
509
void (* p_SEED_DestroyContext)(SEEDContext *cx, PRBool freeit);
511
SECStatus (* p_SEED_Encrypt)(SEEDContext *cx, unsigned char *output,
512
unsigned int *outputLen, unsigned int maxOutputLen,
513
const unsigned char *input, unsigned int inputLen);
515
SECStatus (* p_SEED_Decrypt)(SEEDContext *cx, unsigned char *output,
516
unsigned int *outputLen, unsigned int maxOutputLen,
517
const unsigned char *input, unsigned int inputLen);
521
SECStatus (* p_BL_Init)(void);
522
void ( * p_BL_SetForkState)(PRBool);
524
SECStatus (* p_PRNGTEST_Instantiate)(const PRUint8 *entropy,
525
unsigned int entropy_len,
526
const PRUint8 *nonce,
527
unsigned int nonce_len,
528
const PRUint8 *personal_string,
529
unsigned int ps_len);
531
SECStatus (* p_PRNGTEST_Reseed)(const PRUint8 *entropy,
532
unsigned int entropy_len,
533
const PRUint8 *additional,
534
unsigned int additional_len);
536
SECStatus (* p_PRNGTEST_Generate)(PRUint8 *bytes,
537
unsigned int bytes_len,
538
const PRUint8 *additional,
539
unsigned int additional_len);
541
SECStatus (* p_PRNGTEST_Uninstantiate)(void);
542
/* Version 3.011 came to here */
496
545
typedef struct FREEBLVectorStr FREEBLVector;