sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: */ sl@0: sl@0: #ifndef __utils_h sl@0: #define __utils_h sl@0: sl@0: #include <openssl/bn.h> sl@0: sl@0: #ifndef BOOL sl@0: #define BOOL int sl@0: #define TRUE 1 sl@0: #define FALSE 0 sl@0: #endif sl@0: sl@0: void printBN(BIGNUM* bn); sl@0: void printBin(char* data, int len); sl@0: void printActionHeader(char* name, char* type); sl@0: void printActionFooter(BOOL passes); sl@0: void printHexElement(char* name, unsigned char* data, int len); sl@0: void printBNElement(char* name, BIGNUM* num); sl@0: void scramble(unsigned char* data, int len); sl@0: void processError(); sl@0: void setOurRandom(); sl@0: void testOurRandom(); sl@0: void printCBin(char* varname, unsigned char* data, int len); sl@0: void printCBN(char* varname, BIGNUM* bignum); sl@0: sl@0: #endif