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

Side by Side Diff: src/trusted/validator/caching/hashing_interface.h

Issue 9430028: Add function for generating validation signatures. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 8 years, 10 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
(Empty)
1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_CACHING_HASHING_INTERFACE_H_
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_CACHING_HASHING_INTERFACE_H_
9
10 #include "native_client/src/include/nacl_base.h"
11
12 EXTERN_C_BEGIN
13
14 struct HashingInterface {
15 void *(*create)(const unsigned char *key, const unsigned int length);
bsy 2012/02/22 01:43:35 key length should not be an input parameter per se
Nick Bray (chromium) 2012/02/22 03:07:28 1) HMAC is spec'ed to accept keys of arbitrary siz
bsy 2012/02/22 18:28:15 just because hmac is spec'd to accept keys of arbi
16 void (*update)(void *ctx, const unsigned char *data,
17 const unsigned int length);
18 void (*end)(void *ctx, unsigned char *data, unsigned int *length,
bsy 2012/02/22 01:43:35 suggest use common terminology -- instead of "end"
Nick Bray (chromium) 2012/02/22 03:07:28 Done.
19 const unsigned int max_length);
bsy 2012/02/22 01:43:35 max usable max_length is also a hash parameter. m
Nick Bray (chromium) 2012/02/22 03:07:28 I don't follow.
bsy 2012/02/22 18:28:15 the max length input parameter is the buffer size
20 };
21
22 EXTERN_C_END
23
24 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_CACHING_HASHING_INTERFACE_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698