PATH: //usr/include/bind9/isc
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 aes.h
↓
X
📄 align.h
↓
X
📄 app.h
↓
X
📄 assertions.h
↓
X
📄 astack.h
↓
X
📄 atomic.h
↓
X
📄 backtrace.h
↓
X
📄 barrier.h
↓
X
📄 base32.h
↓
X
📄 base64.h
↓
X
📄 bind9.h
↓
X
📄 buffer.h
↓
X
📄 bufferlist.h
↓
X
📄 cmocka.h
↓
X
📄 commandline.h
↓
X
📄 condition.h
↓
X
📄 counter.h
↓
X
📄 crc64.h
↓
X
📄 deprecated.h
↓
X
📄 dir.h
↓
X
📄 endian.h
↓
X
📄 errno.h
↓
X
📄 errno2result.h
↓
X
📄 error.h
↓
X
📄 event.h
↓
X
📄 eventclass.h
↓
X
📄 file.h
↓
X
📄 formatcheck.h
↓
X
📄 fsaccess.h
↓
X
📄 fuzz.h
↓
X
📄 hash.h
↓
X
📄 heap.h
↓
X
📄 hex.h
↓
X
📄 hmac.h
↓
X
📄 hp.h
↓
X
📄 ht.h
↓
X
📄 httpd.h
↓
X
📄 interfaceiter.h
↓
X
📄 iterated_hash.h
↓
X
📄 lang.h
↓
X
📄 lex.h
↓
X
📄 lfsr.h
↓
X
📄 lib.h
↓
X
📄 likely.h
↓
X
📄 list.h
↓
X
📄 log.h
↓
X
📄 magic.h
↓
X
📄 managers.h
↓
X
📄 md.h
↓
X
📄 mem.h
↓
X
📄 meminfo.h
↓
X
📄 mutex.h
↓
X
📄 mutexatomic.h
↓
X
📄 mutexblock.h
↓
X
📄 net.h
↓
X
📄 netaddr.h
↓
X
📄 netdb.h
↓
X
📄 netmgr.h
↓
X
📄 netscope.h
↓
X
📄 nonce.h
↓
X
📄 offset.h
↓
X
📄 once.h
↓
X
📄 os.h
↓
X
📄 parseint.h
↓
X
📄 platform.h
↓
X
📄 pool.h
↓
X
📄 portset.h
↓
X
📄 print.h
↓
X
📄 queue.h
↓
X
📄 quota.h
↓
X
📄 radix.h
↓
X
📄 random.h
↓
X
📄 ratelimiter.h
↓
X
📄 refcount.h
↓
X
📄 regex.h
↓
X
📄 region.h
↓
X
📄 resource.h
↓
X
📄 result.h
↓
X
📄 resultclass.h
↓
X
📄 rwlock.h
↓
X
📄 safe.h
↓
X
📄 serial.h
↓
X
📄 siphash.h
↓
X
📄 sockaddr.h
↓
X
📄 socket.h
↓
X
📄 stat.h
↓
X
📄 stats.h
↓
X
📄 stdatomic.h
↓
X
📄 stdio.h
↓
X
📄 stdtime.h
↓
X
📄 strerr.h
↓
X
📄 string.h
↓
X
📄 symtab.h
↓
X
📄 syslog.h
↓
X
📄 task.h
↓
X
📄 taskpool.h
↓
X
📄 thread.h
↓
X
📄 time.h
↓
X
📄 timer.h
↓
X
📄 tm.h
↓
X
📄 types.h
↓
X
📄 url.h
↓
X
📄 utf8.h
↓
X
📄 util.h
↓
X
📄 version.h
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: md.h
/* * Copyright (C) Internet Systems Consortium, Inc. ("ISC") * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at https://mozilla.org/MPL/2.0/. * * See the COPYRIGHT file distributed with this work for additional * information regarding copyright ownership. */ /*! * \file isc/md.h * \brief This is the header file for message digest algorithms. */ #pragma once #include <isc/lang.h> #include <isc/platform.h> #include <isc/result.h> #include <isc/types.h> typedef void isc_md_t; /** * isc_md_type_t: * @ISC_MD_MD5: MD5 * @ISC_MD_SHA1: SHA-1 * @ISC_MD_SHA224: SHA-224 * @ISC_MD_SHA256: SHA-256 * @ISC_MD_SHA384: SHA-384 * @ISC_MD_SHA512: SHA-512 * * Enumeration of supported message digest algorithms. */ typedef void isc_md_type_t; #define ISC_MD_MD5 isc__md_md5() #define ISC_MD_SHA1 isc__md_sha1() #define ISC_MD_SHA224 isc__md_sha224() #define ISC_MD_SHA256 isc__md_sha256() #define ISC_MD_SHA384 isc__md_sha384() #define ISC_MD_SHA512 isc__md_sha512() const isc_md_type_t * isc__md_md5(void); const isc_md_type_t * isc__md_sha1(void); const isc_md_type_t * isc__md_sha224(void); const isc_md_type_t * isc__md_sha256(void); const isc_md_type_t * isc__md_sha384(void); const isc_md_type_t * isc__md_sha512(void); #define ISC_MD5_DIGESTLENGTH isc_md_type_get_size(ISC_MD_MD5) #define ISC_MD5_BLOCK_LENGTH isc_md_type_get_block_size(ISC_MD_MD5) #define ISC_SHA1_DIGESTLENGTH isc_md_type_get_size(ISC_MD_SHA1) #define ISC_SHA1_BLOCK_LENGTH isc_md_type_get_block_size(ISC_MD_SHA1) #define ISC_SHA224_DIGESTLENGTH isc_md_type_get_size(ISC_MD_SHA224) #define ISC_SHA224_BLOCK_LENGTH isc_md_type_get_block_size(ISC_MD_SHA224) #define ISC_SHA256_DIGESTLENGTH isc_md_type_get_size(ISC_MD_SHA256) #define ISC_SHA256_BLOCK_LENGTH isc_md_type_get_block_size(ISC_MD_SHA256) #define ISC_SHA384_DIGESTLENGTH isc_md_type_get_size(ISC_MD_SHA384) #define ISC_SHA384_BLOCK_LENGTH isc_md_type_get_block_size(ISC_MD_SHA384) #define ISC_SHA512_DIGESTLENGTH isc_md_type_get_size(ISC_MD_SHA512) #define ISC_SHA512_BLOCK_LENGTH isc_md_type_get_block_size(ISC_MD_SHA512) #define ISC_MAX_MD_SIZE 64U /* EVP_MAX_MD_SIZE */ #define ISC_MAX_BLOCK_SIZE 128U /* ISC_SHA512_BLOCK_LENGTH */ /** * isc_md: * @type: the digest type * @buf: the data to hash * @len: the length of the data to hash * @digest: the output buffer * @digestlen: the length of the data written to @digest * * This function hashes @len bytes of data at @buf and places the result in * @digest. If the @digestlen parameter is not NULL then the number of bytes of * data written (i.e. the length of the digest) will be written to the integer * at @digestlen, at most ISC_MAX_MD_SIZE bytes will be written. */ isc_result_t isc_md(const isc_md_type_t *type, const unsigned char *buf, const size_t len, unsigned char *digest, unsigned int *digestlen); /** * isc_md_new: * * This function allocates, initializes and returns a digest context. */ isc_md_t * isc_md_new(void); /** * isc_md_free: * @md: message digest context * * This function cleans up digest context ctx and frees up the space allocated * to it. */ void isc_md_free(isc_md_t *); /** * isc_md_init: * @md: message digest context * @type: digest type * * This function sets up digest context @md to use a digest @type. @md must be * initialized before calling this function. */ isc_result_t isc_md_init(isc_md_t *, const isc_md_type_t *md_type); /** * isc_md_reset: * @md: message digest context * * This function resets the digest context ctx. This can be used to reuse an * already existing context. */ isc_result_t isc_md_reset(isc_md_t *md); /** * isc_md_update: * @md: message digest context * @buf: data to hash * @len: length of the data to hash * * This function hashes @len bytes of data at @buf into the digest context @md. * This function can be called several times on the same @md to hash additional * data. */ isc_result_t isc_md_update(isc_md_t *md, const unsigned char *buf, const size_t len); /** * isc_md_final: * @md: message digest context * @digest: the output buffer * @digestlen: the length of the data written to @digest * * This function retrieves the digest value from @md and places it in @digest. * If the @digestlen parameter is not NULL then the number of bytes of data * written (i.e. the length of the digest) will be written to the integer at * @digestlen, at most ISC_MAX_MD_SIZE bytes will be written. After calling * this function no additional calls to isc_md_update() can be made. */ isc_result_t isc_md_final(isc_md_t *md, unsigned char *digest, unsigned int *digestlen); /** * isc_md_get_type: * @md: message digest contezt * * This function return the isc_md_type_t previously set for the supplied * message digest context or NULL if no isc_md_type_t has been set. */ const isc_md_type_t * isc_md_get_md_type(isc_md_t *md); /** * isc_md_size: * * This function return the size of the message digest when passed an isc_md_t * structure, i.e. the size of the hash. */ size_t isc_md_get_size(isc_md_t *md); /** * isc_md_block_size: * * This function return the block size of the message digest when passed an * isc_md_t structure. */ size_t isc_md_get_block_size(isc_md_t *md); /** * isc_md_size: * * This function return the size of the message digest when passed an * isc_md_type_t , i.e. the size of the hash. */ size_t isc_md_type_get_size(const isc_md_type_t *md_type); /** * isc_md_block_size: * * This function return the block size of the message digest when passed an * isc_md_type_t. */ size_t isc_md_type_get_block_size(const isc_md_type_t *md_type);
SIMPAN PERUBAHAN