Home
last modified time | relevance | path

Searched refs:hash_alg (Results 1 – 2 of 2) sorted by relevance

/arm-trusted-firmware-2.8.0/tools/cert_create/src/
A Dsha.c20 static int get_algorithm_nid(int hash_alg) in get_algorithm_nid() argument
23 if (hash_alg < 0 || hash_alg >= sizeof(nids) / sizeof(*nids)) { in get_algorithm_nid()
26 return nids[hash_alg]; in get_algorithm_nid()
A Dmain.c63 static int hash_alg; variable
319 hash_alg = HASH_ALG_SHA256; in main()
385 hash_alg = get_hash_alg(optarg); in main()
386 if (hash_alg < 0) { in main()
423 if (hash_alg == HASH_ALG_SHA384) { in main()
426 } else if (hash_alg == HASH_ALG_SHA512) { in main()
527 if (!sha_file(hash_alg, ext->arg, md)) { in main()
552 if (!cert_new(hash_alg, cert, VAL_DAYS, 0, sk)) { in main()

Completed in 5 milliseconds