/freebsd/release/ |
H A D | Makefile.mirrors | 86 cd ${RELEASEDIR} && rm -f CHECKSUM.* 119 cd ${RELEASEDIR} && rm -f CHECKSUM.* 120 . for CHECKSUM in ${CHECKSUM_FILES} 122 cd ${RELEASEDIR} && ${CHECKSUM:tl} ${OSRELEASE}* > \ 123 CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX} 124 cp -p ${RELEASEDIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX} \ 125 ${ISO_DIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX} 128 …../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAM… 130 cd ${RELEASEDIR} && ${CHECKSUM:tl} ${OSRELEASE}* > \ 131 CHECKSUM.${CHECKSUM}-${OSRELEASE}-${SNAP_SUFFIX} [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zio_checksum.c | 38 * Checksum vectors. 40 * In the SPA, everything is checksummed. We support checksum vectors 44 * For SPA metadata, we always want a very strong checksum. 46 * and checksum strength. 57 * Of course, we don't want a checksum upgrade to invalidate existing 58 * data, so we store the checksum *function* in eight bits of the bp. 59 * This gives us room for up to 256 different checksum functions. 61 * When writing a block, we always checksum it with the latest-and-greatest 62 * checksum function of the appropriate strength. When reading a block, 63 * we compare the expected checksum against the actual checksum, which we [all …]
|
/freebsd/crypto/krb5/src/lib/krb5/krb/ |
H A D | ser_cksum.c | 31 k5_size_checksum(krb5_checksum *checksum, size_t *sizep) in k5_size_checksum() argument 41 * checksum->length for contents in k5_size_checksum() 44 if (checksum != NULL) { in k5_size_checksum() 49 (size_t) checksum->length); in k5_size_checksum() 56 k5_externalize_checksum(krb5_checksum *checksum, in k5_externalize_checksum() argument 68 if (checksum != NULL) { in k5_externalize_checksum() 70 if (!k5_size_checksum(checksum, &required) && required <= remain) { in k5_externalize_checksum() 75 (void) krb5_ser_pack_int32((krb5_int32) checksum->checksum_type, in k5_externalize_checksum() 79 (void) krb5_ser_pack_int32((krb5_int32) checksum->length, in k5_externalize_checksum() 83 (void) krb5_ser_pack_bytes(checksum->contents, in k5_externalize_checksum() [all …]
|
H A D | rd_safe.c | 40 * and checksum in *cksum_out. The caller should free *userdata_out and 66 if (!krb5_c_valid_cksumtype(krbsafe->checksum->checksum_type)) { in read_krbsafe() 70 if (!krb5_c_is_coll_proof_cksum(krbsafe->checksum->checksum_type) || in read_krbsafe() 71 !krb5_c_is_keyed_cksum(krbsafe->checksum->checksum_type)) { in read_krbsafe() 81 /* Regenerate the KRB-SAFE message without the checksum. Save the message in read_krbsafe() 82 * checksum to verify. */ in read_krbsafe() 83 safe_cksum = krbsafe->checksum; in read_krbsafe() 87 krbsafe->checksum = &zero_cksum; in read_krbsafe() 91 krbsafe->checksum = NULL; in read_krbsafe() 95 /* Verify the checksum over the re-encoded message. */ in read_krbsafe() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/checksum/ |
H A D | filetest_001_pos.ksh | 30 . $STF_SUITE/tests/functional/checksum/default.cfg 33 # Sanity test to make sure checksum algorithms work. 34 # For each checksum, create a file in the pool using that checksum. Verify 35 # that there are no checksum errors. Next, for each checksum, create a single 36 # file in the pool using that checksum, corrupt the file, and verify that we 37 # correctly catch the checksum errors. 42 # 2. Create a file using each checksum 44 # 4. Verify there's no checksum errors. 48 # 6. For each checksum: 49 # 7. Create a file using the checksum [all …]
|
H A D | filetest_002_pos.ksh | 30 . $STF_SUITE/tests/functional/checksum/default.cfg 33 # Sanity test to make sure checksum algorithms work. 34 # For each checksum, create a file in the pool using that checksum. Verify 35 # that there are no checksum errors. Next, for each checksum, create a single 36 # file in the pool using that checksum, corrupt the file, and verify that we 37 # correctly catch the checksum errors. 41 # 1. For each checksum: 42 # 2. Create a file using the checksum 45 # 5. Verify that there are checksum errors 54 log_assert "Test corrupting files at L1 and seeing checksum errors" [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | krb5_create_checksum.3 | 57 .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 D | crypto-arcfour.c | 55 * 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 D | crypto.c | 174 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 D | krb5_c_make_checksum.3 | 208 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.
|
/freebsd/sys/contrib/dev/acpica/components/utilities/ |
H A D | utcksum.c | 174 * 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 D | crc32intrin.h | 16 /// 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 D | zfs_list_002_pos.ksh | 40 # 1. Using several zfs datasets with names, creation dates, checksum options 41 # 2. Sort the datasets by name, checksum options, creation date. 78 # datasets ordered by checksum options (note, Orange, Carrot & Banana have the 79 # same checksum options, so ZFS should revert to sorting them alphabetically by 112 # sort by checksum 114 "zfs list -H -r -o name -s checksum -t filesystem $TESTPOOL/$TESTFS" \ 115 "$fs_cksum" "checksum" 118 "zfs list -H -r -o name -s checksum -t volume $TESTPOOL/$TESTFS" \ 119 "$vol_cksum" "checksum" 122 "zfs list -H -r -o name -s checksum -t snapshot $TESTPOOL/$TESTFS" \ [all …]
|
/freebsd/sys/dev/cxgbe/cudbg/ |
H A D | fastlz_api.c | 38 /* 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 D | zfs_list_002_pos.ksh | 39 # 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/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) 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(data, len, checksum((unsigned char *)&udp, in assemble_udp_ip_header() 139 sizeof(udp), checksum((unsigned char *)&ip.ip_src, in assemble_udp_ip_header() 184 /* Check the IP header checksum - it should be zero. */ in decode_udp_ip_header() 186 if (wrapsum(checksum(buf + bufix, ip_len, 0)) != 0) { in decode_udp_ip_header() 205 * UDP header and the data. If the UDP checksum field is zero, in decode_udp_ip_header() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | in_cksum.c | 2 * 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 D | 8003.c | 111 * 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 D | zed_cksum_reported.ksh | 30 # Verify that checksum errors are accurately reported to ZED 34 # 2. Inject checksum error 35 # 3. Verify checksum error count reported to ZED is not zero 62 log_assert "Test reported checksum errors to ZED" 84 log_must zinject -a -t data -e checksum -T read -f 100 $FILEPATH 88 log_must file_wait_event $ZED_DEBUG_LOG "ereport.fs.zfs.checksum" 10 90 # checksum error as reported from the vdev. 93 # first checksum error reported to ZED. 94 zed_cksum=$(awk '/ZEVENT_CLASS=ereport.fs.zfs.checksum/, \ 125 log_pass "Test reported checksum errors to ZED"
|
/freebsd/share/man/man4/ |
H A D | xnb.4 | 66 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/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | chunk.h | 15 #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/crypto/krb5/src/lib/crypto/krb/ |
H A D | enc_rc4.c | 67 /* Derive an encryption key from a usage key and (typically) checksum. */ 71 const krb5_keyblock *usage_keyblock, const krb5_data *checksum, in enc_key() argument 86 /* Compute HMAC(trunc_key, checksum) to produce the encryption key. */ in enc_key() 88 iov.data = *checksum; in enc_key() 140 krb5_data checksum, confounder, header_data; in krb5int_arcfour_encrypt() local 147 * Checksum | E(Confounder | Plaintext) in krb5int_arcfour_encrypt() 182 /* Generate a confounder in the header block, after the checksum. */ in krb5int_arcfour_encrypt() 189 checksum = make_data(header->data.data, hash->hashsize); in krb5int_arcfour_encrypt() 195 /* Compute the checksum using the usage key. */ in krb5int_arcfour_encrypt() 197 &checksum); in krb5int_arcfour_encrypt() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/direct/ |
H A D | dio_write_verify.ksh | 34 # Verify checksum verify works for Direct I/O writes. 50 # with us checking every Direct I/O write and on checksum validation 65 log_assert "Verify checksum verify works for Direct I/O writes." 111 # Next we will verify there are checksum errors for Direct I/O writes while 123 # Reading file back to verify checksum errors 133 # Verifying there are checksum errors 134 log_note "Making sure there are checksum errors for the ZPool" 139 log_fail "No checksum failures for ZPool $TESTPOOL" 146 log_note "Making sure we have no Direct I/O write checksum verifies \ 173 # Reading file back to verify there no are checksum errors [all …]
|
/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | ascii.c | 57 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 D | basl.c | 189 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 …]
|