diff -r 675a964f4eb5 -r 35751d3474b7 crypto/weakcryptospi/test/tasymmetric/script_gen/utils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/crypto/weakcryptospi/test/tasymmetric/script_gen/utils.h Thu Sep 10 14:01:51 2009 +0300 @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + +/** + @file +*/ + +#ifndef __utils_h +#define __utils_h + +#include + +#ifndef BOOL +#define BOOL int +#define TRUE 1 +#define FALSE 0 +#endif + +void printBN(BIGNUM* bn); +void printBin(char* data, int len); +void printActionHeader(char* name, char* type); +void printActionFooter(BOOL passes); +void printHexElement(char* name, unsigned char* data, int len); +void printBNElement(char* name, BIGNUM* num); +void scramble(unsigned char* data, int len); +void processError(); +void setOurRandom(); +void testOurRandom(); +void printCBin(char* varname, unsigned char* data, int len); +void printCBN(char* varname, BIGNUM* bignum); + +#endif