Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 25 of 443) sorted by relevance

12345678910>>...18

/freebsd/crypto/heimdal/lib/krb5/
H A Dcrypto-arcfour.c82 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()
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()
157 k2_c.checksum.data = k2_c_data; in ARCFOUR_subencrypt()
160 kb.keyvalue = k2_c.checksum; in ARCFOUR_subencrypt()
162 cksum.checksum.length = 16; in ARCFOUR_subencrypt()
163 cksum.checksum.data = data; in ARCFOUR_subencrypt()
[all …]
H A Dcrypto-aes.c94 struct _krb5_checksum_type *ct = crypto->et->checksum; in AES_PRF()
100 ret = krb5_data_alloc(&result.checksum, ct->checksumsize); in AES_PRF()
106 ret = (*ct->checksum)(context, NULL, in->data, in->length, 0, &result); in AES_PRF()
108 krb5_data_free(&result.checksum); in AES_PRF()
112 if (result.checksum.length < crypto->et->blocksize) in AES_PRF()
133 EVP_Cipher(ctx, out->data, result.checksum.data, in AES_PRF()
138 krb5_data_free(&result.checksum); in AES_PRF()
H A Dcrypto.c176 if (EVP_Digest(data, len, C->checksum.data, NULL, EVP_sha1(), NULL) != 1) in SHA1_checksum()
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()
229 (*cm->checksum)(context, keyblock, opad, in _krb5_internal_hmac()
283 res.checksum.data = sha1_data; in _krb5_SP_HMAC_SHA1_checksum()
284 res.checksum.length = sizeof(sha1_data); in _krb5_SP_HMAC_SHA1_checksum()
[all …]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c42 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
176 checksum = 1L; in write_compression_hdr()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzio_checksum.c298 zio_checksum_template_init(enum zio_checksum checksum, spa_t *spa) in zio_checksum_template_init() argument
300 zio_checksum_info_t *ci = &zio_checksum_table[checksum]; in zio_checksum_template_init()
304 if (spa->spa_cksum_tmpls[checksum] != NULL) in zio_checksum_template_init()
309 if (spa->spa_cksum_tmpls[checksum] == NULL) { in zio_checksum_template_init()
310 spa->spa_cksum_tmpls[checksum] = in zio_checksum_template_init()
312 VERIFY(spa->spa_cksum_tmpls[checksum] != NULL); in zio_checksum_template_init()
340 zio_checksum_compute(zio_t *zio, enum zio_checksum checksum, in zio_checksum_compute() argument
346 zio_checksum_info_t *ci = &zio_checksum_table[checksum]; in zio_checksum_compute()
351 ASSERT((uint_t)checksum < ZIO_CHECKSUM_FUNCTIONS); in zio_checksum_compute()
354 zio_checksum_template_init(checksum, spa); in zio_checksum_compute()
[all …]
/freebsd/contrib/elftoolchain/elfcopy/
H A Dascii.c57 int *checksum);
69 int *checksum);
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()
848 int len, addr_sz, checksum; in srec_write() local
857 checksum = 0; in srec_write()
[all …]
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A D8003.c131 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()
186 if(cksum->cksumtype != CKSUMTYPE_GSSAPI || cksum->checksum.length < 24) { in _gsskrb5_verify_8003_checksum()
191 p = cksum->checksum.data; in _gsskrb5_verify_8003_checksum()
217 if (cksum->checksum.length > 24 && (*flags & GSS_C_DELEG_FLAG)) { in _gsskrb5_verify_8003_checksum()
218 if(cksum->checksum.length < 28) { in _gsskrb5_verify_8003_checksum()
232 if(cksum->checksum.length < 28 + fwd_data->length) { in _gsskrb5_verify_8003_checksum()
/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
H A Dbclone_diffprops_checksum.ksh47 log_must zfs set checksum=$srcprop $TESTSRCFS
48 log_must zfs set checksum=$dstprop $TESTDSTFS
59 log_must zfs inherit checksum $TESTSRCFS
60 log_must zfs inherit checksum $TESTDSTFS
/freebsd/contrib/elftoolchain/libelf/
H A Dlibelf_checksum.c51 unsigned long checksum; in _libelf_checksum() local
77 checksum = 0; in _libelf_checksum()
90 checksum = _libelf_sum(checksum, in _libelf_checksum()
97 return (long) (((checksum >> 16) & 0xFFFFUL) + (checksum & 0xFFFFUL)); in _libelf_checksum()
/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
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()
183 if (wrapsum(checksum(buf + bufix, ip_len, 0)) != 0) { in decode_udp_ip_header()
229 sum = wrapsum(checksum((unsigned char *)udp, sizeof(*udp), in decode_udp_ip_header()
230 checksum(data, len, checksum((unsigned char *)&ip->ip_src, in decode_udp_ip_header()
/freebsd/tests/sys/fs/tarfs/
H A Dtarsum.c42 char checksum[8]; in tarsum() member
65 (int)sizeof(ustar.checksum), ustar.checksum); in tarsum()
66 memset(ustar.checksum, ' ', sizeof(ustar.checksum)); in tarsum()
70 sprintf(ustar.checksum, "%#lo", sum); in tarsum()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/
H A Dzfs_receive_from_encrypted.ksh62 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)"
H A Dzfs_receive_raw.ksh64 typeset checksum=$(xxh128digest /$TESTPOOL/$TESTFS1/$TESTFILE0)
78 [[ "$cksum1" == "$checksum" ]] || \
79 log_fail "Checksums differ ($cksum1 != $checksum)"
89 [[ "$cksum2" == "$checksum" ]] || \
90 log_fail "Checksums differ ($cksum2 != $checksum)"
/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()
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()
235 checksum_gva = gva + checksum->off; in basl_finish_patch_checksums()
[all …]
/freebsd/usr.bin/mkimg/
H A Dvhdx.c83 uint32_t checksum; member
98 uint32_t checksum; member
238 uint32_t checksum; in vhdx_write_headers() local
248 checksum = crc32c(&header, sizeof(header)); in vhdx_write_headers()
249 le32enc(&header.checksum, checksum); in vhdx_write_headers()
256 header.checksum = 0; in vhdx_write_headers()
257 checksum = crc32c(&header, sizeof(header)); in vhdx_write_headers()
258 le32enc(&header.checksum, checksum); in vhdx_write_headers()
269 uint32_t checksum; in vhdx_write_region_tables() local
295 checksum = crc32c(region_table, SIZE_64KB); in vhdx_write_region_tables()
[all …]
/freebsd/usr.bin/etdump/
H A Detdump.c94 int16_t checksum, sum; in boot_catalog_valid() local
100 checksum = isonum_721(ve->checksum); in boot_catalog_valid()
101 cd9660_721(0, ve->checksum); in boot_catalog_valid()
108 if (sum + checksum != 0) { in boot_catalog_valid()
112 cd9660_721(checksum, ve->checksum); in boot_catalog_valid()
/freebsd/sys/dev/aic7xxx/
H A Daic7xxx_93cx6.c303 uint32_t checksum; in ahc_write_seeprom()
307 checksum = 0; in ahc_verify_cksum()
311 checksum = checksum + scarray[i]; in ahc_verify_cksum()
312 if (checksum == 0 in ahc_verify_cksum()
313 || (checksum & 0xFFFF) != sc->checksum) { in ahc_verify_cksum()
310 uint32_t checksum; ahc_verify_cksum() local
/freebsd/sys/netinet/
H A Dsctp_crc32.c117 uint32_t checksum; in sctp_delayed_cksum() local
119 checksum = sctp_calculate_cksum(m, offset); in sctp_delayed_cksum()
122 offset += offsetof(struct sctphdr, checksum); in sctp_delayed_cksum()
134 m_copyback(m, (int)offset, (int)sizeof(uint32_t), (caddr_t)&checksum); in sctp_delayed_cksum()
/freebsd/sys/dev/nvdimm/
H A Dnvdimm.c184 uint64_t checksum; in label_index_is_valid() local
189 checksum = index->checksum; in label_index_is_valid()
190 index->checksum = 0; in label_index_is_valid()
191 if (checksum != fletcher64(index, size) || in label_index_is_valid()
204 uint64_t checksum; in read_label() local
217 checksum = entry->label.checksum; in read_label()
218 entry->label.checksum = 0; in read_label()
219 if (checksum != fletcher64(&entry->label, sizeof(entry->label)) || in read_label()
/freebsd/usr.sbin/cpucontrol/
H A Dintel.h44 uint32_t checksum; /* Sum of all DWORDS should member
58 uint32_t checksum; member
63 uint32_t checksum; member
/freebsd/crypto/openssl/crypto/modes/
H A Docb128.c358 (const unsigned char (*)[16])ctx->l, ctx->sess.checksum.c); in CRYPTO_ocb128_encrypt()
375 ocb_block16_xor(&tmp, &ctx->sess.checksum, &ctx->sess.checksum); in CRYPTO_ocb128_encrypt()
409 ocb_block16_xor(&pad, &ctx->sess.checksum, &ctx->sess.checksum); in CRYPTO_ocb128_encrypt()
450 (const unsigned char (*)[16])ctx->l, ctx->sess.checksum.c); in CRYPTO_ocb128_decrypt()
472 ocb_block16_xor(&tmp, &ctx->sess.checksum, &ctx->sess.checksum); in CRYPTO_ocb128_decrypt()
501 ocb_block16_xor(&pad, &ctx->sess.checksum, &ctx->sess.checksum); in CRYPTO_ocb128_decrypt()
521 ocb_block16_xor(&ctx->sess.checksum, &ctx->sess.offset, &tmp); in ocb_finish()
/freebsd/sys/dev/ocs_fc/
H A Docs_vpd.h48 uint8_t checksum; member
68 vpd->checksum += rc; in vpdnext()
132 vpdbuf.checksum = 0; in ocs_find_vpd()
181 if (vpdbuf.checksum != 0) { in ocs_find_vpd()
/freebsd/sys/dev/ixgbe/
H A Dixgbe_x540.c505 u16 checksum = 0; in ixgbe_calc_eeprom_checksum_X540() local
526 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
561 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
565 checksum = (u16)IXGBE_EEPROM_SUM - checksum; in ixgbe_calc_eeprom_checksum_X540()
567 return (s32)checksum; in ixgbe_calc_eeprom_checksum_X540()
582 u16 checksum; in ixgbe_validate_eeprom_checksum_X540() local
591 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X540()
604 checksum = (u16)(status & 0xffff); in ixgbe_validate_eeprom_checksum_X540()
617 if (read_checksum != checksum) { in ixgbe_validate_eeprom_checksum_X540()
625 *checksum_val = checksum; in ixgbe_validate_eeprom_checksum_X540()
[all …]
/freebsd/sys/fs/tarfs/
H A Dtarfs_vfsops.c68 char checksum[8]; /* Checksum */ member
208 int64_t checksum, hdrsum; in tarfs_checksum() local
210 if (tarfs_str2int64(hdrp->checksum, sizeof(hdrp->checksum), &hdrsum) != 0) { in tarfs_checksum()
212 __func__, (int)sizeof(hdrp->checksum), hdrp->checksum); in tarfs_checksum()
216 (int)sizeof(hdrp->checksum), hdrp->checksum, hdrsum); in tarfs_checksum()
218 checksum = 0; in tarfs_checksum()
220 ptr < (const unsigned char *)hdrp->checksum; ptr++) in tarfs_checksum()
221 checksum += *ptr; in tarfs_checksum()
224 checksum += 0x20; in tarfs_checksum()
227 checksum += *ptr; in tarfs_checksum()
[all …]

12345678910>>...18