Files
OpenCellular/host/linktest/main.c
Randall Spangler 939cc3a5c2 futility: Use only vboot 2.0 APIs for keyblocks
This refactors futility and the host library to use only vboot 2.0 APIs
to create and verify keyblocks.

BUG=chromium:611535
BRANCH=none
TEST=make runtests

Change-Id: Ia3cc1e24971b94f01bcb4890c8666a3af6f84841
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/356129
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
2016-08-10 15:30:33 -07:00

51 lines
1.0 KiB
C

/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* This tests for the presence of functions used by vboot_reference utilities.
*/
#include <stdio.h>
#include "host_common.h"
#include "file_keys.h"
#include "signature_digest.h"
int main(void)
{
/* host_key.h */
PrivateKeyReadPem(0, 0);
PrivateKeyFree(0);
PublicKeyAlloc(0, 0, 0);
PublicKeyRead(0);
PublicKeyReadKeyb(0, 0, 0);
PublicKeyWrite(0, 0);
/* host_misc.h */
ReadFile(0, 0);
WriteFile(0, 0, 0);
/* host_signature.h */
SignatureInit(0, 0, 0, 0);
SignatureAlloc(0, 0);
SignatureCopy(0, 0);
CalculateSignature(0, 0, 0);
/* host_common.h */
CreateKernelPreamble(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
/* file_keys.h */
BufferFromFile(0, 0);
RSAPublicKeyFromFile(0);
DigestFile(0, 0, 0, 0);
/* signature_digest.h */
PrependDigestInfo(0, 0);
SignatureDigest(0, 0, 0);
SignatureBuf(0, 0, 0, 0);
return 0;
}