Lines Matching refs:usage
380 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()
420 if (usage & PSA_KEY_USAGE_EXPORT) { in psa_snprint_key_usage()
425 usage ^= PSA_KEY_USAGE_EXPORT; in psa_snprint_key_usage()
427 if (usage & PSA_KEY_USAGE_SIGN_HASH) { in psa_snprint_key_usage()
432 usage ^= PSA_KEY_USAGE_SIGN_HASH; in psa_snprint_key_usage()
434 if (usage & PSA_KEY_USAGE_SIGN_MESSAGE) { in psa_snprint_key_usage()
439 usage ^= PSA_KEY_USAGE_SIGN_MESSAGE; in psa_snprint_key_usage()
441 if (usage & PSA_KEY_USAGE_VERIFY_DERIVATION) { in psa_snprint_key_usage()
446 usage ^= PSA_KEY_USAGE_VERIFY_DERIVATION; in psa_snprint_key_usage()
448 if (usage & PSA_KEY_USAGE_VERIFY_HASH) { in psa_snprint_key_usage()
453 usage ^= PSA_KEY_USAGE_VERIFY_HASH; in psa_snprint_key_usage()
455 if (usage & PSA_KEY_USAGE_VERIFY_MESSAGE) { in psa_snprint_key_usage()
460 usage ^= PSA_KEY_USAGE_VERIFY_MESSAGE; in psa_snprint_key_usage()
462 if (usage != 0) { in psa_snprint_key_usage()
467 "0x%08lx", (unsigned long) usage); in psa_snprint_key_usage()