Home
last modified time | relevance | path

Searched full:checksum (Results 1 – 25 of 1643) sorted by relevance

12345678910>>...66

/freebsd/release/
H A DMakefile.mirrors79 cd ${RELEASEDIR} && rm -f CHECKSUM.*
112 cd ${RELEASEDIR} && rm -f CHECKSUM.*
113 . for CHECKSUM in ${CHECKSUM_FILES}
115 cd ${RELEASEDIR} && ${CHECKSUM:tl} ${OSRELEASE}* > \
116 CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX}
117 cp -p ${RELEASEDIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX} \
118 ${ISO_DIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX}
121 …../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAM…
123 cd ${RELEASEDIR} && ${CHECKSUM:tl} ${OSRELEASE}* > \
124 CHECKSUM.${CHECKSUM}-${OSRELEASE}-${SNAP_SUFFIX}
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzio_checksum.c37 * Checksum vectors.
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, which we
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/checksum/
H A Dfiletest_001_pos.ksh29 . $STF_SUITE/tests/functional/checksum/default.cfg
32 # Sanity test to make sure checksum algorithms work.
33 # For each checksum, create a file in the pool using that checksum. Verify
34 # that there are no checksum errors. Next, for each checksum, create a single
35 # file in the pool using that checksum, corrupt the file, and verify that we
36 # correctly catch the checksum errors.
41 # 2. Create a file using each checksum
43 # 4. Verify there's no checksum errors.
47 # 6. For each checksum:
48 # 7. Create a file using the checksum
[all …]
H A Dfiletest_002_pos.ksh29 . $STF_SUITE/tests/functional/checksum/default.cfg
32 # Sanity test to make sure checksum algorithms work.
33 # For each checksum, create a file in the pool using that checksum. Verify
34 # that there are no checksum errors. Next, for each checksum, create a single
35 # file in the pool using that checksum, corrupt the file, and verify that we
36 # correctly catch the checksum errors.
40 # 1. For each checksum:
41 # 2. Create a file using the checksum
44 # 5. Verify that there are checksum errors
53 log_assert "Test corrupting files at L1 and seeing checksum errors"
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dkrb5_create_checksum.357 .Li "typedef Checksum krb5_checksum;"
92 .Fa "Checksum *result"
101 .Fa "Checksum *cksum"
127 .Fa "Checksum *result"
138 structure holds a Kerberos checksum.
145 creates a checksum of the specified data, and puts it in
152 specifies the checksum type to use; it must not be keyed. Otherwise
162 .Fa checksum
166 returns true is the specified checksum is collision proof (that it's
172 returns true if the specified checksum type is keyed (that the hash
[all …]
H A Dcrypto-arcfour.c55 * checksum according to section 5. of draft-brezak-win2k-krb-rc4-hmac-03.txt
64 Checksum *result) in _krb5_HMAC_MD5_checksum()
69 Checksum ksign_c; in _krb5_HMAC_MD5_checksum()
82 ksign_c.checksum.length = sizeof(ksign_c_data); in _krb5_HMAC_MD5_checksum()
83 ksign_c.checksum.data = ksign_c_data; in _krb5_HMAC_MD5_checksum()
91 kb.keyvalue = ksign_c.checksum; in _krb5_HMAC_MD5_checksum()
134 Checksum k1_c, k2_c, k3_c, cksum; in ARCFOUR_subencrypt()
147 k1_c.checksum.length = sizeof(k1_c_data); in ARCFOUR_subencrypt()
148 k1_c.checksum.data = k1_c_data; in ARCFOUR_subencrypt()
156 k2_c.checksum.length = sizeof(k2_c_data); in ARCFOUR_subencrypt()
[all …]
H A Dcrypto.c174 Checksum *C) in SHA1_checksum()
176 if (EVP_Digest(data, len, C->checksum.data, NULL, EVP_sha1(), NULL) != 1) in SHA1_checksum()
177 krb5_abortx(context, "sha1 checksum failed"); in SHA1_checksum()
189 Checksum *result) in _krb5_internal_hmac()
208 (*cm->checksum)(context, in _krb5_internal_hmac()
214 key = result->checksum.data; in _krb5_internal_hmac()
215 key_len = result->checksum.length; in _krb5_internal_hmac()
225 (*cm->checksum)(context, keyblock, ipad, cm->blocksize + len, in _krb5_internal_hmac()
227 memcpy(opad + cm->blocksize, result->checksum.data, in _krb5_internal_hmac()
228 result->checksum.length); in _krb5_internal_hmac()
[all …]
H A Dkrb5_c_make_checksum.3208 creates a checksum
210 with the checksum type
217 are used if the checksum is a keyed checksum type.
221 verifies the checksum
231 is set to non-zero if the checksum verifies correctly and zero if not.
235 returns the length of the checksum.
259 .Fa checksum
272 is a valid checksum type.
277 is a keyed checksum type.
282 is a collision proof checksum type.
H A Dpac.c79 * HMAC-MD5 checksum over any key (needed for the PAC routines)
88 Checksum *result) in HMAC_MD5_any_checksum()
99 ret = krb5_data_alloc (&result->checksum, 16); in HMAC_MD5_any_checksum()
108 krb5_data_free(&result->checksum); in HMAC_MD5_any_checksum()
527 Checksum cksum; in verify_checksum()
540 cksum.checksum.length = in verify_checksum()
542 cksum.checksum.data = malloc(cksum.checksum.length); in verify_checksum()
543 if (cksum.checksum.data == NULL) { in verify_checksum()
547 ret = krb5_storage_read(sp, cksum.checksum.data, cksum.checksum.length); in verify_checksum()
548 if (ret != (int)cksum.checksum.length) { in verify_checksum()
[all …]
/freebsd/sys/contrib/dev/acpica/components/utilities/
H A Dutcksum.c174 * exception on bad checksum.
186 UINT8 Checksum; in AcpiUtVerifyChecksum() local
191 * They are the odd tables, have no standard ACPI header and no checksum in AcpiUtVerifyChecksum()
199 /* Compute the checksum on the table */ in AcpiUtVerifyChecksum()
202 Checksum = AcpiUtGenerateChecksum (ACPI_CAST_PTR (UINT8, Table), Length, Table->Checksum); in AcpiUtVerifyChecksum()
204 /* Computed checksum matches table? */ in AcpiUtVerifyChecksum()
206 if (Checksum != Table->Checksum) in AcpiUtVerifyChecksum()
209 "Incorrect checksum in table [%4.4s] - 0x%2.2X, " in AcpiUtVerifyChecksum()
211 Table->Signature, Table->Checksum, in AcpiUtVerifyChecksum()
212 Table->Checksum - Checksum)); in AcpiUtVerifyChecksum()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dcrc32intrin.h16 /// Adds the unsigned integer operand to the CRC-32C checksum of the
24 /// An unsigned integer operand to add to the CRC-32C checksum of operand
27 /// An unsigned 8-bit integer operand used to compute the CRC-32C checksum.
28 /// \returns The result of adding operand \a __C to the CRC-32C checksum of
36 /// Adds the unsigned integer operand to the CRC-32C checksum of the
44 /// An unsigned integer operand to add to the CRC-32C checksum of operand
47 /// An unsigned 16-bit integer operand used to compute the CRC-32C checksum.
48 /// \returns The result of adding operand \a __C to the CRC-32C checksum of
56 /// Adds the first unsigned integer operand to the CRC-32C checksum of
64 /// An unsigned integer operand to add to the CRC-32C checksum of operand
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list_002_pos.ksh39 # 1. Using several zfs datasets with names, creation dates, checksum options
40 # 2. Sort the datasets by name, checksum options, creation date.
77 # datasets ordered by checksum options (note, Orange, Carrot & Banana have the
78 # same checksum options, so ZFS should revert to sorting them alphabetically by
111 # sort by checksum
113 "zfs list -H -r -o name -s checksum -t filesystem $TESTPOOL/$TESTFS" \
114 "$fs_cksum" "checksum"
117 "zfs list -H -r -o name -s checksum -t volume $TESTPOOL/$TESTFS" \
118 "$vol_cksum" "checksum"
121 "zfs list -H -r -o name -s checksum -t snapshot $TESTPOOL/$TESTFS" \
[all …]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c38 /* for Adler-32 checksum algorithm, see RFC 1950 Section 8.2 */
42 static inline unsigned long update_adler32(unsigned long checksum, in update_adler32() argument
46 unsigned long s1 = checksum & 0xffff; in update_adler32()
47 unsigned long s2 = (checksum >> 16) & 0xffff; in update_adler32()
113 unsigned long size, unsigned long checksum, in write_chunk_header() argument
127 buffer[8] = checksum & 255; in write_chunk_header()
128 buffer[9] = (checksum >> 8) & 255; in write_chunk_header()
129 buffer[10] = (checksum >> 16) & 255; in write_chunk_header()
130 buffer[11] = (checksum >> 24) & 255; in write_chunk_header()
148 unsigned long checksum; in write_compression_hdr() local
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_user/zfs_list/
H A Dzfs_list_002_pos.ksh39 # 1. Using several zfs datasets with names, creation dates, checksum options
40 # 2. Sort the datasets by name, checksum options, creation date.
86 # datsets ordered by checksum options (note, Orange, Carrot & Banana have the
87 # same checksum options, so ZFS should revert to sorting them alphabetically by
120 # sort by checksum
122 "run_unprivileged $ZFS list -H -r -o name -s checksum -t filesystem $TESTPOOL/$TESTFS" \
123 "$fs_cksum" "checksum"
126 "run_unprivileged $ZFS list -H -r -o name -s checksum -t volume $TESTPOOL/$TESTFS" \
127 "$vol_cksum" "checksum"
130 "run_unprivileged $ZFS list -H -r -o name -s checksum -t snapshot $TESTPOOL/$TESTFS" \
[all …]
/freebsd/contrib/tcpdump/
H A Din_cksum.c2 * 4.4-Lite-2 Internet checksum routine, modified to take a vector of
45 * Checksum routine for Internet Protocol family headers (Portable Version).
149 * Given the host-byte-order value of the checksum field in a packet
150 * header, and the network-byte-order computed checksum of the data
151 * that the checksum covers (including the checksum itself), compute
152 * what the checksum field *should* have been.
160 * The value that should have gone into the checksum field in in_cksum_shouldbe()
162 * *but* the checksum field. in in_cksum_shouldbe()
164 * We can compute that by subtracting the value of the checksum in in_cksum_shouldbe()
168 * "sum" is the value of the checksum field, and "computed_sum" in in_cksum_shouldbe()
[all …]
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A D8003.c111 * create a checksum over the chanel bindings in
122 Checksum *result) in _gsskrb5_create_8003_checksum()
127 * see rfc1964 (section 1.1.1 (Initial Token), and the checksum value in _gsskrb5_create_8003_checksum()
131 result->checksum.length = 24 + 4 + fwd_data->length; in _gsskrb5_create_8003_checksum()
133 result->checksum.length = 24; in _gsskrb5_create_8003_checksum()
134 result->checksum.data = malloc (result->checksum.length); in _gsskrb5_create_8003_checksum()
135 if (result->checksum.data == NULL) { in _gsskrb5_create_8003_checksum()
140 p = result->checksum.data; in _gsskrb5_create_8003_checksum()
167 * verify the checksum in `cksum' over `input_chan_bindings'
175 const Checksum *cksum, in _gsskrb5_verify_8003_checksum()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/
H A Dzed_cksum_reported.ksh29 # Verify that checksum errors are accurately reported to ZED
33 # 2. Inject checksum error
34 # 3. Verify checksum error count reported to ZED is not zero
61 log_assert "Test reported checksum errors to ZED"
83 log_must zinject -a -t data -e checksum -T read -f 100 $FILEPATH
87 log_must file_wait_event $ZED_DEBUG_LOG "ereport.fs.zfs.checksum" 10
89 # checksum error as reported from the vdev.
92 # first checksum error reported to ZED.
93 zed_cksum=$(awk '/ZEVENT_CLASS=ereport.fs.zfs.checksum/, \
124 log_pass "Test reported checksum errors to ZED"
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dchunk.h15 #include "checksum.h"
21 extern Checksum HashAlgorithm;
34 if (HashAlgorithm == Checksum::HardwareCRC32) { in computeChecksum()
40 u16 Checksum = computeBSDChecksum(static_cast<u16>(Seed), Value); in computeChecksum()
42 Checksum = computeBSDChecksum(Checksum, Array[I]); in computeChecksum()
43 return Checksum; in computeChecksum()
73 uptr Checksum : 16; member
101 // We do not need a cryptographically strong hash for the checksum, but a CRC
107 ZeroChecksumHeader.Checksum in computeHeaderChecksum()
[all...]
/freebsd/share/man/man4/
H A Dxnb.466 In particular, it supports MAC changing, arbitrary MTU sizes, checksum
106 no form of link-layer checksum or CRC.
108 receive and transmit checksum offloading.
109 They "offload" the checksum calculation by simply skipping it.
113 a correct checksum must be attached to any packets bound for that physical
120 So if the netfront driver is configured to offload checksum calculations,
123 which must then calculate the checksum in software before passing the packet
128 is bridged to a physical interface, then transmit checksum offloading should be
135 driver does not properly checksum UDP datagrams that span more than one
137 Nor does it correctly checksum IPv6 packets.
[all …]
/freebsd/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) in checksum() function
63 /* Checksum all the pairs of bytes first... */ in checksum()
71 * If there's a single byte left over, checksum it, too. in checksum()
129 ip.ip_sum = wrapsum(checksum((unsigned char *)&ip, sizeof(ip), 0)); in assemble_udp_ip_header()
138 udp.uh_sum = wrapsum(checksum((unsigned char *)&udp, sizeof(udp), in assemble_udp_ip_header()
139 checksum(data, len, checksum((unsigned char *)&ip.ip_src, in assemble_udp_ip_header()
181 /* Check the IP header checksum - it should be zero. */ in decode_udp_ip_header()
183 if (wrapsum(checksum(buf + bufix, ip_len, 0)) != 0) { in decode_udp_ip_header()
202 * UDP header and the data. If the UDP checksum field is zero, in decode_udp_ip_header()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/direct/
H A Ddio_write_verify.ksh33 # Verify checksum verify works for Direct I/O writes.
49 # with us checking every Direct I/O write and on checksum validation
64 log_assert "Verify checksum verify works for Direct I/O writes."
110 # Next we will verify there are checksum errors for Direct I/O writes while
122 # Reading file back to verify checksum errors
132 # Verifying there are checksum errors
133 log_note "Making sure there are checksum errors for the ZPool"
138 log_fail "No checksum failures for ZPool $TESTPOOL"
145 log_note "Making sure we have no Direct I/O write checksum verifies \
172 # Reading file back to verify there no are checksum error
[all...]
/freebsd/contrib/elftoolchain/elfcopy/
H A Dascii.c57 int *checksum);
69 int *checksum);
272 warnx("Invalid srec record or mismatched checksum"); in create_elf_from_srec()
530 warnx("Invalid ihex record or mismatched checksum"); in create_elf_from_ihex()
694 int checksum, i, len; in srec_read() local
696 checksum = 0; in srec_read()
698 if (read_num(line, &len, &count, 1, &checksum) < 0) in srec_read()
720 if (read_num(line, &len, addr, addr_sz, &checksum) < 0) in srec_read()
726 if (read_num(line, &len, &num, 1, &checksum) < 0) in srec_read()
737 if ((int) _checksum != (~checksum & 0xFF)) in srec_read()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dbasl.c189 struct basl_table_checksum *checksum; in basl_finish_patch_checksums() local
191 STAILQ_FOREACH(checksum, &table->checksums, chain) { in basl_finish_patch_checksums()
197 len = checksum->len; in basl_finish_patch_checksums()
202 assert(checksum->off < table->len); in basl_finish_patch_checksums()
203 assert(checksum->start < table->len); in basl_finish_patch_checksums()
204 assert(checksum->start + len <= table->len); in basl_finish_patch_checksums()
206 /* Cause guest BIOS to patch the checksum. */ in basl_finish_patch_checksums()
208 table->fwcfg_name, checksum->off, checksum->start, len)); in basl_finish_patch_checksums()
220 gpa = BHYVE_ACPI_BASE + table->off + checksum->start; in basl_finish_patch_checksums()
224 __func__, table->off, checksum->start); in basl_finish_patch_checksums()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/
H A Dbclone_diffprops_all.ksh38 log_must zfs set checksum=off $TESTSRCFS
42 log_must zfs set checksum=fletcher2 $TESTDSTFS
51 log_must zfs set checksum=sha256 $TESTSRCFS
55 log_must zfs set checksum=off $TESTDSTFS
64 log_must zfs set checksum=sha512 $TESTSRCFS
68 log_must zfs set checksum=fletcher4 $TESTDSTFS
77 log_must zfs inherit checksum $TESTSRCFS
81 log_must zfs inherit checksum $TESTDSTFS
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/
H A Dzfs_receive_from_encrypted.ksh30 # 3. Create and checksum a file on the encrypted dataset
34 # 7. Verify the checksum of the file is the same as the original
36 # 9. Verify the checksum of the file is the same as the original
62 typeset checksum=$(xxh128digest /$TESTPOOL/$TESTFS2/$TESTFILE0)
73 [[ "$cksum1" == "$checksum" ]] || \
74 log_fail "Checksums differ ($cksum1 != $checksum)"
80 [[ "$cksum2" == "$checksum" ]] || \
81 log_fail "Checksums differ ($cksum2 != $checksum)"

12345678910>>...66