Home
last modified time | relevance | path

Searched refs:uint8_t (Results 1 – 25 of 607) sorted by relevance

12345678910>>...25

/xnu-8019.80.24/EXTERNAL_HEADERS/corecrypto/
H A Dccder.h23 typedef uint8_t ccder_tag;
135 uint8_t *ccder_encode_tag(ccder_tag tag, const uint8_t *der, uint8_t *der_end);
140 uint8_t *ccder_encode_len(size_t len, const uint8_t *der, uint8_t *der_end);
144 uint8_t *ccder_encode_tl(ccder_tag tag, size_t len, const uint8_t *der, uint8_t *der_end);
146 CC_PURE CC_NONNULL((2)) uint8_t *ccder_encode_body_nocopy(size_t size, const uint8_t *der, uint8_t
153 uint8_t *ccder_encode_constructed_tl(ccder_tag tag, const uint8_t *body_end, const uint8_t *der, ui…
158 uint8_t *ccder_encode_oid(ccoid_t oid, const uint8_t *der, uint8_t *der_end);
161 uint8_t *ccder_encode_implicit_integer(ccder_tag implicit_tag, cc_size n, const cc_unit *s, const u…
164 uint8_t *ccder_encode_integer(cc_size n, const cc_unit *s, const uint8_t *der, uint8_t *der_end);
167 uint8_t *ccder_encode_implicit_uint64(ccder_tag implicit_tag, uint64_t value, const uint8_t *der, u…
[all …]
H A Dccrsa.h154 size_t e_nbytes, const uint8_t *e_bytes,
155 size_t p_nbytes, const uint8_t *p_bytes,
156 size_t q_nbytes, const uint8_t *q_bytes);
177 size_t m_nbytes, const uint8_t *m_bytes,
178 size_t e_nbytes, const uint8_t *e_bytes,
179 size_t d_nbytes, const uint8_t *d_bytes,
199 size_t exp_nbytes, const uint8_t *exp,
200 size_t mod_nbytes, const uint8_t *mod);
343 size_t digest_nbytes, const uint8_t *digest,
344 size_t *sig_nbytes, uint8_t *sig);
[all …]
H A Dccchacha20poly1305.h26 uint8_t buffer[CCCHACHA20_BLOCK_NBYTES];
36 uint8_t buf[16];
38 uint8_t key[16];
105 uint8_t state;
130 …_init(const struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, const uint8_t *key);
157 …nce(const struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, const uint8_t *nonce);
158 …_incnonce(const struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, uint8_t *nonce);
207 …05_finalize(const struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, uint8_t *tag);
239 …erify(const struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, const uint8_t *tag);
269 …fo, const uint8_t *key, const uint8_t *nonce, size_t aad_nbytes, const void *aad, size_t ptext_nby…
[all …]
H A Dccmode_siv_hmac.h40 const uint8_t *key,
42 … int (*CC_SPTR(ccmode_siv_hmac, set_nonce))(ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in);
43 int (*CC_SPTR(ccmode_siv_hmac, auth))(ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in);
44 …SPTR(ccmode_siv_hmac, crypt))(ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in, uint8_t *out);
115 …t ccmode_siv_hmac *mode, ccsiv_hmac_ctx *ctx, size_t key_byte_len, const uint8_t *key, size_t tag_…
132 …mac_aad(const struct ccmode_siv_hmac *mode, ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in);
147 …t_nonce(const struct ccmode_siv_hmac *mode, ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in);
171 …struct ccmode_siv_hmac *mode, ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in, uint8_t *out);
203 const uint8_t *key,
206 const uint8_t *nonce,
[all …]
H A Dccmode_siv.h33 size_t key_len, const uint8_t *key);
34 …int (*CC_SPTR(ccmode_siv, set_nonce))(ccsiv_ctx *ctx, size_t nbytes, const uint8_t *in); // coul…
35 …int (*CC_SPTR(ccmode_siv, auth))(ccsiv_ctx *ctx, size_t nbytes, const uint8_t *in); // could jus…
36 … int (*CC_SPTR(ccmode_siv, crypt))(ccsiv_ctx *ctx, size_t nbytes, const uint8_t *in, uint8_t *out);
130 size_t key_byte_len, const uint8_t *key) in ccsiv_init()
150 size_t nbytes, const uint8_t *in) in ccsiv_set_nonce()
166 size_t nbytes, const uint8_t *in) in ccsiv_aad()
199 size_t nbytes, const uint8_t *in, uint8_t *out) in ccsiv_crypt()
249 size_t key_len, const uint8_t *key, in ccsiv_one_shot()
250 unsigned nonce_nbytes, const uint8_t* nonce, in ccsiv_one_shot()
[all …]
/xnu-8019.80.24/bsd/netinet/
H A Dmptcp.h72 uint8_t mmco_kind;
73 uint8_t mmco_len;
75 uint8_t mmco_version:4,
78 uint8_t mmco_subtype:4,
90 uint8_t mmco_flags;
118 uint8_t mmjo_kind;
119 uint8_t mmjo_len;
121 uint8_t mmjo_subtype_bkp;
122 uint8_t mmjo_addr_id;
129 uint8_t mmjo_kind;
[all …]
/xnu-8019.80.24/bsd/net/
H A Dbridgestp.h233 uint8_t cbu_dsap; /* LLC: destination sap */
234 uint8_t cbu_ssap; /* LLC: source sap */
235 uint8_t cbu_ctl; /* LLC: control */
237 uint8_t cbu_protover; /* protocol version */
238 uint8_t cbu_bpdutype; /* message type */
239 uint8_t cbu_flags; /* flags (below) */
243 uint8_t cbu_rootaddr[6]; /* root address */
249 uint8_t cbu_bridgeaddr[6]; /* bridge address */
256 uint8_t cbu_versionlen; /* version 1 length */
263 uint8_t tbu_dsap; /* LLC: destination sap */
[all …]
H A Dframe802154.h162 uint8_t frame_type; /**< 3 bit. Frame type field, see 802.15.4 */
163 uint8_t security_enabled; /**< 1 bit. True if security is used in this frame */
164 uint8_t frame_pending; /**< 1 bit. True if sender has more data to send */
165 uint8_t ack_required; /**< 1 bit. Is an ack frame required? */
166 uint8_t panid_compression; /**< 1 bit. Is this a compressed header? */
168 uint8_t dest_addr_mode; /**< 2 bit. Destination address mode, see 802.15.4 */
169 uint8_t frame_version; /**< 2 bit. 802.15.4 frame version */
170 uint8_t src_addr_mode; /**< 2 bit. Source address mode, see 802.15.4 */
175 uint8_t security_level; /**< 3 bit. security level */
176 uint8_t key_id_mode; /**< 2 bit. Key identifier mode */
[all …]
H A Dif_bridgevar.h168 uint8_t ifbr_portno; /* member if port number */
169 uint8_t ifbr_priority; /* member if STP priority */
170 uint8_t ifbr_proto; /* member if STP protocol */
171 uint8_t ifbr_role; /* member if STP role */
172 uint8_t ifbr_state; /* member if STP state */
176 uint8_t pad[32];
274 uint8_t ifba_flags; /* address flags */
275 uint8_t ifba_dst[ETHER_ADDR_LEN];/* destination address */
284 uint8_t ifba_flags; /* address flags */
285 uint8_t ifba_dst[ETHER_ADDR_LEN];/* destination address */
[all …]
H A Dnat464_utils.h89 uint8_t _addr8[16];
105 uint8_t, uint8_t, uint16_t, struct nat464_addr *,
115 nat464_translate_64(pbuf_t *, int, uint8_t, uint8_t *, uint8_t, struct in_addr,
119 nat464_translate_46(pbuf_t *, uint16_t, uint8_t, uint8_t, uint8_t, struct in6_addr,
124 uint8_t, protocol_family_t, protocol_family_t, int, boolean_t);
133 nat464_cksum_fixup(uint16_t, uint16_t, uint16_t, uint8_t);
H A Dpktap.h139 uint8_t llhdr[16];
153 uint8_t pth_length; /* length of this header */
154 uint8_t pth_uuid_offset; /* max size: sizeof(uuid_t) */
155 uint8_t pth_e_uuid_offset; /* max size: sizeof(uuid_t) */
156 uint8_t pth_ifname_offset; /* max size: PKTAP_IFXNAMESIZE*/
157 uint8_t pth_comm_offset; /* max size: PKTAP_MAX_COMM_SIZE */
158 uint8_t pth_e_comm_offset; /* max size: PKTAP_MAX_COMM_SIZE */
174 uint8_t pth_uuid[sizeof(uuid_t)];
175 uint8_t pth_e_uuid[sizeof(uuid_t)];
176 uint8_t pth_ifname[PKTAP_IFXNAMESIZE];
[all …]
H A Dframe802154.c104 uint8_t dest_pid_len; /**< Length (in bytes) of destination PAN ID field */
105 uint8_t dest_addr_len; /**< Length (in bytes) of destination address field */
106 uint8_t src_pid_len; /**< Length (in bytes) of source PAN ID field */
107 uint8_t src_addr_len; /**< Length (in bytes) of source address field */
108 uint8_t aux_sec_len; /**< Length (in bytes) of aux security header field */
112 CC_INLINE static uint8_t
113 addr_len(uint8_t mode) in addr_len()
126 static uint8_t
127 get_key_id_len(uint8_t key_id_mode) in get_key_id_len()
213 frame802154_create(frame802154_t *p, uint8_t *buf) in frame802154_create()
[all …]
/xnu-8019.80.24/osfmk/vm/
H A Dlz4.c38 lz4raw_decode_buffer(uint8_t * __restrict dst_buffer, size_t dst_size, in lz4raw_decode_buffer()
39 const uint8_t * __restrict src_buffer, size_t src_size, in lz4raw_decode_buffer()
42 const uint8_t * src = src_buffer; in lz4raw_decode_buffer()
43 uint8_t * dst = dst_buffer; in lz4raw_decode_buffer()
89 lz4_fill16(uint8_t * ptr) in lz4_fill16()
97 lz4_nmatch4(const uint8_t * a, const uint8_t * b) in lz4_nmatch4()
105 lz4_nmatch8(const uint8_t * a, const uint8_t * b) in lz4_nmatch8()
113 lz4_nmatch16(const uint8_t * a, const uint8_t * b) in lz4_nmatch16()
121 lz4_nmatch32(const uint8_t * a, const uint8_t * b) in lz4_nmatch32()
129 lz4_nmatch64(const uint8_t * a, const uint8_t * b) in lz4_nmatch64()
[all …]
H A Dlz4.h58 extern void lz4_encode_2gb(uint8_t **dst_ptr, size_t dst_size,
59 const uint8_t **src_ptr, const uint8_t *src_begin, size_t src_size,
62 extern int lz4_decode(uint8_t **dst_ptr, uint8_t *dst_begin, uint8_t *dst_end,
63 const uint8_t **src_ptr, const uint8_t *src_end);
66 extern int lz4_decode_asm(uint8_t **dst_ptr, uint8_t *dst_begin, uint8_t *dst_end,
67 const uint8_t **src_ptr, const uint8_t *src_end);
77 size_t lz4raw_encode_buffer(uint8_t * __restrict dst_buffer, size_t dst_size,
78 const uint8_t * __restrict src_buffer, size_t src_size,
81 size_t lz4raw_decode_buffer(uint8_t * __restrict dst_buffer, size_t dst_size,
82 const uint8_t * __restrict src_buffer, size_t src_size,
[all …]
/xnu-8019.80.24/osfmk/arm/
H A Dcpu_x86_64_capabilities.h88 /* 0 */ uint8_t signature[16];
90 /* 18 */ uint8_t _unused[6];
93 /* 24 */ uint8_t _unused0[2];
98 /* 34 */ volatile uint8_t active_cpus;
99 /* 35 */ uint8_t physical_cpus;
100 /* 36 */ uint8_t logical_cpus;
101 /* 37 */ uint8_t _unused1[1];
106 /* 4C */ uint8_t cp_dtrace_dof_enabled;
107 /* 4D */ uint8_t cp_kernel_page_shift; /* _COMM_PAGE_VERSION >= 14 */
108 /* 4E */ uint8_t cp_user_page_shift; /* _COMM_PAGE_VERSION >= 14 */
[all …]
H A Dtrustcache.c74 uint8_t const *region_end = (uint8_t*)pmap_serialized_trust_caches + len; in trust_cache_init()
96 uint8_t *module_end = (uint8_t*)pmap_serialized_trust_caches; in trust_cache_init()
100 ((uint8_t*)pmap_serialized_trust_caches + pmap_serialized_trust_caches->offsets[i]); in trust_cache_init()
102 if ((uint8_t*)module < module_end) { in trust_cache_init()
106 module_end = (uint8_t*)(module + 1); in trust_cache_init()
141 uint8_t const cdhash[CS_CDHASH_LEN], in lookup_in_trust_cache_module()
142 uint8_t * const hash_type, in lookup_in_trust_cache_module()
143 uint8_t * const flags) in lookup_in_trust_cache_module()
176 lookup_in_static_trust_cache(const uint8_t cdhash[CS_CDHASH_LEN]) in lookup_in_static_trust_cache()
180 uint8_t hash_type = 0, flags = 0; in lookup_in_static_trust_cache()
[all …]
/xnu-8019.80.24/san/memory/
H A Dkasan-tbi.c53 uintptr_t kasan_tbi_tag_range(uintptr_t, size_t, uint8_t);
181 vm_size_t rightrz, uint8_t __unused flags) in kasan_poison()
199 kasan_tbi_tag_range(uintptr_t addr, size_t sz, uint8_t tag) in kasan_tbi_tag_range()
205 uint8_t *shadow_first = SHADOW_FOR_ADDRESS(addr); in kasan_tbi_tag_range()
206 uint8_t *shadow_last = SHADOW_FOR_ADDRESS(addr + P2ROUNDUP(sz, 16)); in kasan_tbi_tag_range()
216 uint8_t kasan_tbi_odd_tags[] = {1, 3, 5, 7, 9, 11, 13};
217 uint8_t kasan_tbi_even_tags[] = {2, 4, 6, 8, 10, 12, 14};
218 uint8_t kasan_tbi_odd_index = 0;
219 uint8_t kasan_tbi_even_index = 0;
221 static uint8_t
[all …]
/xnu-8019.80.24/bsd/i386/
H A Dfasttrap_isa.h45 typedef uint8_t fasttrap_instr_t;
48 uint8_t ftmt_instr[FASTTRAP_MAX_INSTR_SIZE]; /* orig. instr. */
49 uint8_t ftmt_size; /* instruction size */
50 uint8_t ftmt_ripmode; /* %rip-relative handling mode */
51 uint8_t ftmt_modrm; /* saved modrm byte */
52 uint8_t ftmt_type; /* emulation type */
53 uint8_t ftmt_code; /* branch condition */
54 uint8_t ftmt_base; /* branch base */
55 uint8_t ftmt_index; /* branch index */
56 uint8_t ftmt_scale; /* branch scale */
[all …]
/xnu-8019.80.24/bsd/kern/
H A Dchunklist.h42 uint8_t data4[8];
62 uint8_t cl_file_ver;
63 uint8_t cl_chunk_method;
64 uint8_t cl_sig_method;
65 uint8_t __unused1;
73 uint8_t chunk_sha256[SHA256_DIGEST_LENGTH];
78 uint8_t revision;
79 uint8_t security_epoch;
83 uint8_t rsa_public_key[CHUNKLIST_PUBKEY_LEN];
84 uint8_t rsa_signature[CHUNKLIST_SIGNATURE_LEN];
[all …]
/xnu-8019.80.24/bsd/vfs/
H A Dvfs_unicode.c31 uint8_t combClass[kNFCSingleCharDecompMax]);
34 int32_t* unorm, uint8_t* unormcc, int32_t* unormlenP, int32_t* unormstartP,
35 int32_t* buf, uint8_t* bufcc, int32_t* buflenP,
37 void doReorder(int32_t* buf, uint8_t* bufcc, int32_t buflen);
38 int32_t u32CharToUTF8Bytes(uint32_t u32char, uint8_t utf8Bytes[kMaxUTF8BytesPerChar]);
93 uint8_t unormcc[kNFCSingleCharDecompMax]; in utf8_normalizeOptCaseFoldAndHash()
132 uint8_t bufcc[kNCFStreamSafeBufMax]; in utf8_normalizeOptCaseFoldAndHash()
197uint8_t unormAcc[kNFCSingleCharDecompMaxPlusPushback], unormBcc[kNFCSingleCharDecompMaxPlusPushbac… in utf8_normalizeOptCaseFoldAndCompare()
216 uint8_t bufAcc[kNCFStreamSafeBufMax], bufBcc[kNCFStreamSafeBufMax]; in utf8_normalizeOptCaseFoldAndCompare()
327 uint8_t unormcc[kNFCSingleCharDecompMax]; in utf8_normalizeOptCaseFold()
[all …]
/xnu-8019.80.24/bsd/dev/dtrace/scripts/
H A Dip.d40 uint8_t ip_ver;
45 uint8_t protocol;
65 uint8_t ip_ver; /* IP version (4, 6) */
79 ip_ver = (ip != NULL) ? ((*(uint8_t *) ip) & 0xf0) >> 4 : 0;
81 (ntohs(ip->ip_len) - (((*(uint8_t *) ip) & 0x0f) << 2)) : 0;
101 ip_ver = (i != NULL) ? (*(uint8_t *)i >> 4) : 0;
102 ip_plength = (i != NULL) ? (((*(uint8_t *)i) >> 4 == 4) ?
104 (((*(uint8_t *)i) & 0x0f) << 2):
105 (((*(uint8_t *)i) >> 4 == 6) ?
107 ip_saddr = (i != NULL) ? ((((*(uint8_t *)i)) >> 4 == 4) ?
[all …]
/xnu-8019.80.24/libkern/libkern/crypto/
H A Daesxts.h57 const uint8_t *IV, // ignored
58 const uint8_t *key1, int keylen,
59 const uint8_t *key2, int tweaklen, // both keys are the same size for xts
64 int xts_encrypt(const uint8_t *pt, unsigned long ptlen,
65 uint8_t *ct,
66 …const uint8_t *tweak, // this can be considered the sector IV for this…
69 int xts_decrypt(const uint8_t *ct, unsigned long ptlen,
70 uint8_t *pt,
71 …const uint8_t *tweak, // this can be considered the sector IV for this…
/xnu-8019.80.24/libkern/libkern/coretrust/
H A Dcoretrust.h46 const uint8_t *cms_data,
48 const uint8_t *detached_data,
51 const uint8_t **leaf_certificate,
56 const uint8_t **digest_data,
62 const uint8_t *cms_data,
64 const uint8_t *detached_data,
66 const uint8_t *anchor_public_key,
70 const uint8_t **digest_data,
76 const uint8_t *provisioning_profile_data,
79 const uint8_t **profile_content,
/xnu-8019.80.24/libkern/os/
H A Dlog_encode_types.h43 OS_ENUM(os_log_fmt_hdr_flags, uint8_t,
48 OS_ENUM(os_log_fmt_cmd_type, uint8_t,
59 OS_ENUM(os_log_fmt_cmd_flags, uint8_t,
94 uint8_t hdr_cmd_cnt;
95 uint8_t hdr_data[];
101 uint8_t cmd_size;
102 uint8_t cmd_data[];
115 uint8_t *ctx_buffer;
124 uint8_t ctx_truncated : 1;
125 uint8_t ctx_allocated : 1;
/xnu-8019.80.24/osfmk/kern/
H A Dtrustcache.h41 typedef uint8_t trust_cache_hash0[CS_CDHASH_LEN];
55 uint8_t cdhash[CS_CDHASH_LEN];
56 uint8_t hash_type;
57 uint8_t flags;
108 uint32_t lookup_in_static_trust_cache(const uint8_t cdhash[CS_CDHASH_LEN]);
111 uint8_t const cdhash[CS_CDHASH_LEN],
112 uint8_t * const hash_type,
113 uint8_t * const flags);

12345678910>>...25