~ubuntu-branches/ubuntu/karmic/nss/karmic-updates

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/freebl/loader.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-06-16 13:23:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616132347-311ysb8oep74b98y
Tags: 3.12.3-0ubuntu1
* new upstream release 3.12.3 RTM (NSS_3_12_3_RTM) (LP: #387751)
* adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
* needs nspr >= 4.7.4
  - update debian/control
* update 85_security_load.patch to latest debian version
  - update debian/patches/85_security_load.patch
* add new symbols for 3.12.3
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 * the terms of any one of the MPL, the GPL or the LGPL.
38
38
 *
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 $ */
41
41
 
42
42
#ifndef _LOADER_H_
43
43
#define _LOADER_H_ 1
44
44
 
45
45
#include "blapi.h"
46
46
 
47
 
#define FREEBL_VERSION 0x030A
 
47
#define FREEBL_VERSION 0x030B
48
48
 
49
49
struct FREEBLVectorStr {
50
50
 
491
491
 void (* p_PQG_DestroyVerify)(PQGVerify *vfy);
492
492
 
493
493
  /* Version 3.010 came to here */
 
494
 
 
495
 SECStatus (* p_SEED_InitContext)(SEEDContext *cx,
 
496
                                 const unsigned char *key,
 
497
                                 unsigned int keylen,
 
498
                                 const unsigned char *iv,
 
499
                                 int mode,
 
500
                                 unsigned int encrypt,
 
501
                                 unsigned int );
 
502
 
 
503
 SEEDContext *(*p_SEED_AllocateContext)(void);
 
504
 
 
505
 SEEDContext *(* p_SEED_CreateContext)(const unsigned char *key,
 
506
                                     const unsigned char *iv,
 
507
                                     int mode, PRBool encrypt);
 
508
 
 
509
 void (* p_SEED_DestroyContext)(SEEDContext *cx, PRBool freeit);
 
510
 
 
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);
 
514
 
 
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);
 
518
 
 
519
 
 
520
 
 
521
 SECStatus (* p_BL_Init)(void);
 
522
 void ( * p_BL_SetForkState)(PRBool);
 
523
 
 
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);
 
530
 
 
531
 SECStatus (* p_PRNGTEST_Reseed)(const PRUint8 *entropy, 
 
532
                                 unsigned int entropy_len, 
 
533
                                 const PRUint8 *additional, 
 
534
                                 unsigned int additional_len);
 
535
 
 
536
 SECStatus (* p_PRNGTEST_Generate)(PRUint8 *bytes, 
 
537
                                   unsigned int bytes_len, 
 
538
                                   const PRUint8 *additional, 
 
539
                                   unsigned int additional_len);
 
540
 
 
541
 SECStatus (* p_PRNGTEST_Uninstantiate)(void);
 
542
   /* Version 3.011 came to here */
494
543
};
495
544
 
496
545
typedef struct FREEBLVectorStr FREEBLVector;