/usr/include/tpm_tools/tpm_unseal.h is in libtpm-unseal-dev 1.3.9.1-0.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | /*
* The Initial Developer of the Original Code is International
* Business Machines Corporation. Portions created by IBM
* Corporation are Copyright (C) 2005 International Business
* Machines Corporation. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the Common Public License as published by
* IBM Corporation; either version 1 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Common Public License for more details.
*
* You should have received a copy of the Common Public License
* along with this program; if not, a copy can be viewed at
* http://www.opensource.org/licenses/cpl1.0.php.
*/
#ifndef __TPM_UNSEAL_H
#define __TPM_UNSEAL_H
#define TPMSEAL_FILE_ERROR -2
#define TPMSEAL_STD_ERROR -1
enum tpm_errors {
ENOTSSHDR = 0,
ENOTSSFTR,
EWRONGTSSTAG,
EWRONGEVPTAG,
EWRONGDATTAG,
EWRONGKEYTYPE,
EBADSEEK,
};
extern int tpm_errno;
int tpmUnsealFile(char*, unsigned char**, int*, BOOL);
void tpmUnsealShred(unsigned char*, int);
char* tpmUnsealStrerror(int);
#endif
|