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