Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/isc
File: hmacmd5.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/hmacmd5.h
[12] Fix | Delete
* \brief This is the header file for the HMAC-MD5 keyed hash algorithm
[13] Fix | Delete
* described in RFC2104.
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
#ifndef ISC_HMACMD5_H
[17] Fix | Delete
#define ISC_HMACMD5_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <pk11/site.h>
[20] Fix | Delete
[21] Fix | Delete
#ifndef PK11_MD5_DISABLE
[22] Fix | Delete
[23] Fix | Delete
#include <stdbool.h>
[24] Fix | Delete
[25] Fix | Delete
#include <isc/lang.h>
[26] Fix | Delete
#include <isc/md5.h>
[27] Fix | Delete
#include <isc/platform.h>
[28] Fix | Delete
#include <isc/types.h>
[29] Fix | Delete
[30] Fix | Delete
#define ISC_HMACMD5_KEYLENGTH 64
[31] Fix | Delete
[32] Fix | Delete
#ifdef ISC_PLATFORM_OPENSSLHASH
[33] Fix | Delete
#include <openssl/opensslv.h>
[34] Fix | Delete
#include <openssl/hmac.h>
[35] Fix | Delete
[36] Fix | Delete
typedef struct {
[37] Fix | Delete
HMAC_CTX *ctx;
[38] Fix | Delete
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
[39] Fix | Delete
HMAC_CTX _ctx;
[40] Fix | Delete
#endif
[41] Fix | Delete
} isc_hmacmd5_t;
[42] Fix | Delete
[43] Fix | Delete
#elif PKCS11CRYPTO
[44] Fix | Delete
#include <pk11/pk11.h>
[45] Fix | Delete
[46] Fix | Delete
typedef pk11_context_t isc_hmacmd5_t;
[47] Fix | Delete
[48] Fix | Delete
#else
[49] Fix | Delete
[50] Fix | Delete
typedef struct {
[51] Fix | Delete
isc_md5_t md5ctx;
[52] Fix | Delete
unsigned char key[ISC_HMACMD5_KEYLENGTH];
[53] Fix | Delete
} isc_hmacmd5_t;
[54] Fix | Delete
#endif
[55] Fix | Delete
[56] Fix | Delete
ISC_LANG_BEGINDECLS
[57] Fix | Delete
[58] Fix | Delete
void
[59] Fix | Delete
isc_hmacmd5_init(isc_hmacmd5_t *ctx, const unsigned char *key,
[60] Fix | Delete
unsigned int len);
[61] Fix | Delete
[62] Fix | Delete
void
[63] Fix | Delete
isc_hmacmd5_invalidate(isc_hmacmd5_t *ctx);
[64] Fix | Delete
[65] Fix | Delete
void
[66] Fix | Delete
isc_hmacmd5_update(isc_hmacmd5_t *ctx, const unsigned char *buf,
[67] Fix | Delete
unsigned int len);
[68] Fix | Delete
[69] Fix | Delete
void
[70] Fix | Delete
isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest);
[71] Fix | Delete
[72] Fix | Delete
bool
[73] Fix | Delete
isc_hmacmd5_verify(isc_hmacmd5_t *ctx, unsigned char *digest);
[74] Fix | Delete
[75] Fix | Delete
bool
[76] Fix | Delete
isc_hmacmd5_verify2(isc_hmacmd5_t *ctx, unsigned char *digest, size_t len);
[77] Fix | Delete
[78] Fix | Delete
bool
[79] Fix | Delete
isc_hmacmd5_check(int testing);
[80] Fix | Delete
[81] Fix | Delete
ISC_LANG_ENDDECLS
[82] Fix | Delete
[83] Fix | Delete
#endif /* !PK11_MD5_DISABLE */
[84] Fix | Delete
[85] Fix | Delete
#endif /* ISC_HMACMD5_H */
[86] Fix | Delete
[87] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function