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

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

Issue 214183004: Implement AES in different modes of operation, using AES-NI and (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: Remove an assertion. ctr->cipher doesn't set *outlen. Created 6 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
« no previous file with comments | « nss.gyp ('k') | nss/lib/freebl/ctr.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 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
2 * 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
3 * 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/. */
4 4
5 #ifndef CTR_H 5 #ifndef CTR_H
6 #define CTR_H 1 6 #define CTR_H 1
7 7
8 #include "blapii.h" 8 #include "blapii.h"
9 9
10 /* This structure is defined in this header because both ctr.c and gcm.c 10 /* This structure is defined in this header because both ctr.c and gcm.c
(...skipping 23 matching lines...) Expand all
34 CTRContext * CTR_CreateContext(void *context, freeblCipherFunc cipher, 34 CTRContext * CTR_CreateContext(void *context, freeblCipherFunc cipher,
35 const unsigned char *param, unsigned int blocksize); 35 const unsigned char *param, unsigned int blocksize);
36 36
37 void CTR_DestroyContext(CTRContext *ctr, PRBool freeit); 37 void CTR_DestroyContext(CTRContext *ctr, PRBool freeit);
38 38
39 SECStatus CTR_Update(CTRContext *ctr, unsigned char *outbuf, 39 SECStatus CTR_Update(CTRContext *ctr, unsigned char *outbuf,
40 unsigned int *outlen, unsigned int maxout, 40 unsigned int *outlen, unsigned int maxout,
41 const unsigned char *inbuf, unsigned int inlen, 41 const unsigned char *inbuf, unsigned int inlen,
42 unsigned int blocksize); 42 unsigned int blocksize);
43 43
44 #ifdef USE_HW_AES
45 SECStatus CTR_Update_HW_AES(CTRContext *ctr, unsigned char *outbuf,
46 unsigned int *outlen, unsigned int maxout,
47 const unsigned char *inbuf, unsigned int inlen,
48 unsigned int blocksize);
44 #endif 49 #endif
50
51 #endif
OLDNEW
« no previous file with comments | « nss.gyp ('k') | nss/lib/freebl/ctr.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698