1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /*
7  * This tests for the presence of functions used by vboot_reference utilities.
8  */
9 
10 #include <stdio.h>
11 
12 #include "host_common.h"
13 #include "file_keys.h"
14 #include "signature_digest.h"
15 
main(void)16 int main(void)
17 {
18   /* host_key.h */
19   PrivateKeyReadPem(0, 0);
20   PrivateKeyFree(0);
21   PublicKeyAlloc(0, 0, 0);
22   PublicKeyRead(0);
23   PublicKeyReadKeyb(0, 0, 0);
24   PublicKeyWrite(0, 0);
25 
26   /* host_keyblock.h */
27   KeyBlockCreate(0, 0, 0);
28   KeyBlockRead(0);
29   KeyBlockWrite(0, 0);
30 
31   /* host_misc.h */
32   ReadFile(0, 0);
33   WriteFile(0, 0, 0);
34 
35   /* host_signature.h */
36   SignatureInit(0, 0, 0, 0);
37   SignatureAlloc(0, 0);
38   SignatureCopy(0, 0);
39   CalculateChecksum(0, 0);
40   CalculateSignature(0, 0, 0);
41 
42   /* host_common.h */
43   CreateFirmwarePreamble(0, 0, 0, 0, 0);
44   CreateKernelPreamble(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
45 
46   /* file_keys.h */
47   BufferFromFile(0, 0);
48   RSAPublicKeyFromFile(0);
49   DigestFile(0, 0);
50 
51   /* signature_digest.h */
52   PrependDigestInfo(0, 0);
53   SignatureDigest(0, 0, 0);
54   SignatureBuf(0, 0, 0, 0);
55 
56   return 0;
57 }
58