| /freebsd/crypto/krb5/src/lib/gssapi/krb5/ |
| H A D | k5sealv3iov.c | 42 gss_iov_buffer_t trailer; in gss_krb5int_make_seal_token_v3_iov() local 84 trailer = kg_locate_iov(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); in gss_krb5int_make_seal_token_v3_iov() 117 if (trailer == NULL) { in gss_krb5int_make_seal_token_v3_iov() 134 if (trailer != NULL) { in gss_krb5int_make_seal_token_v3_iov() 135 if (trailer->type & GSS_IOV_BUFFER_FLAG_ALLOCATE) in gss_krb5int_make_seal_token_v3_iov() 136 code = kg_allocate_iov(trailer, (size_t) gss_trailerlen); in gss_krb5int_make_seal_token_v3_iov() 137 else if (trailer->buffer.length < gss_trailerlen) in gss_krb5int_make_seal_token_v3_iov() 141 trailer->buffer.length = (size_t) gss_trailerlen; in gss_krb5int_make_seal_token_v3_iov() 158 if (trailer == NULL) in gss_krb5int_make_seal_token_v3_iov() 161 tbuf = (unsigned char *)trailer->buffer.value; in gss_krb5int_make_seal_token_v3_iov() [all …]
|
| H A D | util_cksum.c | 172 gss_iov_buffer_desc *trailer; in checksum_iov_v3() local 188 trailer = kg_locate_iov(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); in checksum_iov_v3() 189 assert(rrc != 0 || trailer != NULL); in checksum_iov_v3() 191 if (trailer == NULL) { in checksum_iov_v3() 196 } else if (trailer->buffer.length != k5_checksumlen) in checksum_iov_v3() 222 if (trailer == NULL) { in checksum_iov_v3() 226 kiov[i].data.length = trailer->buffer.length; in checksum_iov_v3() 227 kiov[i].data.data = (char *)trailer->buffer.value; in checksum_iov_v3()
|
| H A D | k5sealiov.c | 42 gss_iov_buffer_t trailer; in make_seal_token_v1_iov() local 64 trailer = kg_locate_iov(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); in make_seal_token_v1_iov() 65 if (trailer != NULL) in make_seal_token_v1_iov() 66 trailer->buffer.length = 0; in make_seal_token_v1_iov() 320 gss_iov_buffer_t header, trailer, padding; in kg_seal_iov_length() local 346 trailer = kg_locate_iov(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); in kg_seal_iov_length() 347 if (trailer != NULL) { in kg_seal_iov_length() 348 INIT_IOV_DATA(trailer); in kg_seal_iov_length() 460 if (trailer == NULL) in kg_seal_iov_length() 463 trailer->buffer.length = gss_trailerlen; in kg_seal_iov_length()
|
| H A D | util_crypt.c | 354 gss_iov_buffer_desc *trailer; in kg_translate_iov_v1() local 371 trailer = kg_locate_iov(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); in kg_translate_iov_v1() 372 assert(trailer == NULL || trailer->buffer.length == 0); in kg_translate_iov_v1() 424 gss_iov_buffer_t trailer; in kg_translate_iov_v3() local 438 trailer = kg_locate_iov(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); in kg_translate_iov_v3() 439 assert(trailer == NULL || rrc == 0); in kg_translate_iov_v3() 456 if (trailer == NULL) { in kg_translate_iov_v3() 468 if (trailer->buffer.length != gss_trailerlen) in kg_translate_iov_v3() 505 if (trailer == NULL) in kg_translate_iov_v3() 508 kiov[i].data.data = (char *)trailer->buffer.value; in kg_translate_iov_v3()
|
| H A D | k5unsealiov.c | 44 gss_iov_buffer_t trailer; in kg_unseal_v1_iov() local 63 trailer = kg_locate_iov(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); in kg_unseal_v1_iov() 64 if (trailer != NULL && trailer->buffer.length != 0) { in kg_unseal_v1_iov() 290 gss_iov_buffer_t trailer; in kg_unseal_iov_token() local 300 trailer = kg_locate_iov(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); in kg_unseal_iov_token() 314 if (trailer != NULL) in kg_unseal_iov_token() 315 tlen += trailer->buffer.length; in kg_unseal_iov_token()
|
| /freebsd/crypto/krb5/src/lib/crypto/krb/ |
| H A D | enc_dk_cmac.c | 93 krb5_crypto_iov *header, *trailer, *padding; in krb5int_dk_cmac_encrypt() local 102 trailer = krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_TRAILER); in krb5int_dk_cmac_encrypt() 103 if (trailer == NULL || trailer->data.length < enc->block_size) in krb5int_dk_cmac_encrypt() 121 ret = krb5int_cmac_checksum(enc, ki, data, num_data, &trailer->data); in krb5int_dk_cmac_encrypt() 143 krb5_crypto_iov *header, *trailer; in krb5int_dk_cmac_decrypt() local 153 trailer = krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_TRAILER); in krb5int_dk_cmac_decrypt() 154 if (trailer == NULL || trailer->data.length != enc->block_size) in krb5int_dk_cmac_decrypt() 174 if (k5_bcmp(cksum.data, trailer->data.data, enc->block_size) != 0) in krb5int_dk_cmac_decrypt()
|
| H A D | enc_dk_hmac.c | 78 krb5_crypto_iov *header, *trailer, *padding; in krb5int_dk_encrypt() local 102 trailer = krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_TRAILER); in krb5int_dk_encrypt() 103 if (trailer == NULL || trailer->data.length < hmacsize) in krb5int_dk_encrypt() 168 memcpy(trailer->data.data, cksum, hmacsize); in krb5int_dk_encrypt() 169 trailer->data.length = hmacsize; in krb5int_dk_encrypt() 188 krb5_crypto_iov *header, *trailer; in krb5int_dk_decrypt() local 218 trailer = krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_TRAILER); in krb5int_dk_decrypt() 219 if (trailer == NULL || trailer->data.length != hmacsize) in krb5int_dk_decrypt() 259 if (k5_bcmp(cksum, trailer->data.data, hmacsize) != 0) { in krb5int_dk_decrypt()
|
| H A D | enc_etm.c | 144 krb5_crypto_iov *header, *trailer, *padding; in krb5int_etm_encrypt() local 157 trailer = krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_TRAILER); in krb5int_etm_encrypt() 158 if (trailer == NULL || trailer->data.length < trailer_len) in krb5int_etm_encrypt() 194 memcpy(trailer->data.data, cksum.data, trailer_len); in krb5int_etm_encrypt() 195 trailer->data.length = trailer_len; in krb5int_etm_encrypt() 217 krb5_crypto_iov *header, *trailer; in krb5int_etm_decrypt() local 228 trailer = krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_TRAILER); in krb5int_etm_decrypt() 229 if (trailer == NULL || trailer->data.length != trailer_len) in krb5int_etm_decrypt() 244 if (k5_bcmp(cksum.data, trailer->data.data, trailer_len) != 0) { in krb5int_etm_decrypt()
|
| H A D | enc_rc4.c | 138 krb5_crypto_iov *header, *trailer; in krb5int_arcfour_encrypt() local 158 trailer = krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_TRAILER); in krb5int_arcfour_encrypt() 159 if (trailer != NULL) in krb5int_arcfour_encrypt() 160 trailer->data.length = 0; in krb5int_arcfour_encrypt() 223 krb5_crypto_iov *header, *trailer; in krb5int_arcfour_decrypt() local 234 trailer = krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_TRAILER); in krb5int_arcfour_decrypt() 235 if (trailer != NULL && trailer->data.length != 0) in krb5int_arcfour_decrypt()
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_gzip.c | 341 unsigned char trailer[8]; in archive_compressor_gzip_close() local 355 trailer[0] = (uint8_t)(data->crc)&0xff; in archive_compressor_gzip_close() 356 trailer[1] = (uint8_t)(data->crc >> 8)&0xff; in archive_compressor_gzip_close() 357 trailer[2] = (uint8_t)(data->crc >> 16)&0xff; in archive_compressor_gzip_close() 358 trailer[3] = (uint8_t)(data->crc >> 24)&0xff; in archive_compressor_gzip_close() 359 trailer[4] = (uint8_t)(data->total_in)&0xff; in archive_compressor_gzip_close() 360 trailer[5] = (uint8_t)(data->total_in >> 8)&0xff; in archive_compressor_gzip_close() 361 trailer[6] = (uint8_t)(data->total_in >> 16)&0xff; in archive_compressor_gzip_close() 362 trailer[7] = (uint8_t)(data->total_in >> 24)&0xff; in archive_compressor_gzip_close() 363 ret = __archive_write_filter(f->next_filter, trailer, 8); in archive_compressor_gzip_close()
|
| H A D | archive_write_set_format_cpio_odc.c | 467 struct archive_entry *trailer; in archive_write_odc_close() local 469 trailer = archive_entry_new2(NULL); in archive_write_odc_close() 470 if (trailer == NULL) { in archive_write_odc_close() 474 archive_entry_set_nlink(trailer, 1); in archive_write_odc_close() 475 archive_entry_set_size(trailer, 0); in archive_write_odc_close() 476 archive_entry_set_pathname(trailer, "TRAILER!!!"); in archive_write_odc_close() 477 er = write_header(a, trailer); in archive_write_odc_close() 478 archive_entry_free(trailer); in archive_write_odc_close()
|
| H A D | archive_write_set_format_cpio_newc.c | 425 struct archive_entry *trailer; in archive_write_newc_close() local 427 trailer = archive_entry_new(); in archive_write_newc_close() 428 archive_entry_set_nlink(trailer, 1); in archive_write_newc_close() 429 archive_entry_set_size(trailer, 0); in archive_write_newc_close() 430 archive_entry_set_pathname(trailer, "TRAILER!!!"); in archive_write_newc_close() 432 er = write_header(a, trailer); in archive_write_newc_close() 433 archive_entry_free(trailer); in archive_write_newc_close()
|
| H A D | archive_write_set_format_cpio_binary.c | 577 struct archive_entry *trailer; in archive_write_binary_close() local 579 trailer = archive_entry_new2(NULL); in archive_write_binary_close() 580 if (trailer == NULL) { in archive_write_binary_close() 584 archive_entry_set_nlink(trailer, 1); in archive_write_binary_close() 585 archive_entry_set_size(trailer, 0); in archive_write_binary_close() 586 archive_entry_set_pathname(trailer, "TRAILER!!!"); in archive_write_binary_close() 587 er = write_header(a, trailer); in archive_write_binary_close() 588 archive_entry_free(trailer); in archive_write_binary_close()
|
| /freebsd/crypto/heimdal/lib/gssapi/krb5/ |
| H A D | cfx.c | 242 const gss_iov_buffer_desc *trailer) in _gk_verify_buffers() argument 257 if (trailer) { in _gk_verify_buffers() 286 gss_iov_buffer_desc *header, *trailer, *padding; 308 trailer = _gk_find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); 310 major_status = _gk_verify_buffers(minor_status, ctx, header, padding, trailer); 390 if (trailer == NULL) { 396 } else if (GSS_IOV_BUFFER_FLAGS(trailer->type) & GSS_IOV_BUFFER_FLAG_ALLOCATE) { 397 major_status = _gk_allocate_buffer(minor_status, trailer, gsstsize); 400 } else if (trailer->buffer.length < gsstsize) { 405 trailer->buffer.length = gsstsize; [all …]
|
| /freebsd/crypto/heimdal/lib/gssapi/ntlm/ |
| H A D | crypto.c | 487 gss_buffer_desc trailer; in _gss_ntlm_wrap() local 503 &trailer); in _gss_ntlm_wrap() 508 if (trailer.length != 16) { in _gss_ntlm_wrap() 510 gss_release_buffer(&junk, &trailer); in _gss_ntlm_wrap() 515 trailer.value, trailer.length); in _gss_ntlm_wrap() 516 gss_release_buffer(&junk, &trailer); in _gss_ntlm_wrap() 560 gss_buffer_desc trailer; in _gss_ntlm_unwrap() local 576 trailer.value = ((unsigned char *)input_message_buffer->value) + in _gss_ntlm_unwrap() 578 trailer.length = 16; in _gss_ntlm_unwrap() 582 &trailer, NULL); in _gss_ntlm_unwrap()
|
| /freebsd/crypto/krb5/src/lib/krb5/os/ |
| H A D | sn2princ.c | 168 split_trailer(const krb5_data *data, krb5_data *host, krb5_data *trailer) in split_trailer() argument 177 *trailer = make_data("", 0); in split_trailer() 180 *trailer = make_data(p, tlen); in split_trailer() 189 krb5_data host, trailer; in canonicalize_princ() local 196 split_trailer(&iter->princ->data[1], &host, &trailer); in canonicalize_princ() 217 trailer.length, trailer.data) < 0) { in canonicalize_princ()
|
| /freebsd/sys/kern/ |
| H A D | subr_compressor.c | 171 uint8_t trailer[8]; in gz_write() local 203 ((uint32_t *)trailer)[0] = htole32(s->gz_crc); in gz_write() 204 ((uint32_t *)trailer)[1] = in gz_write() 206 room = MIN(sizeof(trailer), in gz_write() 208 memcpy(s->gz_buffer + len, trailer, room); in gz_write() 224 if (zerror == Z_STREAM_END && room < sizeof(trailer)) in gz_write() 225 error = cb(trailer + room, in gz_write() 226 sizeof(trailer) - room, s->gz_off, arg); in gz_write()
|
| /freebsd/sys/dev/sfxge/common/ |
| H A D | ef10_nvram.c | 614 struct tlv_partition_trailer *trailer; in tlv_update_partition_len_and_cks() local 640 trailer = (struct tlv_partition_trailer *)((uint8_t *)header + in tlv_update_partition_len_and_cks() 641 new_len - sizeof (*trailer) - sizeof (uint32_t)); in tlv_update_partition_len_and_cks() 642 trailer->generation = header->generation; in tlv_update_partition_len_and_cks() 643 trailer->checksum = __CPU_TO_LE_32( in tlv_update_partition_len_and_cks() 644 __LE_TO_CPU_32(trailer->checksum) - in tlv_update_partition_len_and_cks() 666 struct tlv_partition_trailer *trailer; in ef10_nvram_buffer_validate() local 709 trailer = (struct tlv_partition_trailer *)tlv_item(&cursor); in ef10_nvram_buffer_validate() 721 if (trailer->generation != header->generation) { in ef10_nvram_buffer_validate() 786 struct tlv_partition_trailer trailer; in ef10_nvram_buffer_create() local [all …]
|
| /freebsd/contrib/openbsm/libbsm/ |
| H A D | bsm_audit.c | 226 token_t *header, *tok, *trailer; in au_assemble() local 278 trailer = au_to_trailer(tot_rec_size); in au_assemble() 279 if (trailer == NULL) { in au_assemble() 287 TAILQ_INSERT_TAIL(&rec->token_q, trailer, tokens); in au_assemble()
|
| /freebsd/sys/crypto/armv8/ |
| H A D | armv8_crypto_wrap.c | 334 size_t trailer; in armv8_aes_gmac_setup() local 349 trailer = authdatalen % AES_BLOCK_LEN; in armv8_aes_gmac_setup() 350 if (authdatalen - trailer > 0) { in armv8_aes_gmac_setup() 351 gcm_ghash_v8(s->Xi.u, Htable, authdata, authdatalen - trailer); in armv8_aes_gmac_setup() 352 authdata += authdatalen - trailer; in armv8_aes_gmac_setup() 354 if (trailer > 0 || authdatalen == 0) { in armv8_aes_gmac_setup() 356 memcpy(block, authdata, trailer); in armv8_aes_gmac_setup()
|
| /freebsd/usr.bin/gzip/ |
| H A D | unlz.c | 551 uint8_t trailer[TRAILER_SIZE]; in lz_decode() local 553 for(size_t i = 0; i < nitems(trailer); i++) in lz_decode() 554 trailer[i] = (uint8_t)getc(lz.fin); in lz_decode() 559 crc += trailer[i]; in lz_decode() 565 data_size += trailer[i]; in lz_decode() 574 rv += trailer[i]; in lz_decode()
|
| /freebsd/crypto/heimdal/appl/gssmask/ |
| H A D | gssmaestro.c | 181 int32_t bflags, krb5_data *header, krb5_data *in, krb5_data *trailer, in wrap_token_ext() argument 191 putdata(client, *trailer); in wrap_token_ext() 199 int32_t bflags, krb5_data *header, krb5_data *in, krb5_data *trailer, in unwrap_token_ext() argument 209 putdata(client, *trailer); in unwrap_token_ext() 473 krb5_data header, msg, trailer, wrapped, out; in test_wrap_ext() local 482 trailer.data = "trailer"; in test_wrap_ext() 483 trailer.length = 7; in test_wrap_ext() 488 val = wrap_token_ext(c1, hc1, conf, bflags, &header, &msg, &trailer, &wrapped); in test_wrap_ext() 493 val = unwrap_token_ext(c2, hc2, conf, bflags, &header, &wrapped, &trailer, &out); in test_wrap_ext()
|
| H A D | gssmask.c | 884 krb5_data token, header, trailer; in HandleOP() local 895 retdata(c, trailer); in HandleOP() 919 if (trailer.length != 0) { in HandleOP() 921 iov[3].buffer.length = trailer.length; in HandleOP() 922 iov[3].buffer.value = trailer.data; in HandleOP() 972 krb5_data token, header, trailer; in HandleOP() local 983 retdata(c, trailer); in HandleOP() 1005 if (trailer.length != 0) { in HandleOP() 1007 iov[2].buffer.length = trailer.length; in HandleOP() 1008 iov[2].buffer.value = trailer.data; in HandleOP()
|
| /freebsd/sys/contrib/dev/athk/ath12k/ |
| H A D | htc.c | 291 u8 *trailer; in ath12k_htc_rx_completion_handler() local 304 trailer = (u8 *)hdr; in ath12k_htc_rx_completion_handler() 305 trailer += sizeof(*hdr); in ath12k_htc_rx_completion_handler() 306 trailer += payload_len; in ath12k_htc_rx_completion_handler() 307 trailer -= trailer_len; in ath12k_htc_rx_completion_handler() 308 status = ath12k_htc_process_trailer(htc, trailer, in ath12k_htc_rx_completion_handler()
|
| /freebsd/crypto/heimdal/lib/gssapi/ |
| H A D | test_context.c | 285 krb5_data token, header, trailer; in wrapunwrap_iov() local 302 trailer.data = trailer_data; in wrapunwrap_iov() 303 trailer.length = 10; in wrapunwrap_iov() 307 trailer.data = NULL; in wrapunwrap_iov() 308 trailer.length = 0; in wrapunwrap_iov() 332 if (trailer.length != 0) { in wrapunwrap_iov() 334 iov[3].buffer.length = trailer.length; in wrapunwrap_iov() 335 iov[3].buffer.value = trailer.data; in wrapunwrap_iov()
|