Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/lib/mbedtls/external/mbedtls/library/
A Dlms.c66 #define MERKLE_TREE_NODE_AM(type) ((size_t) 1 << (MBEDTLS_LMS_H_TREE_HEIGHT(type) + 1u)) argument
67 #define MERKLE_TREE_LEAF_NODE_AM(type) ((size_t) 1 << MBEDTLS_LMS_H_TREE_HEIGHT(type)) argument
238 mbedtls_lms_algorithm_type_t type; in mbedtls_lms_import_public_key() local
242 if (type != MBEDTLS_LMS_SHA256_M32_H10) { in mbedtls_lms_import_public_key()
245 ctx->params.type = type; in mbedtls_lms_import_public_key()
262 MBEDTLS_LMS_M_NODE_BYTES(ctx->params.type)); in mbedtls_lms_import_public_key()
316 if (ctx->params.type in mbedtls_lms_verify()
359 ots_params.type = ctx->params.otstype; in mbedtls_lms_verify()
564 if (type != MBEDTLS_LMS_SHA256_M32_H10) { in mbedtls_lms_generate_private_key()
576 ctx->params.type = type; in mbedtls_lms_generate_private_key()
[all …]
A Dlmots.c231 MBEDTLS_LMOTS_N_HASH_LEN(params->type)); in hash_digit_array()
400 ctx->params.type = (mbedtls_lmots_algorithm_type_t) in mbedtls_lmots_import_public_key()
417 MBEDTLS_LMOTS_N_HASH_LEN(ctx->params.type)); in mbedtls_lmots_import_public_key()
447 MBEDTLS_LMOTS_N_HASH_LEN(ctx->params.type)); in mbedtls_lmots_export_public_key()
473 if (sig_size != MBEDTLS_LMOTS_SIG_LEN(params->type) || in mbedtls_lmots_calculate_public_key_candidate()
500 *out_len = MBEDTLS_LMOTS_N_HASH_LEN(params->type); in mbedtls_lmots_calculate_public_key_candidate()
521 if (ctx->params.type != MBEDTLS_LMOTS_SHA256_N32_W8) { in mbedtls_lmots_verify()
581 if (type != MBEDTLS_LMOTS_SHA256_N32_W8) { in mbedtls_lmots_generate_private_key()
585 ctx->params.type = type; in mbedtls_lmots_generate_private_key()
762 * MBEDTLS_LMOTS_N_HASH_LEN(ctx->params.type)); in mbedtls_lmots_sign()
[all …]
A Dpsa_crypto_ecp.c91 psa_key_type_t type, size_t curve_bits, in mbedtls_psa_ecp_load_representation() argument
101 if (PSA_KEY_TYPE_IS_PUBLIC_KEY(type) && in mbedtls_psa_ecp_load_representation()
160 if (PSA_KEY_TYPE_IS_PUBLIC_KEY(type)) { in mbedtls_psa_ecp_load_representation()
228 if (PSA_KEY_TYPE_ECC_GET_FAMILY(attributes->type) == in mbedtls_psa_ecp_import_key()
238 status = mbedtls_psa_ecp_export_key(attributes->type, in mbedtls_psa_ecp_import_key()
259 if (PSA_KEY_TYPE_IS_PUBLIC_KEY(type)) { in mbedtls_psa_ecp_export_key()
299 attributes->type, attributes->bits, in mbedtls_psa_ecp_export_public_key()
307 PSA_KEY_TYPE_ECC_GET_FAMILY(attributes->type)), in mbedtls_psa_ecp_export_public_key()
328 attributes->type); in mbedtls_psa_ecp_generate_key()
529 if (!PSA_KEY_TYPE_IS_ECC_KEY_PAIR(attributes->type) || in mbedtls_psa_key_agreement_ecdh()
[all …]
A Dpk_wrap.c54 return type == MBEDTLS_PK_RSA || in rsa_can_do()
493 .type = MBEDTLS_PK_RSA,
1114 .type = MBEDTLS_PK_ECKEY,
1157 .type = MBEDTLS_PK_ECKEY_DH,
1239 .type = MBEDTLS_PK_ECDSA,
1281 return type == MBEDTLS_PK_RSA; in rsa_alt_can_do()
1383 .type = MBEDTLS_PK_RSA_ALT,
1431 .type = MBEDTLS_PK_OPAQUE,
1474 psa_key_type_t type; in rsa_opaque_decrypt() local
1511 psa_key_type_t type; in rsa_opaque_sign_wrap() local
[all …]
A Dlmots.h27 #define MBEDTLS_LMOTS_PUBLIC_KEY_LEN(type) (MBEDTLS_LMOTS_TYPE_LEN + \ argument
30 MBEDTLS_LMOTS_N_HASH_LEN(type))
35 #define MBEDTLS_LMOTS_SIG_SIGNATURE_OFFSET(type) (MBEDTLS_LMOTS_SIG_C_RANDOM_OFFSET + \ argument
36 MBEDTLS_LMOTS_C_RANDOM_VALUE_LEN(type))
226 mbedtls_lmots_algorithm_type_t type,
/lib/mbedtls/external/mbedtls/include/mbedtls/
A Dlms.h33 #define MBEDTLS_LMOTS_N_HASH_LEN(type) ((type) == MBEDTLS_LMOTS_SHA256_N32_W8 ? 32u : 0) argument
37 #define MBEDTLS_LMOTS_P_SIG_DIGIT_COUNT(type) ((type) == MBEDTLS_LMOTS_SHA256_N32_W8 ? 34u : 0) argument
38 #define MBEDTLS_LMOTS_C_RANDOM_VALUE_LEN(type) (MBEDTLS_LMOTS_N_HASH_LEN(type)) argument
40 #define MBEDTLS_LMOTS_SIG_LEN(type) (MBEDTLS_LMOTS_TYPE_LEN + \ argument
43 MBEDTLS_LMOTS_N_HASH_LEN(type)))
47 #define MBEDTLS_LMS_H_TREE_HEIGHT(type) ((type) == MBEDTLS_LMS_SHA256_M32_H10 ? 10u : 0) argument
52 #define MBEDTLS_LMS_M_NODE_BYTES(type) ((type) == MBEDTLS_LMS_SHA256_M32_H10 ? 32 : 0) argument
55 #define MBEDTLS_LMS_SIG_LEN(type, otstype) (MBEDTLS_LMOTS_Q_LEAF_ID_LEN + \ argument
61 #define MBEDTLS_LMS_PUBLIC_KEY_LEN(type) (MBEDTLS_LMS_TYPE_LEN + \ argument
64 MBEDTLS_LMS_M_NODE_BYTES(type))
[all …]
/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_psa_crypto_storage_format.current.data107 save type: AES 128-bit
135 save type: AES 128-bit, CCM
143 save type: AES 128-bit, CFB
187 save type: AES 192-bit
267 save type: AES 256-bit
347 save type: ARIA 128-bit
419 save type: ARIA 192-bit
491 save type: ARIA 256-bit
799 save type: DES 64-bit
815 save type: DES 128-bit
[all …]
A Dtest_suite_psa_crypto_storage_format.v0.data195 read type: AES 128-bit
223 read type: AES 128-bit, CCM
231 read type: AES 128-bit, CFB
275 read type: AES 192-bit
355 read type: AES 256-bit
435 read type: ARIA 128-bit
507 read type: ARIA 192-bit
579 read type: ARIA 256-bit
887 read type: DES 64-bit
903 read type: DES 128-bit
[all …]
A Dtest_suite_psa_crypto_not_supported.generated.data363 PSA import ECC_KEY_PAIR(SECP_K1) 192-bit type not supported
371 PSA import ECC_KEY_PAIR(SECP_K1) 225-bit type not supported
379 PSA import ECC_KEY_PAIR(SECP_K1) 256-bit type not supported
435 PSA import ECC_KEY_PAIR(SECP_R1) 224-bit type not supported
443 PSA import ECC_KEY_PAIR(SECP_R1) 256-bit type not supported
451 PSA import ECC_KEY_PAIR(SECP_R1) 384-bit type not supported
459 PSA import ECC_KEY_PAIR(SECP_R1) 521-bit type not supported
531 PSA import ECC_KEY_PAIR(SECP_R2) 160-bit type not supported
555 PSA import ECC_KEY_PAIR(SECT_K1) 163-bit type not supported
563 PSA import ECC_KEY_PAIR(SECT_K1) 233-bit type not supported
[all …]
A Dtest_suite_psa_crypto_metadata.function174 TEST_EQUAL(PSA_KEY_TYPE_IS_ASYMMETRIC(type),
178 (PSA_KEY_TYPE_IS_ECC(type) &&
181 (PSA_KEY_TYPE_IS_ECC(type) &&
184 (PSA_KEY_TYPE_IS_DH(type) &&
187 (PSA_KEY_TYPE_IS_DH(type) &&
190 TEST_PARITY(type);
628 psa_key_type_t type = type_arg;
640 TEST_EQUAL(PSA_KEY_TYPE_PUBLIC_KEY_OF_KEY_PAIR(type), type);
649 TEST_EQUAL(PSA_KEY_TYPE_KEY_PAIR_OF_PUBLIC_KEY(type), type);
657 psa_key_type_t type = type_arg;
[all …]
/lib/mbedtls/external/mbedtls/include/psa/
A Dcrypto_values.h379 #define PSA_KEY_TYPE_IS_VENDOR_DEFINED(type) \ argument
380 (((type) & PSA_KEY_TYPE_VENDOR_FLAG) != 0)
386 #define PSA_KEY_TYPE_IS_UNSTRUCTURED(type) \ argument
412 #define PSA_KEY_TYPE_KEY_PAIR_OF_PUBLIC_KEY(type) \ argument
413 ((type) | PSA_KEY_TYPE_CATEGORY_FLAG_PAIR)
424 #define PSA_KEY_TYPE_PUBLIC_KEY_OF_KEY_PAIR(type) \ argument
425 ((type) & ~PSA_KEY_TYPE_CATEGORY_FLAG_PAIR)
731 #define PSA_KEY_TYPE_DH_GET_FAMILY(type) \ argument
732 ((psa_dh_family_t) (PSA_KEY_TYPE_IS_DH(type) ? \
744 #define PSA_GET_KEY_TYPE_BLOCK_SIZE_EXPONENT(type) \ argument
[all …]
/lib/lwip/lwip/src/include/lwip/priv/
A Dtcpip_priv.h57 #define API_VAR_DECLARE(type, name) type * name argument
58 #define API_VAR_ALLOC_EXT(type, pool, name, errorblock) do { \ argument
59 name = (type *)memp_malloc(pool); \
64 #define API_VAR_ALLOC(type, pool, name, errorval) API_VAR_ALLOC_EXT(type, pool, name, return errorv… argument
65 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) do { \ argument
66 name = (type *)LWIP_MEMPOOL_ALLOC(pool); \
84 #define API_VAR_DECLARE(type, name) type name argument
85 #define API_VAR_ALLOC_EXT(type, pool, name, errorblock) argument
86 #define API_VAR_ALLOC(type, pool, name, errorval) argument
87 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) argument
[all …]
/lib/lwip/lwip/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/
A DMibModule.cs147 if (type != null)
149 result.Add(type);
223 if (type == Symbol.Object) in ParseEntity()
237 if (type == Symbol.ModuleIdentity) in ParseEntity()
242 if (type == Symbol.ObjectType) in ParseEntity()
247 if (type == Symbol.ObjectGroup) in ParseEntity()
257 if (type == Symbol.ModuleCompliance) in ParseEntity()
262 if (type == Symbol.NotificationType) in ParseEntity()
267 if (type == Symbol.ObjectIdentity) in ParseEntity()
272 if (type == Symbol.Macro) in ParseEntity()
[all …]
/lib/lwip/lwip/src/core/ipv4/
A Dicmp.c82 u8_t type; in icmp_input() local
105 type = *((u8_t *)p->payload); in icmp_input()
111 switch (type) { in icmp_input()
258 if (type == ICMP_DUR) { in icmp_input()
269 } else if (type == ICMP_TE) { in icmp_input()
271 } else if (type == ICMP_PP) { in icmp_input()
273 } else if (type == ICMP_SQ) { in icmp_input()
275 } else if (type == ICMP_RD) { in icmp_input()
277 } else if (type == ICMP_TS) { in icmp_input()
281 } else if (type == ICMP_AM) { in icmp_input()
[all …]
/lib/efi_selftest/
A Defi_selftest_exitbootservices.c20 unsigned int type[CAPACITY]; member
25 unsigned int type; member
34 .type = 1,
39 .type = 2,
55 ctx->record->type[ctx->record->count] = ctx->type; in ebs_notify()
112 if (record.type[0] != 1) { in execute()
116 if (record.type[1] != 2) { in execute()
/lib/lwip/lwip/src/include/lwip/
A Dip6_zone.h179 #define ip6_addr_has_scope(ip6addr, type) \ argument
180 (ip6_addr_islinklocal(ip6addr) || (((type) != IP6_UNICAST) && \
200 #define ip6_addr_assign_zone(ip6addr, type, netif) \ argument
202 ip6_addr_has_scope((ip6addr), (type)) ? netif_get_index(netif) : 0))
230 #define ip6_addr_lacks_zone(ip6addr, type) \ argument
231 (!ip6_addr_has_zone(ip6addr) && ip6_addr_has_scope((ip6addr), (type)))
272 #define ip6_addr_has_scope(ip6addr, type) (0)
273 #define ip6_addr_assign_zone(ip6addr, type, netif)
275 #define ip6_addr_lacks_zone(ip6addr, type) (0)
/lib/lwip/lwip/src/include/lwip/prot/
A Dnd6.h54 PACK_STRUCT_FLD_8(u8_t type);
72 PACK_STRUCT_FLD_8(u8_t type);
94 PACK_STRUCT_FLD_8(u8_t type);
119 PACK_STRUCT_FLD_8(u8_t type);
140 PACK_STRUCT_FLD_8(u8_t type);
161 PACK_STRUCT_FLD_8(u8_t type);
181 PACK_STRUCT_FLD_8(u8_t type);
203 PACK_STRUCT_FLD_8(u8_t type);
221 PACK_STRUCT_FLD_8(u8_t type);
238 PACK_STRUCT_FLD_8(u8_t type);
[all …]
/lib/efi_driver/
A Defi_reset_riscv.c13 register unsigned long type asm("a0"); in efi_reset_system()
18 type = SBI_SRST_RESET_TYPE_WARM_REBOOT; in efi_reset_system()
21 type = SBI_SRST_RESET_TYPE_SHUTDOWN; in efi_reset_system()
24 type = SBI_SRST_RESET_TYPE_COLD_REBOOT; in efi_reset_system()
28 : : "r" (eid), "r" (fid), "r" (type), "r" (reason)); in efi_reset_system()
/lib/mbedtls/external/mbedtls/tests/scripts/
A Dgenerate_server9_bad_saltlen.py34 parser.add_argument('--ca-name', type=str, required=True,
36 parser.add_argument('--ca-password', type=str,
38 parser.add_argument('--csr', type=str, required=True,
40 parser.add_argument('--openssl-extfile', type=str,
42 parser.add_argument('--anounce_saltlen', type=auto_int,
44 parser.add_argument('--actual_saltlen', type=auto_int,
46 parser.add_argument('--output', type=str, required=True)
/lib/lwip/lwip/src/core/ipv6/
A Dicmp6.c66 static void icmp6_send_response(struct pbuf *p, u8_t code, u32_t data, u8_t type);
68 u8_t type, const ip6_addr_t *src_addr, const ip6_addr_t *dest_addr);
70 u8_t type, const ip6_addr_t *src_addr, const ip6_addr_t *dest_addr, struct netif *netif);
115 switch (icmp6hdr->type) { in icmp6_input()
183 ((struct icmp6_echo_hdr *)(r->payload))->type = ICMP6_TYPE_EREP; in icmp6_input()
309 icmp6_send_response(struct pbuf *p, u8_t code, u32_t data, u8_t type) in icmp6_send_response() argument
323 icmp6_send_response_with_addrs_and_netif(p, code, data, type, reply_src, reply_dest, netif); in icmp6_send_response()
346 icmp6_send_response_with_addrs(struct pbuf *p, u8_t code, u32_t data, u8_t type, in icmp6_send_response_with_addrs() argument
368 icmp6_send_response_with_addrs_and_netif(p, code, data, type, reply_src, in icmp6_send_response_with_addrs()
385 icmp6_send_response_with_addrs_and_netif(struct pbuf *p, u8_t code, u32_t data, u8_t type, in icmp6_send_response_with_addrs_and_netif() argument
[all …]
/lib/efi_loader/
A Defi_device_path.c28 .type = DEVICE_PATH_TYPE_END,
55 if (dp->type == DEVICE_PATH_TYPE_END) in efi_dp_next()
58 if (dp->type == DEVICE_PATH_TYPE_END) in efi_dp_next()
179 if (!dp || dp->type == DEVICE_PATH_TYPE_END) in efi_dp_last_node()
192 if (!dp || dp->type == DEVICE_PATH_TYPE_END) in efi_dp_instance_size()
208 while (p->type != DEVICE_PATH_TYPE_END || in efi_dp_size()
326 ret->type = type; in efi_dp_create_device_node()
390 while (p->type != DEVICE_PATH_TYPE_END) in efi_dp_is_multi_instance()
850 fp->dp.type = DEVICE_PATH_TYPE_MEDIA_DEVICE; in efi_dp_from_file()
1063 p->type = DEVICE_PATH_TYPE_END; in efi_dp_split_file_path()
[all …]
/lib/mbedtls/external/mbedtls/programs/cipher/
A Dcipher_aead_demo.c121 mbedtls_cipher_type_t type; in aead_prepare() local
123 type = MBEDTLS_CIPHER_AES_128_GCM; in aead_prepare()
126 type = MBEDTLS_CIPHER_AES_256_GCM; in aead_prepare()
129 type = MBEDTLS_CIPHER_AES_128_GCM; in aead_prepare()
132 type = MBEDTLS_CIPHER_CHACHA20_POLY1305; in aead_prepare()
141 mbedtls_cipher_info_from_type(type))); in aead_prepare()
159 mbedtls_cipher_type_t type = mbedtls_cipher_get_type(ctx); in aead_info() local
160 const mbedtls_cipher_info_t *info = mbedtls_cipher_info_from_type(type); in aead_info()
/lib/mbedtls/external/mbedtls/programs/test/
A Dudp_proxy.c480 const char *type; member
499 p->way, p->type, p->len); in print_packet()
502 p->way, p->type, p->len, why); in print_packet()
538 strcmp(p->type, "ClientHello") == 0) { in send_packet()
545 strcmp(p->type, "CID") == 0 && in send_packet()
562 strcmp(p->type, "ApplicationData") == 0) { in send_packet()
587 strcmp(p->type, "ApplicationData") != 0 && in send_packet()
600 strcmp(p->type, "ApplicationData") == 0) { in send_packet()
685 cur.type = msg_type(cur.buf, cur.len); in handle_message()
723 strcmp(cur.type, "CID") != 0 && in handle_message()
[all …]
/lib/acpi/
A Dacpi_dp.c23 switch (prop->type) { in acpi_dp_write_value()
81 switch (dp->type) { in acpi_dp_free()
105 if (table->type != ACPI_DP_TYPE_TABLE) in acpi_dp_write_internal()
119 if (dp->type == ACPI_DP_TYPE_CHILD) { in acpi_dp_write_internal()
162 if (dp->type == ACPI_DP_TYPE_CHILD) in acpi_dp_write_internal()
173 if (dp->type == ACPI_DP_TYPE_CHILD) { in acpi_dp_write_internal()
198 static struct acpi_dp *acpi_dp_new(struct acpi_dp *dp, enum acpi_dp_type type, in acpi_dp_new() argument
208 new->type = type; in acpi_dp_new()
272 if (child->type != ACPI_DP_TYPE_TABLE) in acpi_dp_add_child()
290 if (array->type != ACPI_DP_TYPE_TABLE) in acpi_dp_add_array()
/lib/lwip/lwip/src/core/
A Dmemp.c337 memp_malloc(memp_t type) in memp_malloc() argument
339 memp_malloc_fn(memp_t type, const char *file, const int line) in memp_malloc()
343 LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;); in memp_malloc()
350 memp = do_memp_malloc_pool(memp_pools[type]); in memp_malloc()
352 memp = do_memp_malloc_pool_fn(memp_pools[type], file, line); in memp_malloc()
420 memp_free(memp_t type, void *mem) in memp_free() argument
426 LWIP_ERROR("memp_free: type < MEMP_MAX", (type < MEMP_MAX), return;); in memp_free()
437 old_first = *memp_pools[type]->tab; in memp_free()
440 do_memp_free_pool(memp_pools[type], mem); in memp_free()
444 LWIP_HOOK_MEMP_AVAILABLE(type); in memp_free()

Completed in 899 milliseconds

12345678910>>...12