blob: eec2284dfdf2fb2cbf1253c4e96015f41845c00b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* Copyright 2018 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.
*/
#include <pinweaver_tpm_imports.h>
#include <Global.h>
#include <util.h>
uint32_t get_restart_count(void)
{
return gp.resetCount;
}
void get_storage_seed(void *buf, size_t *len)
{
*len = MIN(*len, sizeof(gp.SPSeed));
memcpy(buf, &gp.SPSeed, *len);
}
|