/freebsd-10.3-release/contrib/subversion/subversion/libsvn_subr/ |
H A D | checksum.c | 2 * checksum.c: checksum routines 69 svn_checksum_t *checksum = apr_palloc(pool, sizeof(*checksum) + digest_size); 70 checksum->digest = (unsigned char *)checksum + sizeof(*checksum); 71 checksum->kind = kind; 72 return checksum; 81 svn_checksum_t *checksum 68 svn_checksum_t *checksum = apr_palloc(pool, sizeof(*checksum) + digest_size); local 80 svn_checksum_t *checksum = checksum_create_without_digest(kind, digest_size, local 90 svn_checksum_t *checksum; local 127 svn_checksum_clear(svn_checksum_t *checksum) argument 158 svn_checksum_to_cstring_display(const svn_checksum_t *checksum, apr_pool_t *pool) argument 174 svn_checksum_to_cstring(const svn_checksum_t *checksum, apr_pool_t *pool) argument 194 svn_checksum_serialize(const svn_checksum_t *checksum, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument 211 svn_checksum_deserialize(const svn_checksum_t **checksum, const char *data, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument 232 svn_checksum_parse_hex(svn_checksum_t **checksum, svn_checksum_kind_t kind, const char *hex, apr_pool_t *pool) argument 290 svn_checksum_dup(const svn_checksum_t *checksum, apr_pool_t *pool) argument 317 svn_checksum(svn_checksum_t **checksum, svn_checksum_kind_t kind, const void *data, apr_size_t len, apr_pool_t *pool) argument 425 svn_checksum_final(svn_checksum_t **checksum, const svn_checksum_ctx_t *ctx, apr_pool_t *pool) argument 450 svn_checksum_size(const svn_checksum_t *checksum) argument 479 svn_checksum_is_empty_checksum(svn_checksum_t *checksum) argument [all...] |
H A D | adler32.c | 45 * Start with CHECKSUM and update the checksum by processing a chunk 49 svn__adler32(apr_uint32_t checksum, const char *data, apr_off_t len) argument 64 return (apr_uint32_t)adler32(checksum, 71 apr_uint32_t s1 = checksum & 0xFFFF; 72 apr_uint32_t s2 = checksum >> 16;
|
/freebsd-10.3-release/contrib/subversion/subversion/include/private/ |
H A D | svn_adler32.h | 38 * Return an adler32 checksum based on CHECKSUM, updated with 44 svn__adler32(apr_uint32_t checksum, const char *data, apr_off_t len);
|
/freebsd-10.3-release/contrib/subversion/subversion/include/ |
H A D | svn_checksum.h | 24 * @brief Subversion checksum routines 48 /** The checksum is (or should be set to) an MD5 checksum. */ 51 /** The checksum is (or should be set to) a SHA1 checksum. */ 56 * A generic checksum representation. 62 /** The bytes of the checksum. */ 65 /** The type of the checksum. This should never be changed by consumers 75 /** Return a new checksum structure of type @a kind, initialized to the all- 84 /** Set @a checksum [all...] |
/freebsd-10.3-release/contrib/subversion/subversion/libsvn_fs_base/bdb/ |
H A D | checksum-reps-table.h | 0 /* checksum-reps-table.h : internal interface to ops on `checksum-reps' table 38 /* Open a `checksum-reps' table in ENV. If CREATE is non-zero, create 46 CHECKSUM in the `checksum-reps' table. Do this as part of TRAIL. 53 svn_checksum_t *checksum, 57 /* Store in the `checksum-reps' table a mapping of CHECKSUM to 61 WARNING: NEVER store a record that maps a checksum to a mutable 64 svn_checksum_t *checksum, 69 /* Delete from the `checksum-reps' table the mapping of CHECKSUM to a 73 svn_checksum_t *checksum, [all...] |
H A D | checksum-reps-table.c | 0 /* checksum-reps-table.c : operations on the `checksum-reps' table 33 #include "checksum-reps-table.h" 50 "checksum-reps", 0, DB_BTREE, 53 /* Create the checksum-reps table if it doesn't exist. */ 77 svn_checksum_t *checksum, 86 if (checksum->kind != svn_checksum_sha1) 89 "checksum-reps table.\n")); 91 svn_fs_base__trail_debug(trail, "checksum-reps", "get"); 93 svn_fs_base__checksum_to_dbt(&key, checksum), 74 svn_fs_bdb__get_checksum_rep(const char **rep_key, svn_fs_t *fs, svn_checksum_t *checksum, trail_t *trail, apr_pool_t *pool) argument 103 svn_fs_bdb__set_checksum_rep(svn_fs_t *fs, svn_checksum_t *checksum, const char *rep_key, trail_t *trail, apr_pool_t *pool) argument 148 svn_fs_bdb__delete_checksum_rep(svn_fs_t *fs, svn_checksum_t *checksum, trail_t *trail, apr_pool_t *pool) argument [all...] |
/freebsd-10.3-release/usr.sbin/cpucontrol/ |
H A D | intel.h | 44 uint32_t checksum; /* Sum of all DWORDS should member in struct:intel_fw_header 58 uint32_t checksum; member in struct:intel_cpu_signature 63 uint32_t checksum; member in struct:intel_ext_header
|
H A D | via.h | 44 uint32_t checksum; /* Sum of all DWORDS should member in struct:via_fw_header 57 uint32_t checksum; member in struct:via_cpu_signature
|
H A D | amd.h | 40 uint32_t checksum; /* ucode checksum. */ member in struct:amd_fw_header
|
/freebsd-10.3-release/crypto/heimdal/lib/krb5/ |
H A D | crypto-arcfour.c | 55 * checksum according to section 5. of draft-brezak-win2k-krb-rc4-hmac-03.txt 82 ksign_c.checksum.length = sizeof(ksign_c_data); 83 ksign_c.checksum.data = ksign_c_data; 91 kb.keyvalue = ksign_c.checksum; 147 k1_c.checksum.length = sizeof(k1_c_data); 148 k1_c.checksum.data = k1_c_data; 156 k2_c.checksum.length = sizeof(k2_c_data); 157 k2_c.checksum.data = k2_c_data; 160 kb.keyvalue = k2_c.checksum; 162 cksum.checksum [all...] |
H A D | crypto-aes.c | 94 struct _krb5_checksum_type *ct = crypto->et->checksum; 100 ret = krb5_data_alloc(&result.checksum, ct->checksumsize); 106 ret = (*ct->checksum)(context, NULL, in->data, in->length, 0, &result); 108 krb5_data_free(&result.checksum); 112 if (result.checksum.length < crypto->et->blocksize) 131 EVP_Cipher(&ctx, out->data, result.checksum.data, 136 krb5_data_free(&result.checksum);
|
/freebsd-10.3-release/lib/libelf/ |
H A D | libelf_checksum.c | 52 unsigned long checksum; local 71 * checksum along the way. 78 checksum = 0; 91 checksum = _libelf_sum(checksum, 96 * Return a 16-bit checksum compatible with Solaris. 98 return (((checksum >> 16) & 0xFFFFUL) + (checksum & 0xFFFFUL));
|
/freebsd-10.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zio_checksum.c | 39 * In the SPA, everything is checksummed. We support checksum vectors 43 * For SPA metadata, we always want a very strong checksum. 45 * and checksum strength. 56 * Of course, we don't want a checksum upgrade to invalidate existing 57 * data, so we store the checksum *function* in eight bits of the bp. 58 * This gives us room for up to 256 different checksum functions. 60 * When writing a block, we always checksum it with the latest-and-greatest 61 * checksum function of the appropriate strength. When reading a block, 62 * we compare the expected checksum against the actual checksum, whic 228 zio_checksum_template_init(enum zio_checksum checksum, spa_t *spa) argument 251 zio_checksum_compute(zio_t *zio, enum zio_checksum checksum, void *data, uint64_t size) argument 297 uint_t checksum = (bp == NULL ? zio->io_prop.zp_checksum : local [all...] |
/freebsd-10.3-release/gnu/usr.bin/cc/cc1/ |
H A D | Makefile | 17 OBJS+= ${PROG}-checksum.o 26 ${PROG}-checksum.c: ${PROG}-dummy 28 CLEANFILES+= ${PROG}-checksum.c
|
/freebsd-10.3-release/sys/xen/interface/hvm/ |
H A D | hvm_info_table.h | 38 uint8_t checksum; member in struct:hvm_info_table
|
/freebsd-10.3-release/usr.sbin/bsdinstall/scripts/ |
H A D | Makefile | 3 SCRIPTS= auto adduser checksum config docsinstall entropy hostname jail \
|
H A D | checksum | 27 # $FreeBSD: releng/10.3/usr.sbin/bsdinstall/scripts/checksum 219903 2011-03-23 13:43:56Z nwhitehorn $ 45 awk -v checksum=$CK -v dist=$dist -v found=0 '{ 48 if (checksum == $2) 66 --msgbox "The checksum for $dist does not match. It may have become corrupted, and should be redownloaded." 0 0
|
/freebsd-10.3-release/contrib/gdb/gdb/ |
H A D | dsrec.c | 43 the starting `S' to the last char of the checksum. FLAGS is 180 * start ---+ | | data +- checksum 188 * S<type><length><address><data><checksum> 192 * is the number of bytes following upto the checksum. Note that 210 * - checksum 222 unsigned char checksum; local 277 /* Note that the checksum is calculated on the raw data, not the 281 checksum = 0; 283 checksum += (payload_size + addr_size + 1 /* Packet length */ 302 checksum [all...] |
H A D | i386-stub.c | 74 * checksum. A packet consists of 76 * $<packet info>#<checksum>. 80 * <checksum> :: < two hex digits computed as modulo 256 sum of <packetinfo>> 112 /* debug > 0 prints ill-formed commands in valid packets & checksum errors */ 454 /* scan for the sequence $<data>#<checksum> */ 460 unsigned char checksum; local 472 checksum = 0; 484 checksum = checksum + ch; 497 if (checksum ! 531 unsigned char checksum; local [all...] |
/freebsd-10.3-release/sys/netinet/ |
H A D | sctp_crc32.c | 83 * of SCTP_BUF_NEXT()'s and calculate the SCTP checksum. This also 86 * length, checksum=1, pktlen=0 is returned (ie. no real error code) 128 uint32_t checksum; 130 checksum = sctp_calculate_cksum(m, offset); 133 offset += offsetof(struct sctphdr, checksum); 140 * behavior may be to insert the checksum in the appropriate 145 *(uint32_t *) (m->m_data + offset) = checksum;
|
/freebsd-10.3-release/crypto/heimdal/lib/gssapi/krb5/ |
H A D | 8003.c | 111 * create a checksum over the chanel bindings in 127 * see rfc1964 (section 1.1.1 (Initial Token), and the checksum value 131 result->checksum.length = 24 + 4 + fwd_data->length; 133 result->checksum.length = 24; 134 result->checksum.data = malloc (result->checksum.length); 135 if (result->checksum.data == NULL) { 140 p = result->checksum.data; 167 * verify the checksum in `cksum' over `input_chan_bindings' 186 if(cksum->cksumtype != CKSUMTYPE_GSSAPI || cksum->checksum [all...] |
/freebsd-10.3-release/sbin/dhclient/ |
H A D | packet.c | 55 u_int32_t checksum(unsigned char *, unsigned, u_int32_t); 59 checksum(unsigned char *buf, unsigned nbytes, u_int32_t sum) function 71 * If there's a single byte left over, checksum it, too. 129 ip.ip_sum = wrapsum(checksum((unsigned char *)&ip, sizeof(ip), 0)); 135 * byte order. In both cases, the checksum has to be correct, so this 149 udp.uh_sum = wrapsum(checksum((unsigned char *)&udp, sizeof(udp), 150 checksum(data, len, checksum((unsigned char *)&ip.ip_src, 191 /* Check the IP header checksum - it should be zero. */ 193 if (wrapsum(checksum(bu [all...] |
/freebsd-10.3-release/sys/dev/ixgb/ |
H A D | ixgb_ee.c | 323 * Verifies that the EEPROM has a valid checksum 328 * If the sum of the 64 16 bit words is 0xBABA, the EEPROM's checksum is 338 uint16_t checksum = 0; local 342 checksum += ixgb_read_eeprom(hw, i); 344 if(checksum == (uint16_t) EEPROM_SUM) 351 * Calculates the EEPROM checksum and writes it to the EEPROM 361 uint16_t checksum = 0; local 365 checksum += ixgb_read_eeprom(hw, i); 367 checksum = (uint16_t) EEPROM_SUM - checksum; 474 uint16_t checksum = 0; local [all...] |
/freebsd-10.3-release/contrib/apr/tables/ |
H A D | apr_tables.c | 302 /* Compute the "checksum" for a key, consisting of the first 304 * an int...this checksum allows us to do a single integer 308 #define COMPUTE_KEY_CHECKSUM(key, checksum) \ 312 (checksum) = c; \ 313 (checksum) <<= 8; \ 316 checksum |= c; \ 318 (checksum) <<= 8; \ 321 checksum |= c; \ 323 (checksum) <<= 8; \ 326 checksum | 475 apr_uint32_t checksum; local 506 apr_uint32_t checksum; local 578 apr_uint32_t checksum; local 649 apr_uint32_t checksum; local 703 apr_uint32_t checksum; local 740 apr_uint32_t checksum; local 794 apr_uint32_t checksum; local 814 apr_uint32_t checksum; local 975 apr_uint32_t checksum; local [all...] |
/freebsd-10.3-release/sys/boot/i386/common/ |
H A D | edd.h | 76 uint8_t checksum; member in struct:edd_device_path_v3 93 uint8_t checksum; member in struct:edd_device_path_v4
|