mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 18:25:10 +00:00
BUG=chromium-os:26317 BRANCH=none TEST=manual sudo emerge vboot_reference emerge-link vboot_reference chromeos-u-boot chromeos-installer emerge-daisy vboot_reference chromeos-u-boot chromeos-installer Signed-off-by: Randall Spangler <rspangler@chromium.org> Change-Id: I8c55ca40f3f0cacf08530ab63c886fe351bcee8e Reviewed-on: https://gerrit.chromium.org/gerrit/41152
27 lines
579 B
C
27 lines
579 B
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.
|
|
*/
|
|
|
|
/* Test of early use of TPM_Extend.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "tlcl.h"
|
|
#include "tlcl_tests.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
uint8_t value_in[20];
|
|
uint8_t value_out[20];
|
|
|
|
TlclLibInit();
|
|
TPM_CHECK(TlclStartup());
|
|
TPM_CHECK(TlclContinueSelfTest());
|
|
TPM_CHECK(TlclExtend(1, value_in, value_out));
|
|
printf("TEST SUCCEEDED\n");
|
|
exit(0);
|
|
}
|