Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

beecrypt/endianness.h File Reference

#include "beecrypt.h"
#include <stdio.h>

Go to the source code of this file.

Functions

int16 swap16 (int16 n)
uint16 swapu16 (uint16 n)
int32 swap32 (int32 n)
uint32 swapu32 (uint32 n)
int64 swap64 (int64 n)
int encodeByte (javabyte b, byte *data)
int encodeShort (javashort s, byte *data)
int encodeInt (javaint i, byte *data)
int encodeLong (javalong l, byte *data)
int encodeChar (javachar c, byte *data)
int encodeFloat (javafloat f, byte *data)
int encodeDouble (javadouble d, byte *data)
int encodeInts (const javaint *i, byte *data, int count)
int encodeIntsPartial (const javaint *i, byte *data, int bytecount)
int encodeIntsPartialPad (const javaint *i, byte *data, int bytecount, byte padvalue)
int encodeChars (const javachar *c, byte *data, int count)
int decodeByte (javabyte *b, const byte *data)
int decodeShort (javashort *s, const byte *data)
int decodeInt (javaint *i, const byte *data)
int decodeLong (javalong *l, const byte *data)
int decodeChar (javachar *c, const byte *data)
int decodeFloat (javafloat *f, const byte *data)
int decodeDouble (javadouble *d, const byte *data)
int decodeInts (javaint *i, const byte *data, int count)
int decodeIntsPartial (javaint *i, const byte *data, int bytecount)
int decodeChars (javachar *c, const byte *data, int count)
int writeByte (javabyte b, FILE *ofp)
int writeShort (javashort s, FILE *ofp)
int writeInt (javaint i, FILE *ofp)
int writeLong (javalong l, FILE *ofp)
int writeChar (javachar c, FILE *ofp)
int writeInts (const javaint *i, FILE *ofp, int count)
int writeChars (const javachar *c, FILE *ofp, int count)
int readByte (javabyte *b, FILE *ifp)
int readShort (javashort *s, FILE *ifp)
int readInt (javaint *i, FILE *ifp)
int readLong (javalong *l, FILE *ifp)
int readChar (javachar *c, FILE *ifp)
int readInts (javaint *i, FILE *ifp, int count)
int readChars (javachar *c, FILE *ifp, int count)


Function Documentation

int decodeByte javabyte   b,
const byte   data
 

Definition at line 251 of file endianness.c.

References BEECRYPTAPI, javabyte, javachar, javaint, javalong, and javashort.

int decodeChar javachar   c,
const byte   data
 

Definition at line 331 of file endianness.c.

References BEECRYPTAPI, javachar, and javalong.

int decodeChars javachar   c,
const byte   data,
int    count
 

Definition at line 392 of file endianness.c.

int decodeDouble javadouble   d,
const byte   data
 

Definition at line 316 of file endianness.c.

References BEECRYPTAPI, javaint, and javashort.

int decodeFloat javafloat   f,
const byte   data
 

Definition at line 301 of file endianness.c.

References BEECRYPTAPI, javabyte, javachar, and javaint.

int decodeInt javaint   i,
const byte   data
 

Definition at line 273 of file endianness.c.

int decodeInts javaint   i,
const byte   data,
int    count
 

Definition at line 345 of file endianness.c.

References BEECRYPTAPI, javachar, and javaint.

int decodeIntsPartial javaint   i,
const byte   data,
int    bytecount
 

Definition at line 364 of file endianness.c.

int decodeLong javalong   l,
const byte   data
 

Definition at line 287 of file endianness.c.

References BEECRYPTAPI, and javachar.

int decodeShort javashort   s,
const byte   data
 

Definition at line 259 of file endianness.c.

int encodeByte javabyte    b,
byte   data
 

Definition at line 84 of file endianness.c.

Referenced by encodeFloat.

int encodeChar javachar    c,
byte   data
 

Definition at line 155 of file endianness.c.

References BEECRYPTAPI, and javachar.

int encodeChars const javachar   c,
byte   data,
int    count
 

Definition at line 232 of file endianness.c.

References BEECRYPTAPI, javadouble, javafloat, and javaint.

int encodeDouble javadouble    d,
byte   data
 

