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

Side by Side Diff: nss/lib/freebl/blapi.h

Issue 1843333003: Update NSPR to 4.12 and NSS to 3.23 on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * blapi.h - public prototypes for the freebl library 2 * blapi.h - public prototypes for the freebl library
3 * 3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public 4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 7
8 #ifndef _BLAPI_H_ 8 #ifndef _BLAPI_H_
9 #define _BLAPI_H_ 9 #define _BLAPI_H_
10 10
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 extern SECStatus 984 extern SECStatus
985 Camellia_Decrypt(CamelliaContext *cx, unsigned char *output, 985 Camellia_Decrypt(CamelliaContext *cx, unsigned char *output,
986 unsigned int *outputLen, unsigned int maxOutputLen, 986 unsigned int *outputLen, unsigned int maxOutputLen,
987 const unsigned char *input, unsigned int inputLen); 987 const unsigned char *input, unsigned int inputLen);
988 988
989 /******************************************/ 989 /******************************************/
990 /* 990 /*
991 ** ChaCha20+Poly1305 AEAD 991 ** ChaCha20+Poly1305 AEAD
992 */ 992 */
993 993
994 extern SECStatus 994 extern SECStatus ChaCha20Poly1305_InitContext(ChaCha20Poly1305Context *ctx,
995 ChaCha20Poly1305_InitContext(ChaCha20Poly1305Context *ctx, 995 const unsigned char *key,
996 » » » const unsigned char *key, unsigned int keyLen, 996 unsigned int keyLen,
997 » » » unsigned int tagLen); 997 unsigned int tagLen);
998 998
999 extern ChaCha20Poly1305Context * 999 extern ChaCha20Poly1305Context *ChaCha20Poly1305_CreateContext(
1000 ChaCha20Poly1305_CreateContext(const unsigned char *key, unsigned int keyLen, 1000 const unsigned char *key, unsigned int keyLen, unsigned int tagLen);
1001 » » » unsigned int tagLen);
1002 1001
1003 extern void 1002 extern void ChaCha20Poly1305_DestroyContext(ChaCha20Poly1305Context *ctx,
1004 ChaCha20Poly1305_DestroyContext(ChaCha20Poly1305Context *ctx, PRBool freeit); 1003 PRBool freeit);
1005 1004
1006 extern SECStatus 1005 extern SECStatus ChaCha20Poly1305_Seal(
1007 ChaCha20Poly1305_Seal(const ChaCha20Poly1305Context *ctx, 1006 const ChaCha20Poly1305Context *ctx, unsigned char *output,
1008 » » unsigned char *output, unsigned int *outputLen, 1007 unsigned int *outputLen, unsigned int maxOutputLen,
1009 » » unsigned int maxOutputLen, 1008 const unsigned char *input, unsigned int inputLen,
1010 » » const unsigned char *input, unsigned int inputLen, 1009 const unsigned char *nonce, unsigned int nonceLen,
1011 » » const unsigned char *nonce, unsigned int nonceLen, 1010 const unsigned char *ad, unsigned int adLen);
1012 » » const unsigned char *ad, unsigned int adLen);
1013 1011
1014 extern SECStatus 1012 extern SECStatus ChaCha20Poly1305_Open(
1015 ChaCha20Poly1305_Open(const ChaCha20Poly1305Context *ctx, 1013 const ChaCha20Poly1305Context *ctx, unsigned char *output,
1016 » » unsigned char *output, unsigned int *outputLen, 1014 unsigned int *outputLen, unsigned int maxOutputLen,
1017 » » unsigned int maxOutputLen, 1015 const unsigned char *input, unsigned int inputLen,
1018 » » const unsigned char *input, unsigned int inputLen, 1016 const unsigned char *nonce, unsigned int nonceLen,
1019 » » const unsigned char *nonce, unsigned int nonceLen, 1017 const unsigned char *ad, unsigned int adLen);
1020 » » const unsigned char *ad, unsigned int adLen);
1021 1018
1022 /******************************************/ 1019 /******************************************/
1023 /* 1020 /*
1024 ** MD5 secure hash function 1021 ** MD5 secure hash function
1025 */ 1022 */
1026 1023
1027 /* 1024 /*
1028 ** Hash a null terminated string "src" into "dest" using MD5 1025 ** Hash a null terminated string "src" into "dest" using MD5
1029 */ 1026 */
1030 extern SECStatus MD5_Hash(unsigned char *dest, const char *src); 1027 extern SECStatus MD5_Hash(unsigned char *dest, const char *src);
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 const SECItem *encodedParams, ECParams *params); 1613 const SECItem *encodedParams, ECParams *params);
1617 extern SECStatus EC_DecodeParams(const SECItem *encodedParams, 1614 extern SECStatus EC_DecodeParams(const SECItem *encodedParams,
1618 ECParams **ecparams); 1615 ECParams **ecparams);
1619 extern SECStatus EC_CopyParams(PLArenaPool *arena, ECParams *dstParams, 1616 extern SECStatus EC_CopyParams(PLArenaPool *arena, ECParams *dstParams,
1620 const ECParams *srcParams); 1617 const ECParams *srcParams);
1621 #endif 1618 #endif
1622 1619
1623 SEC_END_PROTOS 1620 SEC_END_PROTOS
1624 1621
1625 #endif /* _BLAPI_H_ */ 1622 #endif /* _BLAPI_H_ */
OLDNEW
« no previous file with comments | « nss/lib/dev/nssdev.h ('k') | nss/lib/freebl/blapit.h » ('j') | nss/lib/util/secoid.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698