Home
last modified time | relevance | path

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

12345678910>>...75

/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.c38 * 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 Dser_cksum.c31 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 …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/checksum/
H A Dfiletest_001_pos.ksh30 . $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 Dfiletest_002_pos.ksh30 . $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 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.
/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/crypto/krb5/doc/html/_sources/appdev/refs/api/
H A Dkrb5_k_verify_checksum.rst.txt1 krb5_k_verify_checksum - Verify a checksum (operates on opaque key).
15 **[in]** **key** - Encryption key for a keyed checksum
19 …**[in]** **data** - Data to be used to compute a new checksum using *key* to compare *cksum* again…
21 **[in]** **cksum** - Checksum to be verified
41checksum for *data* . If the checksum type of *cksum* is a keyed checksum, *key* is used to verify…
H A Dkrb5_c_verify_checksum.rst.txt1 krb5_c_verify_checksum - Verify a checksum (operates on keyblock).
15 **[in]** **key** - Encryption key for a keyed checksum
19 …**[in]** **data** - Data to be used to compute a new checksum using *key* to compare *cksum* again…
21 **[in]** **cksum** - Checksum to be verified
41checksum for *data* . If the checksum type of *cksum* is a keyed checksum, *key* is used to verify…
H A Dkrb5_k_make_checksum.rst.txt1 krb5_k_make_checksum - Compute a checksum (operates on opaque key).
15 **[in]** **cksumtype** - Checksum type (0 for mandatory type)
17 **[in]** **key** - Encryption key for a keyed checksum
23 **[out]** **cksum** - Generated checksum
41checksum of type *cksumtype* over *input* , using *key* if the checksum type is a keyed checksum. …
H A Dkrb5_c_make_checksum.rst.txt1 krb5_c_make_checksum - Compute a checksum (operates on keyblock).
15 **[in]** **cksumtype** - Checksum type (0 for mandatory type)
17 **[in]** **key** - Encryption key for a keyed checksum
23 **[out]** **cksum** - Generated checksum
41checksum of type *cksumtype* over *input* , using *key* if the checksum type is a keyed checksum. …
/freebsd/crypto/krb5/src/lib/crypto/crypto_tests/
H A Dt_mdcksum.c27 /* Test checksum and checksum compatibility for rsa-md[4,5]-des. */
76 print_checksum(text, number, message, checksum) in print_checksum() argument
80 krb5_checksum *checksum;
84 printf("%s MD%d checksum(\"%s\") = ", text, number, message);
85 for (i=0; i<checksum->length; i++)
86 printf("%02x", checksum->contents[i]);
91 * Test the checksum verification of Old Style (tm) and correct RSA-MD[4,5]-DES
124 printf("cannot get memory for old style checksum\n");
130 printf("cannot get memory for new style checksum\n");
159 printf("verify on new checksum choked with %d\n", kret);
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list_002_pos.ksh40 # 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 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.ksh30 # 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/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/crypto/krb5/src/lib/crypto/krb/
H A Denc_rc4.c67 /* 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 …]

12345678910>>...75