Definition at line 140 of file endianness.c.

int encodeFloat javafloat    f,
byte   data
 

Definition at line 125 of file endianness.c.

References BEECRYPTAPI, encodeByte, encodeInt, encodeLong, encodeShort, javabyte, javaint, javalong, and javashort.

int encodeInt javaint    i,
byte   data
 

Definition at line 103 of file endianness.c.

References int16, int32, and uint16.

Referenced by encodeFloat.

int encodeInts const javaint   i,
byte   data,
int    count
 

Definition at line 166 of file endianness.c.

References BEECRYPTAPI, javadouble, javafloat, and javaint.

Referenced by hashFunctionContextUpdateMP32, hmacDigest, hmacSetup, and keyedHashFunctionContextUpdateMP32.

int encodeIntsPartial const javaint   i,
byte   data,
int    bytecount
 

Definition at line 185 of file endianness.c.

References BEECRYPTAPI, javabyte, javachar, javaint, javalong, and javashort.

Referenced by hmacSetup.

int encodeIntsPartialPad const javaint   i,
byte   data,
int    bytecount,
byte    padvalue
 

Definition at line 206 of file endianness.c.

int encodeLong javalong    l,
byte   data
 

Definition at line 114 of file endianness.c.

References int64, and uint32.

Referenced by encodeFloat.

int encodeShort javashort    s,
byte   data
 

Definition at line 92 of file endianness.c.

Referenced by encodeFloat.

int readByte javabyte   b,
FILE *    ifp
 

Definition at line 410 of file endianness.c.

int readChar javachar   c,
FILE *    ifp
 

Definition at line 461 of file endianness.c.

int readChars javachar   c,
FILE *    ifp,
int    count
 

Definition at line 495 of file endianness.c.

int readInt javaint   i,
FILE *    ifp
 

Definition at line 431 of file endianness.c.

int readInts javaint   i,
FILE *    ifp,
int    count
 

Definition at line 476 of file endianness.c.

int readLong javalong   l,
FILE *    ifp
 

Definition at line 446 of file endianness.c.

int readShort javashort   s,
FILE *    ifp
 

Definition at line 416 of file endianness.c.

int16 swap16 int16    n
 

Definition at line 31 of file endianness.c.

References int16.

Referenced by decodeShort, encodeShort, readChars, readShort, writeChar, and writeShort.

int32 swap32 int32    n
 

Definition at line 43 of file endianness.c.

Referenced by decodeInt, decodeInts, decodeIntsPartial, encodeInt, encodeInts, encodeIntsPartial, encodeIntsPartialPad, readInt, readInts, and writeInt.

int64 swap64 int64    n
 

Definition at line 59 of file endianness.c.

Referenced by decodeLong, encodeLong, readLong, and writeLong.

uint16 swapu16 uint16    n
 

Definition at line 37 of file endianness.c.

Referenced by decodeChar, decodeChars, encodeChar, encodeChars, and readChar.

uint32 swapu32 uint32    n
 

Definition at line 51 of file endianness.c.

Referenced by aesDecrypt, aesEncrypt, b64crc, blowfishDecrypt, blowfishEncrypt, blowfishSetup, md5Finish, md5Process, pgpPrtPubkeyParams, rpmDigestFinal, sha1Finish, sha1Process, sha256Finish, and sha256Process.

int writeByte javabyte    b,
FILE *    ofp
 

Definition at line 513 of file endianness.c.

int writeChar javachar    c,
FILE *    ofp
 

Definition at line 550 of file endianness.c.

Referenced by writeChars.

int writeChars const javachar   c,
FILE *    ofp,
int    count
 

Definition at line 579 of file endianness.c.

int writeInt javaint    i,
FILE *    ofp
 

Definition at line 530 of file endianness.c.

Referenced by writeInts.

int writeInts const javaint   i,
FILE *    ofp,
int    count
 

Definition at line 560 of file endianness.c.

int writeLong javalong    l,
FILE *    ofp
 

Definition at line 540 of file endianness.c.

int writeShort javashort    s,
FILE *    ofp
 

Definition at line 520 of file endianness.c.


Generated on Tue Sep 17 16:00:01 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002