Home
last modified time | relevance | path

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

1234567

/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dser_cksum.c64 krb5_checksum *checksum; in krb5_checksum_esize() local
76 checksum = (krb5_checksum *) arg; in krb5_checksum_esize()
77 if (checksum) { in krb5_checksum_esize()
82 (size_t) checksum->length); in krb5_checksum_esize()
95 krb5_checksum *checksum; in krb5_checksum_externalize() local
105 checksum = (krb5_checksum *) arg; in krb5_checksum_externalize()
106 if (checksum) { in krb5_checksum_externalize()
114 (void) krb5_ser_pack_int32((krb5_int32) checksum->checksum_type, in krb5_checksum_externalize()
118 (void) krb5_ser_pack_int32((krb5_int32) checksum->length, in krb5_checksum_externalize()
122 (void) krb5_ser_pack_bytes(checksum->contents, in krb5_checksum_externalize()
[all …]
H A Dcopy_athctr.c59 if (authfrom->checksum && in krb5_copy_authenticator()
60 (retval = krb5_copy_checksum(context, authfrom->checksum, &tempto->checksum))) { in krb5_copy_authenticator()
70 krb5_free_checksum(context, tempto->checksum); in krb5_copy_authenticator()
82 krb5_free_checksum(context, tempto->checksum); in krb5_copy_authenticator()
H A Dser_auth.c91 if (!kret && authenticator->checksum) in krb5_authenticator_size()
94 (krb5_pointer) authenticator->checksum, in krb5_authenticator_size()
172 if (!kret && authenticator->checksum) in krb5_authenticator_externalize()
176 authenticator->checksum, in krb5_authenticator_externalize()
285 &authenticator->checksum, in krb5_authenticator_internalize()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dzio_checksum.c154 zio_checksum_compute(zio_t *zio, enum zio_checksum checksum, in zio_checksum_compute() argument
159 zio_checksum_info_t *ci = &zio_checksum_table[checksum]; in zio_checksum_compute()
162 ASSERT((uint_t)checksum < ZIO_CHECKSUM_FUNCTIONS); in zio_checksum_compute()
168 if (checksum == ZIO_CHECKSUM_ZILOG2) { in zio_checksum_compute()
177 if (checksum == ZIO_CHECKSUM_GANG_HEADER) in zio_checksum_compute()
179 else if (checksum == ZIO_CHECKSUM_LABEL) in zio_checksum_compute()
195 uint_t checksum = (bp == NULL ? zio->io_prop.zp_checksum : in zio_checksum_error() local
203 zio_checksum_info_t *ci = &zio_checksum_table[checksum]; in zio_checksum_error()
206 if (checksum >= ZIO_CHECKSUM_FUNCTIONS || ci->ci_func[0] == NULL) in zio_checksum_error()
212 if (checksum == ZIO_CHECKSUM_ZILOG2) { in zio_checksum_error()
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dmk_req_ext.c135 krb5_checksum checksum; in krb5_mk_req_extended() local
206 checksum.checksum_type = 0x8003; in krb5_mk_req_extended()
207 checksum.length = in_data->length; in krb5_mk_req_extended()
208 checksum.contents = (krb5_octet *) in_data->data; in krb5_mk_req_extended()
214 in_data, &checksum))) in krb5_mk_req_extended()
217 checksump = &checksum; in krb5_mk_req_extended()
244 (*auth_context)->authentp->checksum = NULL; in krb5_mk_req_extended()
285 authent->checksum = cksum; in krb5_generate_authenticator()
H A Dsend_tgs.c58 krb5_checksum checksum; in krb5_send_tgs_basic() local
68 in_data, &checksum))) { in krb5_send_tgs_basic()
69 free(checksum.contents); in krb5_send_tgs_basic()
76 authent.checksum = &checksum; in krb5_send_tgs_basic()
81 free(checksum.contents); in krb5_send_tgs_basic()
87 free(checksum.contents); in krb5_send_tgs_basic()
91 free(checksum.contents); in krb5_send_tgs_basic()
H A Drd_safe.c69 if (!krb5_c_valid_cksumtype(message->checksum->checksum_type)) { in krb5_rd_safe_basic()
73 if (!krb5_c_is_coll_proof_cksum(message->checksum->checksum_type) || in krb5_rd_safe_basic()
74 !krb5_c_is_keyed_cksum(message->checksum->checksum_type)) { in krb5_rd_safe_basic()
112 his_cksum = message->checksum; in krb5_rd_safe_basic()
118 message->checksum = &our_cksum; in krb5_rd_safe_basic()
123 message->checksum = his_cksum; in krb5_rd_safe_basic()
H A Dpac.c693 krb5_checksum checksum; in k5_pac_verify_server_checksum() local
707 checksum.checksum_type = load_32_le(p); in k5_pac_verify_server_checksum()
708 checksum.length = checksum_data.length - PAC_SIGNATURE_DATA_LENGTH; in k5_pac_verify_server_checksum()
709 checksum.contents = p + PAC_SIGNATURE_DATA_LENGTH; in k5_pac_verify_server_checksum()
732 &pac_data, &checksum, &valid); in k5_pac_verify_server_checksum()
756 krb5_checksum checksum; in k5_pac_verify_kdc_checksum() local
777 checksum.checksum_type = load_32_le(p); in k5_pac_verify_kdc_checksum()
778 checksum.length = privsvr_checksum.length - PAC_SIGNATURE_DATA_LENGTH; in k5_pac_verify_kdc_checksum()
779 checksum.contents = p + PAC_SIGNATURE_DATA_LENGTH; in k5_pac_verify_kdc_checksum()
785 &server_checksum, &checksum, &valid); in k5_pac_verify_kdc_checksum()
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/
H A Dk5_arcfour.c84 krb5_data d1, d2, d3, salt, plaintext, checksum, ciphertext, confounder; local
170 checksum.length=hashsize;
171 checksum.data=output->data;
225 ret = krb5_hmac(context, kptr, &plaintext, &checksum);
227 ret = krb5_hmac(context, hash, kptr, 1, &plaintext, &checksum);
241 ret = krb5_hmac(context, &k1, &checksum, &d3);
243 ret = krb5_hmac(context, hash, &k1, 1, &checksum, &d3);
280 krb5_data d1,d2,d3,salt,ciphertext,plaintext,checksum; local
368 checksum.length=hashsize;
369 checksum.data=input->data;
[all …]
/titanic_41/usr/src/uts/common/io/ixgbe/
H A Dixgbe_x540.c470 u16 checksum = 0; in ixgbe_calc_eeprom_checksum_X540() local
489 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
527 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
531 checksum = (u16)IXGBE_EEPROM_SUM - checksum; in ixgbe_calc_eeprom_checksum_X540()
533 return checksum; in ixgbe_calc_eeprom_checksum_X540()
548 u16 checksum; in ixgbe_validate_eeprom_checksum_X540() local
558 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X540()
567 checksum = hw->eeprom.ops.calc_checksum(hw); in ixgbe_validate_eeprom_checksum_X540()
581 if (read_checksum != checksum) in ixgbe_validate_eeprom_checksum_X540()
586 *checksum_val = checksum; in ixgbe_validate_eeprom_checksum_X540()
[all …]
/titanic_41/usr/src/cmd/boot/common/
H A Dmboot_extra.c85 if (mboot->checksum != cksum) { in find_multiboot()
88 mboot->checksum, cksum); in find_multiboot()
130 if (cksum != ext_header->checksum) { in find_einfo()
186 ext_hdr->checksum = compute_checksum((char *)dest, ext_hdr->size); in add_einfo()
/titanic_41/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend_012_pos.ksh133 rand_set_prop $fs checksum "on" "off" "fletcher2" "fletcher4" "sha256"
136 rand_set_prop $fs checksum "on" "off" "fletcher2" "fletcher4" "sha256"
152 rand_set_prop $vol checksum "on" "off" "fletcher2" "fletcher4" "sha256"
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dsetup.ksh58 log_must $ZFS set checksum=${cksumarray[$index]} \
61 log_must $ZFS set checksum=${cksumarray[$index]} \
/titanic_41/usr/src/test/zfs-tests/tests/functional/nopwrite/
H A Dnopwrite_volume.ksh47 log_must $ZFS set checksum=sha256 $origin
53 log_must $ZFS set checksum=sha256 $clone
H A Dnopwrite_promoted_clone.ksh46 log_must $ZFS set checksum=sha256 $origin
52 log_must $ZFS set checksum=off $TESTPOOL/clone
H A Dnopwrite_negative.ksh50 log_must $ZFS set checksum=sha256 $origin/clone
61 log_must $ZFS set checksum=sha256 $origin
85 log_must $ZFS clone -o checksum=fletcher4 $origin@a $origin/clone
H A Dnopwrite_copies.ksh45 log_must $ZFS set checksum=sha256 $origin
61 log_must $ZFS set checksum=sha256 $origin
/titanic_41/usr/src/grub/grub-0.97/stage2/
H A Dsmp-imps.h109 unsigned char checksum; member
124 unsigned char checksum; member
/titanic_41/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc/
H A Dlibctsmc.c89 uint8_t checksum; /* checksum for dest and netfn_lun */ member
194 checksum(uint8_t buf[], int start, int end) in checksum() function
341 ipmi_header.checksum = checksum(data, 0, 1); in smc_init_ipmi_msg()
454 checksum(req_msg->data, 4, (IPMI_REQ_HDR_LEN-2)+dsize); in smc_send_msg()
/titanic_41/usr/src/uts/common/io/e1000api/
H A De1000_manage.c163 hdr_csum = hdr->checksum; in e1000_enable_tx_pkt_filtering_generic()
164 hdr->checksum = 0; in e1000_enable_tx_pkt_filtering_generic()
199 hdr->checksum = e1000_calculate_checksum((u8 *)hdr, length); in e1000_mng_write_cmd_header_generic()
309 hdr.checksum = 0; in e1000_mng_write_dhcp_info_generic()
318 sizeof(hdr), &(hdr.checksum)); in e1000_mng_write_dhcp_info_generic()
H A De1000_nvm.c1161 u16 checksum = 0; in e1000_validate_nvm_checksum_generic() local
1172 checksum += nvm_data; in e1000_validate_nvm_checksum_generic()
1175 if (checksum != (u16) NVM_SUM) { in e1000_validate_nvm_checksum_generic()
1194 u16 checksum = 0; in e1000_update_nvm_checksum_generic() local
1205 checksum += nvm_data; in e1000_update_nvm_checksum_generic()
1207 checksum = (u16) NVM_SUM - checksum; in e1000_update_nvm_checksum_generic()
1208 ret_val = hw->nvm.ops.write(hw, NVM_CHECKSUM_REG, 1, &checksum); in e1000_update_nvm_checksum_generic()
/titanic_41/usr/src/uts/intel/io/pci/
H A Dpci_resource.c59 static int checksum(unsigned char *cp, int len);
425 if (checksum((uchar_t *)fpp, fpp->fps_len * 16) != 0) { in mps_probe()
437 if (checksum((uchar_t *)ctp, base_len) != 0) { in mps_probe()
450 if (((checksum(extp, ext_len) + ctp->ct_ext_cksum) & 0xFF) != 0) { in mps_probe()
584 checksum(unsigned char *cp, int len) in checksum() function
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rpcsec.c233 char *checksum; in rpcsec_gss_post_proto() local
238 checksum = getxdr_hex(checksum_len); in rpcsec_gss_post_proto()
241 sprintf(get_line(0, 0), "[%s]", checksum); in rpcsec_gss_post_proto()
/titanic_41/usr/src/grub/grub-0.97/util/
H A Dmbchk.c90 if (mbh->magic + mbh->flags + mbh->checksum != 0) in check_multiboot()
94 filename, mbh->checksum); in check_multiboot()
/titanic_41/usr/src/cmd/sgs/elfdump/common/
H A D_elfdump.h177 #define checksum checksum64 macro
201 #define checksum checksum32 macro

1234567