Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: mozilla/security/nss/lib/cryptohi/sechash.h

Issue 10961060: Update NSS to NSS 3.14 Beta 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Merge nss-static2.patch into nss-static.patch Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #ifndef _HASH_H_
2 #define _HASH_H_
3 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /* $Id: sechash.h,v 1.9 2012/04/25 14:49:43 gerv%gerv.net Exp $ */ 4 /* $Id: sechash.h,v 1.11 2012/09/22 01:11:49 wtc%google.com Exp $ */
5
6 #ifndef _HASH_H_
7 #define _HASH_H_
7 8
8 #include "seccomon.h" 9 #include "seccomon.h"
9 #include "hasht.h" 10 #include "hasht.h"
10 #include "secoidt.h" 11 #include "secoidt.h"
11 12
12 SEC_BEGIN_PROTOS 13 SEC_BEGIN_PROTOS
13 14
14 /* 15 /*
15 ** Generic hash api. 16 ** Generic hash api.
16 */ 17 */
17 18
18 extern unsigned int HASH_ResultLen(HASH_HashType type); 19 extern unsigned int HASH_ResultLen(HASH_HashType type);
19 20
20 extern unsigned int HASH_ResultLenContext(HASHContext *context); 21 extern unsigned int HASH_ResultLenContext(HASHContext *context);
21 22
22 extern unsigned int HASH_ResultLenByOidTag(SECOidTag hashOid); 23 extern unsigned int HASH_ResultLenByOidTag(SECOidTag hashOid);
23 24
24 extern SECStatus HASH_HashBuf(HASH_HashType type, 25 extern SECStatus HASH_HashBuf(HASH_HashType type,
25 unsigned char *dest, 26 unsigned char *dest,
26 » » » » unsigned char *src, 27 » » » » const unsigned char *src,
27 PRUint32 src_len); 28 PRUint32 src_len);
28 29
29 extern HASHContext * HASH_Create(HASH_HashType type); 30 extern HASHContext * HASH_Create(HASH_HashType type);
30 31
31 extern HASHContext * HASH_Clone(HASHContext *context); 32 extern HASHContext * HASH_Clone(HASHContext *context);
32 33
33 extern void HASH_Destroy(HASHContext *context); 34 extern void HASH_Destroy(HASHContext *context);
34 35
35 extern void HASH_Begin(HASHContext *context); 36 extern void HASH_Begin(HASHContext *context);
36 37
(...skipping 12 matching lines...) Expand all
49 50
50 extern const SECHashObject * HASH_GetHashObjectByOidTag(SECOidTag hashOid); 51 extern const SECHashObject * HASH_GetHashObjectByOidTag(SECOidTag hashOid);
51 52
52 extern HASH_HashType HASH_GetHashTypeByOidTag(SECOidTag hashOid); 53 extern HASH_HashType HASH_GetHashTypeByOidTag(SECOidTag hashOid);
53 extern SECOidTag HASH_GetHashOidTagByHMACOidTag(SECOidTag hmacOid); 54 extern SECOidTag HASH_GetHashOidTagByHMACOidTag(SECOidTag hmacOid);
54 extern SECOidTag HASH_GetHMACOidTagByHashOidTag(SECOidTag hashOid); 55 extern SECOidTag HASH_GetHMACOidTagByHashOidTag(SECOidTag hashOid);
55 56
56 SEC_END_PROTOS 57 SEC_END_PROTOS
57 58
58 #endif /* _HASH_H_ */ 59 #endif /* _HASH_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698