Home
last modified time | relevance | path

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

123

/mbedtls-3.4.0/tests/src/
Dpsa_exercise_key.c118 psa_key_usage_t usage, in exercise_mac_key() argument
132 if( usage & PSA_KEY_USAGE_SIGN_HASH ) in exercise_mac_key()
142 if( usage & PSA_KEY_USAGE_VERIFY_HASH ) in exercise_mac_key()
145 ( usage & PSA_KEY_USAGE_SIGN_HASH ? in exercise_mac_key()
163 psa_key_usage_t usage, in exercise_cipher_key() argument
181 if( usage & PSA_KEY_USAGE_ENCRYPT ) in exercise_cipher_key()
201 if( usage & PSA_KEY_USAGE_DECRYPT ) in exercise_cipher_key()
205 if( ! ( usage & PSA_KEY_USAGE_ENCRYPT ) ) in exercise_cipher_key()
242 psa_key_usage_t usage, in exercise_aead_key() argument
264 if( usage & PSA_KEY_USAGE_ENCRYPT ) in exercise_aead_key()
[all …]
/mbedtls-3.4.0/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.c224 static psa_status_t import_key_from_file( psa_key_usage_t usage, in import_key_from_file() argument
251 psa_set_key_usage_flags( &attributes, usage ); in import_key_from_file()
326 static psa_status_t derive_wrapping_key( psa_key_usage_t usage, in derive_wrapping_key() argument
350 psa_set_key_usage_flags( &attributes, usage ); in derive_wrapping_key()
603 static void usage( void ) in usage() function
640 usage( ); in main()
713 usage( ); in main()
/mbedtls-3.4.0/programs/ssl/
Dssl_test_lib.c234 psa_key_usage_t *usage, in key_opaque_set_alg_usage() argument
247 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
252 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
257 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
262 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
267 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
272 *usage |= PSA_KEY_USAGE_DECRYPT; in key_opaque_set_alg_usage()
277 *usage |= PSA_KEY_USAGE_SIGN_HASH; in key_opaque_set_alg_usage()
282 *usage |= PSA_KEY_USAGE_DERIVE; in key_opaque_set_alg_usage()
296 *usage = PSA_KEY_USAGE_SIGN_HASH | PSA_KEY_USAGE_DERIVE; in key_opaque_set_alg_usage()
[all …]
Dssl_client2.c869 usage: in main()
977 goto usage; in main()
994 goto usage; in main()
1000 goto usage; in main()
1016 goto usage; in main()
1022 goto usage; in main()
1028 goto usage; in main()
1036 goto usage; in main()
1045 goto usage; in main()
1066 goto usage; in main()
[all …]
Dssl_server2.c1619 usage: in main()
1740 goto usage; in main()
1755 goto usage; in main()
1761 goto usage; in main()
1777 goto usage; in main()
1783 goto usage; in main()
1791 goto usage; in main()
1797 goto usage; in main()
1837 goto usage; in main()
1847 goto usage; in main()
[all …]
Dssl_mail_client.c390 usage: in main()
421 goto usage; in main()
432 goto usage; in main()
438 goto usage; in main()
444 goto usage; in main()
467 goto usage; in main()
472 goto usage; in main()
/mbedtls-3.4.0/programs/x509/
Dcert_req.c164 usage: in main()
185 goto usage; in main()
198 goto usage; in main()
211 goto usage; in main()
237 goto usage; in main()
248 default: goto usage; in main()
273 goto usage; in main()
284 default: goto usage; in main()
288 goto usage; in main()
Dcert_write.c278 usage: in main()
313 goto usage; in main()
357 goto usage; in main()
367 goto usage; in main()
377 goto usage; in main()
387 goto usage; in main()
397 goto usage; in main()
407 goto usage; in main()
416 goto usage; in main()
425 goto usage; in main()
[all …]
Dcert_app.c168 usage: in main()
187 goto usage; in main()
203 goto usage; in main()
221 goto usage; in main()
227 goto usage; in main()
230 goto usage; in main()
463 goto usage; in main()
Dcrl_app.c76 usage: in main()
87 goto usage; in main()
93 goto usage; in main()
Dreq_app.c76 usage: in main()
87 goto usage; in main()
93 goto usage; in main()
/mbedtls-3.4.0/scripts/mbedtls_dev/
Dpsa_storage.py115 usage: Exprable, alg: Exprable, alg2: Exprable,
123 self.usage = as_expr(usage) #type: Expr
164 self.usage, self.alg, self.alg2)
190 usage=0x00000300, alg=0x05500200, alg2=0x04c01000,
201 usage=0, alg=0, alg2=0,
209 usage=0, alg=0, alg2=0,
/mbedtls-3.4.0/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
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.function156 psa_key_usage_t usage = psa_get_key_usage_flags( attributes );
171 ! ( usage & ( PSA_KEY_USAGE_SIGN_HASH | PSA_KEY_USAGE_SIGN_MESSAGE ) ) )
212 (void) usage;
316 psa_key_usage_t usage = usage_arg;
330 psa_set_key_usage_flags( &attributes, usage );
360 psa_key_usage_t usage = usage_arg;
374 psa_set_key_usage_flags( &attributes, usage );
/mbedtls-3.4.0/programs/pkey/
Dgen_key.c208 usage: in main()
231 goto usage; in main()
241 goto usage; in main()
250 goto usage; in main()
257 goto usage; in main()
263 goto usage; in main()
273 goto usage; in main()
276 goto usage; in main()
Ddh_genprime.c76 usage: in main()
85 goto usage; in main()
92 goto usage; in main()
95 goto usage; in main()
Dkey_app.c109 usage: in main()
123 goto usage; in main()
133 goto usage; in main()
142 goto usage; in main()
150 goto usage; in main()
296 goto usage; in main()
Dkey_app_writer.c226 usage: in main()
241 goto usage; in main()
251 goto usage; in main()
260 goto usage; in main()
272 goto usage; in main()
279 goto usage; in main()
414 goto usage; in main()
/mbedtls-3.4.0/tests/scripts/
Dgenerate_psa_tests.py455 usage: Iterable[str],
464 usage_flags = set(usage)
473 super().__init__(usage=usage_expression, **kwargs)
494 self.expected_usage = self.usage #type: psa_storage.Expr
608 usage=['PSA_KEY_USAGE_EXPORT'], alg=0, alg2=0,
641 usage=usage_flags, alg=0, alg2=0,
692 usage=usage_flags, alg=alg1, alg2=alg2,
732 usage = ['PSA_KEY_USAGE_EXPORT']
736 usage=usage, alg=alg, alg2=0,
743 usage=usage, alg=0, alg2=alg,
[all …]
/mbedtls-3.4.0/library/
Dpk.c231 psa_key_usage_t usage ) in mbedtls_pk_can_do_ext() argument
250 if( usage == 0 || in mbedtls_pk_can_do_ext()
251 ( usage & ~( PSA_KEY_USAGE_SIGN_HASH | in mbedtls_pk_can_do_ext()
294 return( ( key_usage & usage ) == usage ); in mbedtls_pk_can_do_ext()
311 if( ( key_usage & usage ) != usage ) in mbedtls_pk_can_do_ext()
814 psa_key_usage_t usage, in mbedtls_pk_wrap_as_opaque() argument
821 ((void) usage); in mbedtls_pk_wrap_as_opaque()
849 psa_set_key_usage_flags( &attributes, usage ); in mbedtls_pk_wrap_as_opaque()
883 psa_set_key_usage_flags( &attributes, usage ); in mbedtls_pk_wrap_as_opaque()
/mbedtls-3.4.0/programs/test/
Dzeroize.c38 void usage( void ) in usage() function
59 usage(); in main()
/mbedtls-3.4.0/programs/util/
Dpem2der.c187 usage: in main()
200 goto usage; in main()
208 goto usage; in main()
/mbedtls-3.4.0/programs/cipher/
Dcipher_aead_demo.c69 const char usage[] = variable
146 puts( usage ); in aead_prepare()
258 puts( usage ); in main()

123