1 /********************************************************************************/ 2 /* */ 3 /* TPM 1.2 OSAP */ 4 /* Written by Ken Goldman */ 5 /* IBM Thomas J. Watson Research Center */ 6 /* */ 7 /* (c) Copyright IBM Corporation 2018. */ 8 /* */ 9 /* All rights reserved. */ 10 /* */ 11 /* Redistribution and use in source and binary forms, with or without */ 12 /* modification, are permitted provided that the following conditions are */ 13 /* met: */ 14 /* */ 15 /* Redistributions of source code must retain the above copyright notice, */ 16 /* this list of conditions and the following disclaimer. */ 17 /* */ 18 /* Redistributions in binary form must reproduce the above copyright */ 19 /* notice, this list of conditions and the following disclaimer in the */ 20 /* documentation and/or other materials provided with the distribution. */ 21 /* */ 22 /* Neither the names of the IBM Corporation nor the names of its */ 23 /* contributors may be used to endorse or promote products derived from */ 24 /* this software without specific prior written permission. */ 25 /* */ 26 /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */ 27 /* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */ 28 /* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */ 29 /* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */ 30 /* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */ 31 /* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ 32 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 33 /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */ 34 /* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */ 35 /* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */ 36 /* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ 37 /********************************************************************************/ 38 39 #ifndef OSAP_FP_H 40 #define OSAP_FP_H 41 42 typedef struct { 43 TPM_ENTITY_TYPE entityType; 44 UINT32 entityValue; 45 TPM_NONCE nonceOddOSAP; 46 } OSAP_In; 47 48 typedef struct { 49 TPM_AUTHHANDLE authHandle; 50 TPM_NONCE nonceEven; 51 TPM_NONCE nonceEvenOSAP; 52 } OSAP_Out; 53 54 TPM_RC 55 TPM2_OSAP( 56 OSAP_In *in, // IN: input parameter buffer 57 OSAP_Out *out // OUT: output parameter buffer 58 ); 59 60 #endif 61