sum-lmd.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1996-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* sum(3) wrapper for solaris -lmd message digest library
*/
typedef void (*Lmd_init_f)(void*);
typedef void (*Lmd_update_f)(void*, const void*, size_t);
typedef void (*Lmd_final_f)(unsigned char*, void*);
#define _SUM_LMD_ \
Lmd_init_f initf; \
unsigned int datasize; \
unsigned char total[64]; \
unsigned char data[64];
typedef struct Lmd_s
{
struct
{
} context;
} Lmd_t;
static int
{
return 0;
}
static int
{
return 0;
}
static int
{
register int i;
return 0;
}
static int
{
register unsigned char* d;
register int i;
return 0;
}
static int
{
return 0;
}
#if _lib_MD4Init && _hdr_md4
#include <md4.h>
#define md4_description "RFC1320 MD4 message digest. Cryptographically weak. The block count is not printed."
#define md4_options "[+(version)?md4 (solaris -lmd) 2005-07-26]"
#define md4_match "md4|MD4"
#define md4_scale 0
typedef struct Md4_s
{
} Md4_t;
static Sum_t*
{
{
}
}
#endif
#if _lib_MD5Init && _hdr_md5
#include <md5.h>
#define md5_description "RFC1321 MD5 message digest. Cryptographically weak. The block count is not printed."
#define md5_options "[+(version)?md5 (solaris -lmd) 2005-07-26]"
#define md5_match "md5|MD5"
#define md5_scale 0
typedef struct Md5_s
{
} Md5_t;
static Sum_t*
{
{
}
}
#endif
#if _lib_SHA1Init && _hdr_sha1
#include <sha1.h>
#define sha1_description "RFC3174 / FIPS 180-1 SHA-1 secure hash algorithm 1. Cryptographically weak. The block count is not printed."
#define sha1_options "[+(version)?sha1 (solaris -lmd) 2005-07-26]"
#define sha1_match "sha1|SHA1|sha-1|SHA-1"
#define sha1_scale 0
#define sha1_block lmd_block
#define sha1_print lmd_print
typedef struct Sha1_s
{
} Sha1_t;
static Sum_t*
{
{
}
}
#endif
#if _lib_SHA2Init && _hdr_sha2
#include <sha2.h>
#define sha256_description "FIPS 180-2 SHA256 secure hash algorithm. The block count is not printed."
#define sha256_options "[+(version)?sha256 (solaris -lmd) 2005-07-26]"
#define sha256_match "sha256|sha-256|SHA256|SHA-256"
#define sha256_scale 0
#define sha256_init lmd_init
#define sha256_block lmd_block
#define sha256_done lmd_done
#define sha256_print lmd_print
#define sha256_data lmd_data
typedef struct Sha256_s
{
} Sha256_t;
static Sum_t*
{
{
}
}
#define sha384_description "FIPS 180-2 SHA384 secure hash algorithm. The block count is not printed."
#define sha384_options "[+(version)?sha384 (solaris -lmd) 2005-07-26]"
#define sha384_match "sha384|sha-384|SHA384|SHA-384"
#define sha384_scale 0
#define sha384_init lmd_init
#define sha384_block lmd_block
#define sha384_done lmd_done
#define sha384_print lmd_print
#define sha384_data lmd_data
typedef struct Sha384_s
{
} Sha384_t;
static Sum_t*
{
{
}
}
#define sha512_description "FIPS 180-2 SHA512 secure hash algorithm. The block count is not printed."
#define sha512_options "[+(version)?sha512 (solaris -lmd) 2005-07-26]"
#define sha512_match "sha512|sha-512|SHA512|SHA-512"
#define sha512_scale 0
#define sha512_init lmd_init
#define sha512_block lmd_block
#define sha512_done lmd_done
#define sha512_print lmd_print
#define sha512_data lmd_data
typedef struct Sha512_s
{
} Sha512_t;
static Sum_t*
{
{
}
}
#endif