Changeset 853603a for tools/traceanon


Ignore:
Timestamp:
05/29/06 14:08:00 (15 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
0eef5d4
Parents:
f208f92
Message:

Migrate tools to the new API

Location:
tools/traceanon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/traceanon/rijndael.h

    r41b53c2 r853603a  
    22#define _RIJNDAEL_H_
    33
    4 // $Id$
     4/* $Id$
    55//
    66// File : rijndael.h
     
    1212// This code is public domain.
    1313// Based on the Vincent Rijmen and K.U.Leuven implementation 2.4.
    14 //
     14*/
    1515
    16 //
     16/*
    1717// Original Copyright notice:
    1818//
     
    3030//
    3131//    This code is placed in the public domain.
    32 //
     32*/
    3333
    34 //
     34/*
    3535// This implementation works on 128 , 192 , 256 bit keys
    3636// and on 128 bit blocks
    37 //
     37*/
    3838
    39 //
     39/*
    4040// Example of usage:
    4141//
     
    6262//  if(len >= 0)useYourDecryptedText();
    6363//  else decryptError(len);
    64 //
     64*/
    6565
    6666#define _MAX_KEY_COLUMNS (256/32)
     
    6868#define MAX_IV_SIZE      16
    6969
    70 // We assume that unsigned int is 32 bits long....
     70/* We assume that unsigned int is 32 bits long....  */
    7171typedef unsigned char  UINT8;
    7272typedef unsigned int   UINT32;
    7373typedef unsigned short UINT16;
    7474
    75 // Error codes
     75/* Error codes */
    7676#define RIJNDAEL_SUCCESS 0
    7777#define RIJNDAEL_UNSUPPORTED_MODE -1
     
    8383#define RIJNDAEL_CORRUPTED_DATA -7
    8484
    85 //class Rijndael
     85/*class Rijndael
    8686//{     
    8787//public:
     88*/
    8889
    8990enum Direction_e { Encrypt , Decrypt };
     
    9798typedef enum State_e State;
    9899
    99 //
     100/*
    100101// Creates a Rijndael cipher object
    101102// You have to call init() before you can encrypt or decrypt stuff
     
    158159void r_decrypt(const UINT8 a[16], UINT8 b[16]);
    159160//};
     161*/
    160162       
    161 #endif // _RIJNDAEL_H_
     163#endif /* _RIJNDAEL_H_ */
  • tools/traceanon/traceanon.c

    r3d4fb8f r853603a  
    207207                }
    208208        }
    209         trace_destroy_packet(&packet);
     209        trace_destroy_packet(packet);
    210210        trace_destroy(trace);
    211211        trace_destroy_output(writer);
Note: See TracChangeset for help on using the changeset viewer.