Annotation of embedaddon/strongswan/src/libtpmtss/tpm_tss_trousers.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Copyright (C) 2016 Andreas Steffen
                      3:  * HSR Hochschule fuer Technik Rapperswil
                      4:  *
                      5:  * This program is free software; you can redistribute it and/or modify it
                      6:  * under the terms of the GNU General Public License as published by the
                      7:  * Free Software Foundation; either version 2 of the License, or (at your
                      8:  * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
                      9:  *
                     10:  * This program is distributed in the hope that it will be useful, but
                     11:  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
                     12:  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
                     13:  * for more details.
                     14:  */
                     15: 
                     16: /**
                     17:  * @defgroup tpm_tss_trousers tpm_tss_trousers
                     18:  * @{ @ingroup libtpmtss
                     19:  */
                     20: 
                     21: #ifndef TPM_TSS_TROUSERS_H_
                     22: #define TPM_TSS_TROUSERS_H_
                     23: 
                     24: #include "tpm_tss.h"
                     25: 
                     26: typedef struct tpm_tss_trousers_t tpm_tss_trousers_t;
                     27: 
                     28: /**
                     29:  * TPM 1.2 access via TrouSerS public interface
                     30:  */
                     31: struct tpm_tss_trousers_t {
                     32: 
                     33:        tpm_tss_t public;
                     34: 
                     35:        /**
                     36:         * Load AIK public and private key pair and save it under an object handle
                     37:         *
                     38:         * @param blob          encrypted AIK private key
                     39:         * @param pubkey        AIK public key
                     40:         * @param handle        object handle under which the AIK key is stored
                     41:         */
                     42:        void (*load_aik)(tpm_tss_trousers_t *this, chunk_t blob, chunk_t pubkey,
                     43:                                         uint32_t handle);
                     44: 
                     45: };
                     46: 
                     47: /**
                     48:  * Create a tpm_tss_trousers instance.
                     49:  */
                     50: tpm_tss_t *tpm_tss_trousers_create(void);
                     51: 
                     52: #endif /** TPM_TSS_TROUSERS_H_ @}*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>