md5_private.h revision 2
2N/A/*
2N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
2N/Arights reserved.
2N/A
2N/ALicense to copy and use this software is granted provided that it
2N/Ais identified as the "RSA Data Security, Inc. MD5 Message-Digest
2N/AAlgorithm" in all material mentioning or referencing this software
2N/Aor this function.
2N/A
2N/ALicense is also granted to make and use derivative works provided
2N/Athat such works are identified as "derived from the RSA Data
2N/ASecurity, Inc. MD5 Message-Digest Algorithm" in all material
2N/Amentioning or referencing the derived work.
2N/A
2N/ARSA Data Security, Inc. makes no representations concerning either
2N/Athe merchantability of this software or the suitability of this
2N/Asoftware for any particular purpose. It is provided "as is"
2N/Awithout express or implied warranty of any kind.
2N/AThese notices must be retained in any copies of any part of this
2N/Adocumentation and/or software.
2N/A */
2N/A
2N/A#ifndef _MD5_PRIVATE_H
2N/A#define _MD5_PRIVATE_H
2N/A
2N/A#ifdef _SUN_SDK_
2N/A#ifndef _MD5_H
2N/A#include <md5.h>
2N/A#endif /* _MD5_H */
2N/A
2N/A#define _sasl_MD5Init(md5_ctx) MD5Init(md5_ctx)
2N/A#define _sasl_MD5Update(md5_ctx, s, n) MD5Update(md5_ctx, s, n)
2N/A#define _sasl_MD5Final(b, md5_ctx) MD5Final(b, md5_ctx)
2N/A#else
2N/A/* MD5 context. */
2N/Atypedef struct {
2N/A UINT4 state[4]; /* state (ABCD) */
2N/A UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */
2N/A unsigned char buffer[64]; /* input buffer */
2N/A} MD5_CTX;
2N/A
2N/Avoid _sasl_MD5Init PROTO_LIST ((MD5_CTX *));
2N/Avoid _sasl_MD5Update PROTO_LIST
2N/A ((MD5_CTX *, unsigned char *, unsigned int));
2N/Avoid _sasl_MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
2N/A
2N/Avoid _sasl_hmac_md5 PROTO_LIST ((unsigned char *, int, unsigned char *, int, caddr_t));
2N/A#endif /* _SUN_SDK_ */
2N/A
2N/A#endif /* _MD5_PRIVATE_H */