Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/isc
File: md5.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
/*! \file isc/md5.h
[12] Fix | Delete
* \brief This is the header file for the MD5 message-digest algorithm.
[13] Fix | Delete
*
[14] Fix | Delete
* The algorithm is due to Ron Rivest. This code was
[15] Fix | Delete
* written by Colin Plumb in 1993, no copyright is claimed.
[16] Fix | Delete
* This code is in the public domain; do with it what you wish.
[17] Fix | Delete
*
[18] Fix | Delete
* Equivalent code is available from RSA Data Security, Inc.
[19] Fix | Delete
* This code has been tested against that, and is equivalent,
[20] Fix | Delete
* except that you don't need to include two pages of legalese
[21] Fix | Delete
* with every copy.
[22] Fix | Delete
*
[23] Fix | Delete
* To compute the message digest of a chunk of bytes, declare an
[24] Fix | Delete
* MD5Context structure, pass it to MD5Init, call MD5Update as
[25] Fix | Delete
* needed on buffers full of bytes, and then call MD5Final, which
[26] Fix | Delete
* will fill a supplied 16-byte array with the digest.
[27] Fix | Delete
*
[28] Fix | Delete
* Changed so as no longer to depend on Colin Plumb's `usual.h'
[29] Fix | Delete
* header definitions; now uses stuff from dpkg's config.h
[30] Fix | Delete
* - Ian Jackson <ijackson@nyx.cs.du.edu>.
[31] Fix | Delete
* Still in the public domain.
[32] Fix | Delete
*/
[33] Fix | Delete
[34] Fix | Delete
#ifndef ISC_MD5_H
[35] Fix | Delete
#define ISC_MD5_H 1
[36] Fix | Delete
[37] Fix | Delete
#include <pk11/site.h>
[38] Fix | Delete
[39] Fix | Delete
#ifndef PK11_MD5_DISABLE
[40] Fix | Delete
[41] Fix | Delete
#include <stdbool.h>
[42] Fix | Delete
[43] Fix | Delete
#include <isc/lang.h>
[44] Fix | Delete
#include <isc/platform.h>
[45] Fix | Delete
#include <isc/types.h>
[46] Fix | Delete
[47] Fix | Delete
#define ISC_MD5_DIGESTLENGTH 16U
[48] Fix | Delete
#define ISC_MD5_BLOCK_LENGTH 64U
[49] Fix | Delete
[50] Fix | Delete
#ifdef ISC_PLATFORM_OPENSSLHASH
[51] Fix | Delete
#include <openssl/opensslv.h>
[52] Fix | Delete
#include <openssl/evp.h>
[53] Fix | Delete
[54] Fix | Delete
typedef struct {
[55] Fix | Delete
EVP_MD_CTX *ctx;
[56] Fix | Delete
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
[57] Fix | Delete
EVP_MD_CTX _ctx;
[58] Fix | Delete
#endif
[59] Fix | Delete
} isc_md5_t;
[60] Fix | Delete
[61] Fix | Delete
#elif PKCS11CRYPTO
[62] Fix | Delete
#include <pk11/pk11.h>
[63] Fix | Delete
[64] Fix | Delete
typedef pk11_context_t isc_md5_t;
[65] Fix | Delete
[66] Fix | Delete
#else
[67] Fix | Delete
[68] Fix | Delete
typedef struct {
[69] Fix | Delete
uint32_t buf[4];
[70] Fix | Delete
uint32_t bytes[2];
[71] Fix | Delete
uint32_t in[16];
[72] Fix | Delete
} isc_md5_t;
[73] Fix | Delete
#endif
[74] Fix | Delete
[75] Fix | Delete
ISC_LANG_BEGINDECLS
[76] Fix | Delete
[77] Fix | Delete
void
[78] Fix | Delete
isc_md5_init(isc_md5_t *ctx);
[79] Fix | Delete
[80] Fix | Delete
void
[81] Fix | Delete
isc_md5_invalidate(isc_md5_t *ctx);
[82] Fix | Delete
[83] Fix | Delete
void
[84] Fix | Delete
isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len);
[85] Fix | Delete
[86] Fix | Delete
void
[87] Fix | Delete
isc_md5_final(isc_md5_t *ctx, unsigned char *digest);
[88] Fix | Delete
[89] Fix | Delete
bool
[90] Fix | Delete
isc_md5_check(bool testing);
[91] Fix | Delete
[92] Fix | Delete
bool
[93] Fix | Delete
isc_md5_available(void);
[94] Fix | Delete
[95] Fix | Delete
ISC_LANG_ENDDECLS
[96] Fix | Delete
[97] Fix | Delete
#endif /* !PK11_MD5_DISABLE */
[98] Fix | Delete
[99] Fix | Delete
#endif /* ISC_MD5_H */
[100] Fix | Delete
[101] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function