| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * crypto.h - public data structures and prototypes for the crypto library |    2  * crypto.h - public data structures and prototypes for the crypto library | 
|    3  * |    3  * | 
|    4  * ***** BEGIN LICENSE BLOCK ***** |    4  * ***** BEGIN LICENSE BLOCK ***** | 
|    5  * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |    5  * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 
|    6  * |    6  * | 
|    7  * The contents of this file are subject to the Mozilla Public License Version |    7  * The contents of this file are subject to the Mozilla Public License Version | 
|    8  * 1.1 (the "License"); you may not use this file except in compliance with |    8  * 1.1 (the "License"); you may not use this file except in compliance with | 
|    9  * the License. You may obtain a copy of the License at |    9  * the License. You may obtain a copy of the License at | 
|   10  * http://www.mozilla.org/MPL/ |   10  * http://www.mozilla.org/MPL/ | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
|   35  * and other provisions required by the GPL or the LGPL. If you do not delete |   35  * and other provisions required by the GPL or the LGPL. If you do not delete | 
|   36  * the provisions above, a recipient may use your version of this file under |   36  * the provisions above, a recipient may use your version of this file under | 
|   37  * the terms of any one of the MPL, the GPL or the LGPL. |   37  * the terms of any one of the MPL, the GPL or the LGPL. | 
|   38  * |   38  * | 
|   39  * ***** END LICENSE BLOCK ***** */ |   39  * ***** END LICENSE BLOCK ***** */ | 
|   40 /* $Id: blapi.h,v 1.27 2007/11/09 18:49:32 wtc%google.com Exp $ */ |   40 /* $Id: blapi.h,v 1.27 2007/11/09 18:49:32 wtc%google.com Exp $ */ | 
|   41  |   41  | 
|   42 #ifndef _BLAPI_H_ |   42 #ifndef _BLAPI_H_ | 
|   43 #define _BLAPI_H_ |   43 #define _BLAPI_H_ | 
|   44  |   44  | 
|   45 #include "base/third_party/nss/blapit.h" |   45 #include "crypto/third_party/nss/blapit.h" | 
|   46  |   46  | 
|   47 /******************************************/ |   47 /******************************************/ | 
|   48  |   48  | 
|   49 extern SHA256Context *SHA256_NewContext(void); |   49 extern SHA256Context *SHA256_NewContext(void); | 
|   50 extern void SHA256_DestroyContext(SHA256Context *cx, PRBool freeit); |   50 extern void SHA256_DestroyContext(SHA256Context *cx, PRBool freeit); | 
|   51 extern void SHA256_Begin(SHA256Context *cx); |   51 extern void SHA256_Begin(SHA256Context *cx); | 
|   52 extern void SHA256_Update(SHA256Context *cx, const unsigned char *input, |   52 extern void SHA256_Update(SHA256Context *cx, const unsigned char *input, | 
|   53                         unsigned int inputLen); |   53                         unsigned int inputLen); | 
|   54 extern void SHA256_End(SHA256Context *cx, unsigned char *digest, |   54 extern void SHA256_End(SHA256Context *cx, unsigned char *digest, | 
|   55                      unsigned int *digestLen, unsigned int maxDigestLen); |   55                      unsigned int *digestLen, unsigned int maxDigestLen); | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   92 extern SECStatus SHA384_HashBuf(unsigned char *dest, const unsigned char *src, |   92 extern SECStatus SHA384_HashBuf(unsigned char *dest, const unsigned char *src, | 
|   93                               unsigned int src_length); |   93                               unsigned int src_length); | 
|   94 extern SECStatus SHA384_Hash(unsigned char *dest, const char *src); |   94 extern SECStatus SHA384_Hash(unsigned char *dest, const char *src); | 
|   95 extern void SHA384_TraceState(SHA384Context *cx); |   95 extern void SHA384_TraceState(SHA384Context *cx); | 
|   96 extern unsigned int SHA384_FlattenSize(SHA384Context *cx); |   96 extern unsigned int SHA384_FlattenSize(SHA384Context *cx); | 
|   97 extern SECStatus SHA384_Flatten(SHA384Context *cx,unsigned char *space); |   97 extern SECStatus SHA384_Flatten(SHA384Context *cx,unsigned char *space); | 
|   98 extern SHA384Context * SHA384_Resurrect(unsigned char *space, void *arg); |   98 extern SHA384Context * SHA384_Resurrect(unsigned char *space, void *arg); | 
|   99 extern void SHA384_Clone(SHA384Context *dest, SHA384Context *src); |   99 extern void SHA384_Clone(SHA384Context *dest, SHA384Context *src); | 
|  100  |  100  | 
|  101 #endif /* _BLAPI_H_ */ |  101 #endif /* _BLAPI_H_ */ | 
| OLD | NEW |