Searched refs:checksum (Results 1 - 25 of 318) sorted by relevance

1234567891011>>

/freebsd-10-stable/contrib/subversion/subversion/include/private/
H A Dsvn_adler32.h38 * 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-stable/contrib/subversion/subversion/include/
H A Dsvn_checksum.h24 * @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. */
54 /** The checksum is (or should be set to) a FNV-1a 32 bit checksum,
59 /** The checksum is (or should be set to) a modified FNV-1a 32 bit,
66 * A generic checksum representation.
72 /** The bytes of the checksum
[all...]
/freebsd-10-stable/contrib/subversion/subversion/libsvn_subr/
H A Dchecksum.c2 * checksum.c: checksum routines
36 #include "checksum.h"
68 /* Digests for an empty string, indexed by checksum type */
76 /* Digest sizes in bytes, indexed by checksum type */
171 svn_checksum_t *checksum = apr_palloc(pool, sizeof(*checksum) + digest_size);
172 checksum->digest = (unsigned char *)checksum + sizeof(*checksum);
170 svn_checksum_t *checksum = apr_palloc(pool, sizeof(*checksum) + digest_size); local
185 svn_checksum_t *checksum = checksum_create_without_digest(kind, digest_size, local
195 svn_checksum_t *checksum; local
245 svn_checksum_clear(svn_checksum_t *checksum) argument
280 svn_checksum_to_cstring_display(const svn_checksum_t *checksum, apr_pool_t *pool) argument
300 svn_checksum_to_cstring(const svn_checksum_t *checksum, apr_pool_t *pool) argument
324 svn_checksum_serialize(const svn_checksum_t *checksum, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
338 svn_checksum_deserialize(const svn_checksum_t **checksum, const char *data, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
370 svn_checksum_parse_hex(svn_checksum_t **checksum, svn_checksum_kind_t kind, const char *hex, apr_pool_t *pool) argument
428 svn_checksum_dup(const svn_checksum_t *checksum, apr_pool_t *pool) argument
455 svn_checksum(svn_checksum_t **checksum, svn_checksum_kind_t kind, const void *data, apr_size_t len, apr_pool_t *pool) argument
587 svn_checksum_final(svn_checksum_t **checksum, const svn_checksum_ctx_t *ctx, apr_pool_t *pool) argument
622 svn_checksum_size(const svn_checksum_t *checksum) argument
651 svn_checksum_is_empty_checksum(svn_checksum_t *checksum) argument
691 svn_checksum_t **checksum; member in struct:stream_baton_t
752 wrap_write_stream(svn_checksum_t **checksum, unsigned char *digest, svn_stream_t *inner_stream, svn_checksum_kind_t kind, apr_pool_t *pool) argument
775 svn_checksum__wrap_write_stream(svn_checksum_t **checksum, svn_stream_t *inner_stream, svn_checksum_kind_t kind, apr_pool_t *pool) argument
[all...]
H A Dadler32.c45 * 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-stable/contrib/subversion/subversion/libsvn_fs_base/bdb/
H A Dchecksum-reps-table.h0 /* 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 Dchecksum-reps-table.c0 /* 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-stable/usr.sbin/cpucontrol/
H A Dintel.h44 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 Dvia.h44 uint32_t checksum; /* Sum of all DWORDS should member in struct:via_fw_header
57 uint32_t checksum; member in struct:via_cpu_signature
/freebsd-10-stable/crypto/heimdal/lib/krb5/
H A Dcrypto-arcfour.c55 * 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 Dcrypto-aes.c94 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-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzio_checksum.c39 * 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
234 zio_checksum_template_init(enum zio_checksum checksum, spa_t *spa) argument
257 zio_checksum_compute(zio_t *zio, enum zio_checksum checksum, void *data, uint64_t size) argument
300 zio_checksum_error_impl(spa_t *spa, blkptr_t *bp, enum zio_checksum checksum, void *data, uint64_t size, uint64_t offset, zio_bad_cksum_t *info) argument
384 uint_t checksum = (bp == NULL ? zio->io_prop.zp_checksum : local
[all...]
/freebsd-10-stable/lib/libelf/
H A Dlibelf_checksum.c52 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-stable/gnu/usr.bin/cc/cc1/
H A DMakefile17 OBJS+= ${PROG}-checksum.o
26 ${PROG}-checksum.c: ${PROG}-dummy
28 CLEANFILES+= ${PROG}-checksum.c
/freebsd-10-stable/sys/xen/interface/hvm/
H A Dhvm_info_table.h38 uint8_t checksum; member in struct:hvm_info_table
/freebsd-10-stable/usr.sbin/bsdinstall/scripts/
H A DMakefile3 SCRIPTS= auto adduser checksum config docsinstall entropy hostname jail \
/freebsd-10-stable/contrib/gdb/gdb/
H A Ddsrec.c43 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 Di386-stub.c74 * 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-stable/sys/netinet/
H A Dsctp_crc32.c83 * 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-stable/contrib/subversion/subversion/libsvn_repos/
H A Dconfig_pool.c53 * This is a SHA1 checksum of the parsed textual representation of CFG. */
87 /* Contents checksum of the file stored under URL@REVISION */
139 checksum_as_key(svn_checksum_t *checksum,
143 apr_size_t size = svn_checksum_size(checksum);
147 memcpy(result->data, checksum->digest, size);
200 svn_checksum_t *checksum;
208 &checksum, NULL, svn_checksum_sha1, TRUE, scratch_pool)));
211 *key = checksum_as_key(checksum, result_pool);
247 svn_checksum_t *checksum)
256 memcpy((void *)config->key->digest, checksum
136 checksum_as_key(svn_checksum_t *checksum, apr_pool_t *pool) argument
197 svn_checksum_t *checksum; local
240 add_checksum(svn_repos__config_pool_t *config_pool, const char *url, const char *repos_root, svn_revnum_t revision, svn_checksum_t *checksum) argument
313 svn_checksum_t *checksum; local
[all...]
/freebsd-10-stable/contrib/subversion/subversion/svnfsfs/
H A Ddump-index-cmd.c37 /* Construct a checksum object containing FNV1. */
38 svn_checksum_t checksum = { NULL, svn_checksum_fnv1a_32 }; local
40 checksum.digest = (const unsigned char *)&digest;
43 return svn_checksum_to_cstring_display(&checksum, pool);
/freebsd-10-stable/crypto/heimdal/lib/gssapi/krb5/
H A D8003.c111 * 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-stable/sbin/dhclient/
H A Dpacket.c55 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-stable/contrib/subversion/subversion/libsvn_fs_x/
H A Drep-cache.c193 svn_checksum_t *checksum;
210 err = svn_checksum_parse_hex(&checksum, svn_checksum_sha1,
216 memcpy(rep->sha1_digest, checksum->digest, sizeof(rep->sha1_digest));
243 svn_checksum_t *checksum,
256 if (checksum->kind != svn_checksum_sha1)
263 svn_checksum_to_cstring(checksum, scratch_pool)));
269 memcpy((*rep)->sha1_digest, checksum->digest,
291 svn_checksum_to_cstring_display(checksum, scratch_pool));
305 svn_checksum_t checksum;
306 checksum
191 svn_checksum_t *checksum; local
239 svn_fs_x__get_rep_reference(svn_fs_x__representation_t **rep, svn_fs_t *fs, svn_checksum_t *checksum, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
303 svn_checksum_t checksum; local
[all...]
/freebsd-10-stable/contrib/subversion/subversion/libsvn_fs_fs/
H A Drep-cache.c216 svn_checksum_t *checksum;
234 err = svn_checksum_parse_hex(&checksum, svn_checksum_sha1,
240 memcpy(rep->sha1_digest, checksum->digest, sizeof(rep->sha1_digest));
267 svn_checksum_t *checksum,
279 if (checksum->kind != svn_checksum_sha1)
286 svn_checksum_to_cstring(checksum, pool)));
293 memcpy((*rep)->sha1_digest, checksum->digest,
314 svn_checksum_to_cstring_display(checksum,
329 svn_checksum_t checksum;
330 checksum
214 svn_checksum_t *checksum; local
263 svn_fs_fs__get_rep_reference(representation_t **rep, svn_fs_t *fs, svn_checksum_t *checksum, apr_pool_t *pool) argument
327 svn_checksum_t checksum; local
[all...]
/freebsd-10-stable/sys/dev/ixgb/
H A Dixgb_ee.c323 * 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...]

Completed in 310 milliseconds

1234567891011>>