Home
last modified time | relevance | path

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

12345678910>>...28

/xnu-8796.141.3/EXTERNAL_HEADERS/corecrypto/
H A Dccder.h138 uint8_t *ccder_encode_tag(ccder_tag tag, const uint8_t *der, uint8_t *der_end);
143 uint8_t *ccder_encode_len(size_t len, const uint8_t *der, uint8_t *der_end);
147 uint8_t *ccder_encode_tl(ccder_tag tag, size_t len, const uint8_t *der, uint8_t *der_end);
150 uint8_t *ccder_encode_body_nocopy(size_t size, const uint8_t *der, uint8_t *der_end);
157 uint8_t *ccder_encode_constructed_tl(ccder_tag tag, const uint8_t *body_end, const uint8_t *der, ui…
161 uint8_t *ccder_encode_oid(ccoid_t oid, const uint8_t *der, uint8_t *der_end);
164 uint8_t *ccder_encode_implicit_integer(ccder_tag implicit_tag, cc_size n, const cc_unit *s, const u…
167 uint8_t *ccder_encode_integer(cc_size n, const cc_unit *s, const uint8_t *der, uint8_t *der_end);
170 uint8_t *ccder_encode_implicit_uint64(ccder_tag implicit_tag, uint64_t value, const uint8_t *der, u…
173 uint8_t *ccder_encode_uint64(uint64_t value, const uint8_t *der, uint8_t *der_end);
[all …]
H A Dccrsa.h181 size_t e_nbytes, const uint8_t *cc_counted_by(e_nbytes) e_bytes,
182 size_t p_nbytes, const uint8_t *cc_counted_by(p_nbytes) p_bytes,
183 size_t q_nbytes, const uint8_t *cc_counted_by(q_nbytes) q_bytes);
204 size_t m_nbytes, const uint8_t *cc_counted_by(m_nbytes) m_bytes,
205 size_t e_nbytes, const uint8_t *cc_counted_by(e_nbytes) e_bytes,
206 size_t d_nbytes, const uint8_t *cc_counted_by(d_nbytes) d_bytes,
226 size_t exp_nbytes, const uint8_t *cc_counted_by(exp_nbytes) exp,
227 size_t mod_nbytes, const uint8_t *cc_counted_by(mod_nbytes) mod);
285 size_t e_nbytes, const uint8_t *cc_sized_by(e_nbytes) e,
286 … size_t entropy_nbytes, const uint8_t *cc_sized_by(entropy_nbytes) entropy,
[all …]
H A Dcc_priv.h91 CC_INLINE void cc_store64_be(uint64_t x, uint8_t cc_sized_by(8) * y)
99 CC_INLINE uint64_t cc_load64_be(const uint8_t cc_sized_by(8) * y)
109 CC_INLINE void cc_store64_be(uint64_t x, uint8_t cc_sized_by(8) * y)
111 y[0] = (uint8_t)(x >> 56);
112 y[1] = (uint8_t)(x >> 48);
113 y[2] = (uint8_t)(x >> 40);
114 y[3] = (uint8_t)(x >> 32);
115 y[4] = (uint8_t)(x >> 24);
116 y[5] = (uint8_t)(x >> 16);
117 y[6] = (uint8_t)(x >> 8);
[all …]
H A Dccmode_siv_hmac.h38 const uint8_t *key,
40 … int (*CC_SPTR(ccmode_siv_hmac, set_nonce))(ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in);
41 int (*CC_SPTR(ccmode_siv_hmac, auth))(ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in);
42 …SPTR(ccmode_siv_hmac, crypt))(ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in, uint8_t *out);
113 …t ccmode_siv_hmac *mode, ccsiv_hmac_ctx *ctx, size_t key_byte_len, const uint8_t *key, size_t tag_…
130 …mac_aad(const struct ccmode_siv_hmac *mode, ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in);
145 …t_nonce(const struct ccmode_siv_hmac *mode, ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in);
169 …struct ccmode_siv_hmac *mode, ccsiv_hmac_ctx *ctx, size_t nbytes, const uint8_t *in, uint8_t *out);
201 const uint8_t *key,
204 const uint8_t *nonce,
[all …]
H A Dccchacha20poly1305.h29 uint8_t buffer[CCCHACHA20_BLOCK_NBYTES];
40 uint8_t buf[16];
42 uint8_t key[16];
109 uint8_t state;
134 …struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, const uint8_t *cc_counted_by(CC…
161 …struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, const uint8_t *cc_counted_by(CC…
162 …const struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, uint8_t *cc_counted_by(CC…
211 …const struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, uint8_t *cc_counted_by(CC…
243 …struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, const uint8_t *cc_counted_by(CC…
273uint8_t *cc_counted_by(CCCHACHA20POLY1305_KEY_NBYTES) key, const uint8_t *cc_counted_by(CCCHACHA20…
[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-8796.141.3/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,
89 uint8_t mmco_flags;
117 uint8_t mmjo_kind;
118 uint8_t mmjo_len;
120 uint8_t mmjo_subtype_bkp;
121 uint8_t mmjo_addr_id;
128 uint8_t mmjo_kind;
[all …]
/xnu-8796.141.3/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 Dif_var_status.h235 enum ifnet_interface_advisory_version : uint8_t {
254 enum ifnet_interface_advisory_direction : uint8_t {
259 enum ifnet_interface_advisory_interface_type : uint8_t {
280 uint8_t reserved;
341 enum ifnet_interface_advisory_wifi_freq_band : uint8_t {
360 uint8_t intermittent_state;
374 uint8_t bt_coex;
378 uint8_t quality_score_delay;
382 uint8_t quality_score_loss;
386 uint8_t quality_score_channel;
[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 Dpktap.h114 uint8_t pth_pad1;
121 uint8_t pth_pad2;
145 uint8_t llhdr[16];
159 uint8_t pth_length; /* length of this header */
160 uint8_t pth_uuid_offset; /* max size: sizeof(uuid_t) */
161 uint8_t pth_e_uuid_offset; /* max size: sizeof(uuid_t) */
162 uint8_t pth_ifname_offset; /* max size: PKTAP_IFXNAMESIZE*/
163 uint8_t pth_comm_offset; /* max size: PKTAP_MAX_COMM_SIZE */
164 uint8_t pth_e_comm_offset; /* max size: PKTAP_MAX_COMM_SIZE */
180 uint8_t pth_uuid[sizeof(uuid_t)];
[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);
/xnu-8796.141.3/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.h59 extern void lz4_encode_2gb(uint8_t **dst_ptr, size_t dst_size,
60 const uint8_t **src_ptr, const uint8_t *src_begin, size_t src_size,
63 extern int lz4_decode(uint8_t **dst_ptr, uint8_t *dst_begin, uint8_t *dst_end,
64 const uint8_t **src_ptr, const uint8_t *src_end);
67 extern int lz4_decode_asm(uint8_t **dst_ptr, uint8_t *dst_begin, uint8_t *dst_end,
68 const uint8_t **src_ptr, const uint8_t *src_end);
78 size_t lz4raw_encode_buffer(uint8_t * __restrict dst_buffer, size_t dst_size,
79 const uint8_t * __restrict src_buffer, size_t src_size,
82 size_t lz4raw_decode_buffer(uint8_t * __restrict dst_buffer, size_t dst_size,
83 const uint8_t * __restrict src_buffer, size_t src_size,
[all …]
H A Dpmap_cs.h98 uint8_t img4_payload[0];
114 const uint8_t check_uuid[kUUIDSize]);
141 const uint8_t cdhash[kTCEntryHashSize],
152 const uint8_t cdhash[kTCEntryHashSize],
227 uint8_t profile_blob[0];
356 uint8_t first_cdhash[CS_HASH_MAX_SIZE];
357 const uint8_t *first_cd;
359 const uint8_t *cms_blob;
406 uint8_t cdhash[CS_CDHASH_LEN];
416 const uint8_t *profile;
[all …]
/xnu-8796.141.3/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,
[all …]
/xnu-8796.141.3/osfmk/arm/
H A Dcpu_x86_64_capabilities.h90 /* 0 */ uint8_t signature[16];
92 /* 18 */ uint8_t _unused[6];
95 /* 24 */ uint8_t _unused0[2];
100 /* 34 */ volatile uint8_t active_cpus;
101 /* 35 */ uint8_t physical_cpus;
102 /* 36 */ uint8_t logical_cpus;
103 /* 37 */ uint8_t _unused1[1];
108 /* 4C */ uint8_t cp_dtrace_dof_enabled;
109 /* 4D */ uint8_t cp_kernel_page_shift; /* _COMM_PAGE_VERSION >= 14 */
110 /* 4E */ uint8_t cp_user_page_shift; /* _COMM_PAGE_VERSION >= 14 */
[all …]
/xnu-8796.141.3/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-8796.141.3/EXTERNAL_HEADERS/TrustCache/
H A DRawTypes.h40 typedef uint8_t TrustCacheEntry0_t[kTCEntryHashSize];
47 uint8_t uuid[kUUIDSize];
59 uint8_t CDHash[kTCEntryHashSize];
60 uint8_t hashType;
61 uint8_t flags;
69 uint8_t uuid[kUUIDSize];
81 uint8_t CDHash[kTCEntryHashSize];
82 uint8_t hashType;
83 uint8_t flags;
84 uint8_t constraintCategory;
[all …]
/xnu-8796.141.3/san/memory/
H A Dkasan-tbi.c53 uintptr_t kasan_tbi_tag_range(uintptr_t, size_t, uint8_t);
85 static uint8_t kasan_tbi_full_tags[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14};
86 static uint8_t kasan_tbi_odd_tags[] = {1, 3, 5, 7, 9, 11, 13};
87 static uint8_t kasan_tbi_even_tags[] = {2, 4, 6, 8, 10, 12, 14};
203 vm_size_t rightrz, uint8_t flags) in kasan_poison()
214 uint8_t tag = flags ? flags : KASAN_TBI_DEFAULT_TAG; in kasan_poison()
235 static inline uint8_t
242 static inline uint8_t
246 uint8_t tag = 0xF0; in kasan_tbi_odd_even_tag()
258 kasan_tbi_tag_range(uintptr_t addr, size_t sz, uint8_t tag) in kasan_tbi_tag_range()
[all …]
/xnu-8796.141.3/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-8796.141.3/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-8796.141.3/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-8796.141.3/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;
123 uint8_t ctx_truncated : 1;
124 uint8_t ctx_allocated : 1;
/xnu-8796.141.3/iokit/Kernel/
H A DIONVRAMCHRPHandler.cpp42 uint8_t sig;
43 uint8_t cksum; // checksum on sig, len, and name
47 uint8_t data[0];
54 uint8_t padding[8];
73 uint8_t *_nvramImage;
87 IOReturn unserializeImage(const uint8_t *image, IOByteCount length);
93 static OSSharedPtr<OSData> unescapeBytesToData(const uint8_t *bytes, uint32_t length);
96 …static bool convertPropToObject(const uint8_t *propName, uint32_t propNameLength, const uint8_t *p…
98 …static bool convertPropToObject(const uint8_t *propName, uint32_t propNameLength, const uint8_t *p…
100 …static bool convertObjectToProp(uint8_t *buffer, uint32_t *length, const OSSymbol *propSymbol, OSO…
[all …]

12345678910>>...28