X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=libjava%2Fgnu%2Fgcj%2Fio%2Fshs.h;fp=libjava%2Fgnu%2Fgcj%2Fio%2Fshs.h;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=1b435c5df8e3562bf92e9ba70b7c5774c9717b3f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/libjava/gnu/gcj/io/shs.h b/libjava/gnu/gcj/io/shs.h deleted file mode 100644 index 1b435c5d..00000000 --- a/libjava/gnu/gcj/io/shs.h +++ /dev/null @@ -1,65 +0,0 @@ -/* --------------------------------- SHS.H ------------------------------- */ - -/* - * NIST proposed Secure Hash Standard. - * - * Written 2 September 1992, Peter C. Gutmann. - * This implementation placed in the public domain. - * - * Comments to pgut1@cs.aukuni.ac.nz - */ - -/* Useful defines/typedefs */ - -#ifndef SHS_H -#define SHS_H - -#include -#if HAVE_INTTYPES_H -# include -#else -# if HAVE_STDINT_H -# include -# else -typedef unsigned int uint8_t __attribute__((mode(QI))); -/* This is a blatant hack: on Solaris 2.5, pthread.h defines uint32_t - in pthread.h, which we sometimes include. We protect our - definition the same way Solaris 2.5 does, to avoid redefining it. */ -# ifndef _UINT32_T -typedef unsigned int uint32_t __attribute__((mode(SI))); -# endif -# endif -#endif - -/* The SHS block size and message digest sizes, in bytes */ - -#define SHS_BLOCKSIZE 64 -#define SHS_DIGESTSIZE 20 - -/* The structure for storing SHS info */ - -typedef struct { - uint32_t digest [5]; /* Message digest */ - uint32_t countLo, countHi; /* 64-bit bit count */ - uint32_t data [16]; /* SHS data buffer */ -} SHS_INFO; - -/* Turn off prototypes if requested */ -#if (defined(NOPROTO) && defined(PROTO)) -# undef PROTO -#endif - -/* Used to remove arguments in function prototypes for non-ANSI C */ -#ifdef PROTO -# define OF(a) a -#else /* !PROTO */ -# define OF(a) () -#endif /* ?PROTO */ - -#define local static - -void shsInit OF((SHS_INFO *shsInfo)); -void shsUpdate OF((SHS_INFO *shsInfo, uint8_t *buffer, int count)); -void shsFinal OF((SHS_INFO *shsInfo)); - -#endif