summaryrefslogtreecommitdiff
path: root/board/cr50/pinweaver_tpm_imports.c
blob: abc1bed87248122f2105fba9c34f555840afd851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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>

void get_storage_seed(void *buf, size_t *len)
{
	*len = MIN(*len, sizeof(gp.SPSeed));
	memcpy(buf, &gp.SPSeed, *len);
}