• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stefanberger / libtpms / #2063

11 Feb 2026 02:58PM UTC coverage: 77.18% (-0.02%) from 77.195%
#2063

push

travis-ci

web-flow
Merge c175b6f1e into c2a8109f8

1174 of 1370 new or added lines in 95 files covered. (85.69%)

2190 existing lines in 89 files now uncovered.

36347 of 47094 relevant lines covered (77.18%)

125164.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/tpm2/TPMCmd/Platform/src/ExtraData.c
1
// SPDX-License-Identifier: BSD-2-Clause
2

3
//** Description
4
//
5
// This file contains routines that are called by the core library to allow the
6
// platform to use the Core storage structures for small amounts of related data.
7
//
8
// In this implementation, the buffers are all just set to 0xFF
9

10
//** Includes and Data Definitions
11
#include <assert.h>
12
#include <stdio.h>
13
#include <string.h>
14
#include "Platform.h"
15

16
//** _plat__GetPlatformManufactureData
17

18
// This function allows the platform to provide a small amount of data to be
19
// stored as part of the TPM's PERSISTENT_DATA structure during manufacture.  Of
20
// course the platform can store data separately as well, but this allows a
21
// simple platform implementation to store a few bytes of data without
22
// implementing a multi-layer storage system.  This function is called on
23
// manufacture and CLEAR.  The buffer will contain the last value provided
24
// to the Core library.
25
LIB_EXPORT void _plat__GetPlatformManufactureData(uint8_t* pPlatformPersistentData,
4,156✔
26
                                                  uint32_t bufferSize)
27
{
28
    if(bufferSize != 0)
4,156✔
29
    {
NEW
30
        memset((void*)pPlatformPersistentData, 0xFF, bufferSize);
×
31
    }
32
}
4,156✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc