File: tpm_quote.h

package info (click to toggle)
tpm-quote-tools 1.0.4-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 992 kB
  • ctags: 2,586
  • sloc: ansic: 6,827; sh: 4,094; makefile: 44
file content (27 lines) | stat: -rw-r--r-- 838 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Declares the function prototypes exported by libtpm_quote.a.
 * Copyright (C) 2010 The MITRE Corporation
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the BSD License as published by the
 * University of California.
 */

#if !defined _TPM_QUOTE_H
#define  _TPM_QUOTE_H

const char *tss_result(TSS_RESULT result);
int tss_err(TSS_RESULT rc, const char *msg);
int tidy(TSS_HCONTEXT hContext, int code);
int pcr_mask(UINT32 *pcrs, UINT32 npcrs, char **mask);
int loadkey(TSS_HCONTEXT hContext,
	    BYTE *blob, UINT32 blobLen,
	    TSS_UUID uuid);
int quote(TSS_HCONTEXT hContext, TSS_UUID uuid,
	  UINT32 *pcrs, UINT32 npcrs,
	  TSS_VALIDATION *valid);
TPM_NONCE *quote_nonce(BYTE *info);
char *toutf16le(char *src);
size_t utf16lelen(const char *src);

#endif /* _TPM_QUOTE_H */