Home
last modified time | relevance | path

Searched refs:key_algorithm (Results 1 – 5 of 5) sorted by relevance

/external/vboot_reference/host/lib/
Dhost_signature.c250 uint64_t key_algorithm, in CalculateSignature_external() argument
253 uint64_t digest_size = hash_size_map[key_algorithm]; in CalculateSignature_external()
255 const uint8_t* digestinfo = hash_digestinfo_map[key_algorithm]; in CalculateSignature_external()
256 uint64_t digestinfo_size = digestinfo_size_map[key_algorithm]; in CalculateSignature_external()
266 digest = DigestBuf(data, size, hash_type_map[key_algorithm]); in CalculateSignature_external()
281 sig = SignatureAlloc(siglen_map[key_algorithm], size); in CalculateSignature_external()
291 siglen_map[key_algorithm], /* Max Output sig size */ in CalculateSignature_external()
/external/vboot_reference/tests/
Dvb20_common2_tests.c138 int test_algorithm(int key_algorithm, const char *keys_dir) in test_algorithm() argument
141 int rsa_len = siglen_map[key_algorithm] * 8; in test_algorithm()
147 printf("***Testing algorithm: %s\n", algo_strings[key_algorithm]); in test_algorithm()
150 private_key = PrivateKeyReadPem(filename, key_algorithm); in test_algorithm()
158 PublicKeyReadKeyb(filename, key_algorithm, 1); in test_algorithm()
Dvboot_common2_tests.c212 int test_algorithm(int key_algorithm, const char *keys_dir) in test_algorithm() argument
215 int rsa_len = siglen_map[key_algorithm] * 8; in test_algorithm()
220 printf("***Testing algorithm: %s\n", algo_strings[key_algorithm]); in test_algorithm()
223 private_key = PrivateKeyReadPem(filename, key_algorithm); in test_algorithm()
230 public_key = PublicKeyReadKeyb(filename, key_algorithm, 1); in test_algorithm()
Dvb21_common2_tests.c239 int test_algorithm(int key_algorithm, const char *keys_dir) in test_algorithm() argument
242 int rsa_len = siglen_map[key_algorithm] * 8; in test_algorithm()
245 vb2_crypto_to_signature(key_algorithm); in test_algorithm()
246 enum vb2_hash_algorithm hash_alg = vb2_crypto_to_hash(key_algorithm); in test_algorithm()
253 printf("***Testing algorithm: %s\n", algo_strings[key_algorithm]); in test_algorithm()
/external/vboot_reference/host/lib/include/
Dhost_signature.h60 uint64_t key_algorithm,