GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / include / bcmcrypto / bcmtomcrypt.h
blob9297ba3bb4c87d2f93b92ed6cb5031ff615984ab
1 /*
2 * bcmtomcrypt.h - Prototypes for API's interfacing tomcrypt library
4 * Copyright (C) 2012, Broadcom Corporation
5 * All Rights Reserved.
6 *
7 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
8 * the contents of this file may not be disclosed to third parties, copied
9 * or duplicated in any form, in whole or in part, without the prior
10 * written permission of Broadcom Corporation.
12 * $Id: $
14 #ifndef HEADER_BCMTOMCRYPT_H
15 #define HEADER_BCMTOMCRYPT_H
17 #define RSA_KEY_SIZE 1024 /* keysize in bits */
18 #define LTC_PKCS_1_V1_5 1 /* LTC_PKCS #1 v1.5 padding (\sa ltc_pkcs_1_v1_5_blocks) */
20 extern int rsa_make_save_key(char *prng_name, FILE *fprk, FILE *fpbk, FILE *fpn, int size, long e);
21 extern int rsa_hash_sign_hash(FILE *in, FILE *pk, unsigned char *out, unsigned long *outlen,
22 int padding, char *hash_name);
23 extern int rsa_image_verify_hash(unsigned char *msg, unsigned long msgsz, unsigned char *pkb,
24 unsigned long pkbsz, unsigned char *sig, unsigned long siglen,
25 int padding, char *hash_name, int *stat);
26 extern const char *error_to_string(int err);
28 #endif /* HEADER_BCMTOMCRYPT_H */