Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 82) sorted by relevance

1234

/openthread-latest/third_party/mbedtls/repo/tests/src/
Dpsa_exercise_key.c121 psa_key_usage_t usage, in exercise_mac_key() argument
135 if (usage & PSA_KEY_USAGE_SIGN_HASH) { in exercise_mac_key()
150 if (usage & PSA_KEY_USAGE_VERIFY_HASH) { in exercise_mac_key()
152 (usage & PSA_KEY_USAGE_SIGN_HASH ? in exercise_mac_key()
176 psa_key_usage_t usage, in exercise_cipher_key() argument
196 if (usage & PSA_KEY_USAGE_ENCRYPT) { in exercise_cipher_key()
220 if (usage & PSA_KEY_USAGE_DECRYPT) { in exercise_cipher_key()
222 if (!(usage & PSA_KEY_USAGE_ENCRYPT)) { in exercise_cipher_key()
264 psa_key_usage_t usage, in exercise_aead_key() argument
287 if (usage & PSA_KEY_USAGE_ENCRYPT) { in exercise_aead_key()
[all …]
/openthread-latest/third_party/mbedtls/repo/programs/psa/
Dpsa_constant_names_generated.c380 psa_key_usage_t usage) in psa_snprint_key_usage() argument
383 if (usage == 0) { in psa_snprint_key_usage()
392 if (usage & PSA_KEY_USAGE_COPY) { in psa_snprint_key_usage()
397 usage ^= PSA_KEY_USAGE_COPY; in psa_snprint_key_usage()
399 if (usage & PSA_KEY_USAGE_DECRYPT) { in psa_snprint_key_usage()
404 usage ^= PSA_KEY_USAGE_DECRYPT; in psa_snprint_key_usage()
406 if (usage & PSA_KEY_USAGE_DERIVE) { in psa_snprint_key_usage()
411 usage ^= PSA_KEY_USAGE_DERIVE; in psa_snprint_key_usage()
413 if (usage & PSA_KEY_USAGE_ENCRYPT) { in psa_snprint_key_usage()
418 usage ^= PSA_KEY_USAGE_ENCRYPT; in psa_snprint_key_usage()
[all …]
Dkey_ladder_demo.c211 static psa_status_t import_key_from_file(psa_key_usage_t usage, in import_key_from_file() argument
237 psa_set_key_usage_flags(&attributes, usage); in import_key_from_file()
310 static psa_status_t derive_wrapping_key(psa_key_usage_t usage, in derive_wrapping_key() argument
334 psa_set_key_usage_flags(&attributes, usage); in derive_wrapping_key()
586 static void usage(void) in usage() function
622 usage(); in main()
686 usage(); in main()
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_hmac_drbg.misc.data1 HMAC_DRBG entropy usage SHA-1
5 HMAC_DRBG entropy usage SHA-224
9 HMAC_DRBG entropy usage SHA-256
13 HMAC_DRBG entropy usage SHA-384
17 HMAC_DRBG entropy usage SHA-512
21 HMAC_DRBG entropy usage SHA3-224
25 HMAC_DRBG entropy usage SHA3-256
29 HMAC_DRBG entropy usage SHA3-384
33 HMAC_DRBG entropy usage SHA3-512
Dtest_suite_mps.data82 MPS Reader: Random usage, 20 rds, feed 100, get 200, acc 50
85 MPS Reader: Random usage, 1000 rds, feed 10, get 100, acc 80
88 MPS Reader: Random usage, 10000 rds, feed 1, get 100, acc 80
91 MPS Reader: Random usage, 100 rds, feed 100, get 1000, acc 500
Dtest_suite_psa_crypto_storage_format.function97 psa_key_usage_t usage = psa_get_key_usage_flags(attributes);
112 !(usage & (PSA_KEY_USAGE_SIGN_HASH | PSA_KEY_USAGE_SIGN_MESSAGE))) {
135 (void) usage;
234 psa_key_usage_t usage = usage_arg;
248 psa_set_key_usage_flags(&attributes, usage);
278 psa_key_usage_t usage = usage_arg;
292 psa_set_key_usage_flags(&attributes, usage);
/openthread-latest/third_party/mbedtls/repo/programs/x509/
Dcert_req.c176 usage: in main()
196 goto usage; in main()
208 goto usage; in main()
246 goto usage; in main()
256 goto usage; in main()
289 goto usage; in main()
314 goto usage; in main()
338 goto usage; in main()
347 default: goto usage; in main()
370 goto usage; in main()
[all …]
Dcert_write.c342 usage: in main()
378 goto usage; in main()
407 goto usage; in main()
414 goto usage; in main()
423 goto usage; in main()
430 goto usage; in main()
437 goto usage; in main()
444 goto usage; in main()
451 goto usage; in main()
458 goto usage; in main()
[all …]
Dcrl_app.c71 usage: in main()
81 goto usage; in main()
88 goto usage; in main()
Dreq_app.c71 usage: in main()
81 goto usage; in main()
88 goto usage; in main()
Dcert_app.c163 usage: in main()
181 goto usage; in main()
197 goto usage; in main()
214 goto usage; in main()
219 goto usage; in main()
222 goto usage; in main()
434 goto usage; in main()
/openthread-latest/third_party/mbedtls/repo/programs/ssl/
Dssl_client2.c996 usage: in main()
1042 goto usage; in main()
1059 goto usage; in main()
1064 goto usage; in main()
1076 goto usage; in main()
1081 goto usage; in main()
1086 goto usage; in main()
1093 goto usage; in main()
1101 goto usage; in main()
1123 goto usage; in main()
[all …]
Dssl_test_lib.c225 psa_key_usage_t *usage, in key_opaque_set_alg_usage() argument
235 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
238 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
241 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
244 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
247 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
250 *usage |= PSA_KEY_USAGE_DECRYPT; in key_opaque_set_alg_usage()
253 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
256 *usage |= PSA_KEY_USAGE_DERIVE; in key_opaque_set_alg_usage()
265 *usage = PSA_KEY_USAGE_SIGN_HASH | PSA_KEY_USAGE_DERIVE; in key_opaque_set_alg_usage()
[all …]
Dssl_server2.c1784 usage: in main()
1830 goto usage; in main()
1845 goto usage; in main()
1850 goto usage; in main()
1862 goto usage; in main()
1867 goto usage; in main()
1874 goto usage; in main()
1879 goto usage; in main()
1921 goto usage; in main()
1930 goto usage; in main()
[all …]
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dpsa_storage.py108 usage: Exprable, alg: Exprable, alg2: Exprable,
116 self.usage = as_expr(usage) #type: Expr
157 self.usage, self.alg, self.alg2)
183 usage=0x00000300, alg=0x05500200, alg2=0x04c01000,
194 usage=0, alg=0, alg2=0,
202 usage=0, alg=0, alg2=0,
Dpsa_information.py136 def tweak_key_pair_dependency(dep: str, usage: str):
143 if usage == "BASIC":
149 elif usage == "GENERATE":
156 def fix_key_pair_dependencies(dep_list: List[str], usage: str):
159 for new_deps in tweak_key_pair_dependency(dep, usage)]
/openthread-latest/third_party/mbedtls/repo/programs/pkey/
Ddh_genprime.c63 usage: in main()
71 goto usage; in main()
78 goto usage; in main()
81 goto usage; in main()
Dgen_key.c267 usage: in main()
290 goto usage; in main()
300 goto usage; in main()
308 goto usage; in main()
314 goto usage; in main()
320 goto usage; in main()
330 goto usage; in main()
333 goto usage; in main()
Dkey_app.c169 usage: in main()
182 goto usage; in main()
192 goto usage; in main()
201 goto usage; in main()
208 goto usage; in main()
341 goto usage; in main()
Dkey_app_writer.c287 usage: in main()
301 goto usage; in main()
311 goto usage; in main()
319 goto usage; in main()
330 goto usage; in main()
337 goto usage; in main()
456 goto usage; in main()
/openthread-latest/third_party/mbedtls/repo/library/
Dpk.c248 psa_key_usage_t usage) in mbedtls_pk_can_do_ext() argument
269 if (usage == 0 || in mbedtls_pk_can_do_ext()
270 (usage & ~(PSA_KEY_USAGE_SIGN_HASH | in mbedtls_pk_can_do_ext()
315 return (key_usage & usage) == usage; in mbedtls_pk_can_do_ext()
338 if ((key_usage & usage) != usage) { in mbedtls_pk_can_do_ext()
405 psa_key_usage_t usage, in mbedtls_pk_get_psa_attributes() argument
410 psa_key_usage_t more_usage = usage; in mbedtls_pk_get_psa_attributes()
411 if (usage == PSA_KEY_USAGE_SIGN_MESSAGE) { in mbedtls_pk_get_psa_attributes()
413 } else if (usage == PSA_KEY_USAGE_SIGN_HASH) { in mbedtls_pk_get_psa_attributes()
415 } else if (usage == PSA_KEY_USAGE_DECRYPT) { in mbedtls_pk_get_psa_attributes()
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dgenerate_psa_tests.py379 usage: Iterable[str],
388 usage_flags = set(usage)
397 super().__init__(usage=usage_expression, **kwargs)
418 self.expected_usage = self.usage #type: psa_storage.Expr
534 usage=['PSA_KEY_USAGE_EXPORT'], alg=0, alg2=0,
567 usage=usage_flags, alg=0, alg2=0,
618 usage=usage_flags, alg=alg1, alg2=alg2,
658 usage = ['PSA_KEY_USAGE_EXPORT']
662 usage=usage, alg=alg, alg2=0,
669 usage=usage, alg=0, alg2=alg,
[all …]
/openthread-latest/third_party/mbedtls/repo/programs/test/
Dzeroize.c26 void usage(void) in usage() function
46 usage(); in main()
/openthread-latest/third_party/mbedtls/repo/programs/util/
Dpem2der.c181 usage: in main()
193 goto usage; in main()
202 goto usage; in main()
/openthread-latest/third_party/mbedtls/repo/programs/cipher/
Dcipher_aead_demo.c57 const char usage[] = variable
135 puts(usage); in aead_prepare()
246 puts(usage); in main()

1234