crypto/weakcrypto/test/tasymmetric/script_gen/utils.h
changeset 71 dd83586b62d6
equal deleted inserted replaced
66:8873e6835f7b 71:dd83586b62d6
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23 */
       
    24 
       
    25 #ifndef __utils_h
       
    26 #define __utils_h
       
    27 
       
    28 #include <openssl/bn.h>
       
    29 
       
    30 #ifndef BOOL
       
    31 #define BOOL int
       
    32 #define TRUE 1
       
    33 #define FALSE 0
       
    34 #endif
       
    35 
       
    36 void printBN(BIGNUM* bn);
       
    37 void printBin(char* data, int len);
       
    38 void printActionHeader(char* name, char* type);
       
    39 void printActionFooter(BOOL passes);
       
    40 void printHexElement(char* name, unsigned char* data, int len);
       
    41 void printBNElement(char* name, BIGNUM* num);
       
    42 void scramble(unsigned char* data, int len);
       
    43 void processError();
       
    44 void setOurRandom();
       
    45 void testOurRandom();
       
    46 void printCBin(char* varname, unsigned char* data, int len);
       
    47 void printCBN(char* varname, BIGNUM* bignum);
       
    48 
       
    49 #endif