mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 18:25:10 +00:00
1. Increase kernel preamble revision from 2.1 to 2.2. 2. Add flags field to kernel preamble. 3. Update futility to accept flags parameter for vbutil_kernel and cmd_sign for kernel. 4. Pass in an extra flags field to SignKernelBlob and CreateKernelPreamble. BUG=chrome-os-partner:35861 BRANCH=None TEST=1) "make runalltests" completes successfully. 2) vboot_reference compiles successfully for ryu. 3) Verified flags field in header using futility show. Change-Id: If9f06f98778a7339194c77090cbef4807d5e34e2 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/245950 Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org>
58 lines
1.2 KiB
C
58 lines
1.2 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_keyblock.h */
|
|
KeyBlockCreate(0, 0, 0);
|
|
KeyBlockRead(0);
|
|
KeyBlockWrite(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);
|
|
CalculateChecksum(0, 0);
|
|
CalculateSignature(0, 0, 0);
|
|
|
|
/* host_common.h */
|
|
CreateFirmwarePreamble(0, 0, 0, 0, 0);
|
|
CreateKernelPreamble(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
|
|
/* file_keys.h */
|
|
BufferFromFile(0, 0);
|
|
RSAPublicKeyFromFile(0);
|
|
DigestFile(0, 0);
|
|
|
|
/* signature_digest.h */
|
|
PrependDigestInfo(0, 0);
|
|
SignatureDigest(0, 0, 0);
|
|
SignatureBuf(0, 0, 0, 0);
|
|
|
|
return 0;
|
|
}
|