File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libtpmtss / plugins / tpm / tpm_private_key.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 3 09:46:44 2020 UTC (4 years, 3 months ago) by misho
Branches: strongswan, MAIN
CVS tags: v5_9_2p0, v5_8_4p7, HEAD
Strongswan

    1: /*
    2:  * Copyright (C) 2017 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_private_key tpm_private_key
   18:  * @{ @ingroup tpm
   19:  */
   20: 
   21: #ifndef TPM_PRIVATE_KEY_H_
   22: #define TPM_PRIVATE_KEY_H_
   23: 
   24: typedef struct tpm_private_key_t tpm_private_key_t;
   25: 
   26: #include <credentials/builder.h>
   27: #include <credentials/keys/private_key.h>
   28: 
   29: /**
   30:  * Private Key implementation for the TPM 2.0 Trusted Platform Module
   31:  */
   32: struct tpm_private_key_t {
   33: 
   34: 	/**
   35: 	 * Implements private_key_t interface.
   36: 	 */
   37: 	private_key_t key;
   38: };
   39: 
   40: /**
   41:  * Connect to a private key bound to the TPM
   42:  *
   43:  * @param type		type of the key
   44:  * @param args		builder_part_t argument list
   45:  * @return			loaded key, NULL on failure
   46:  */
   47: tpm_private_key_t *tpm_private_key_connect(key_type_t type, va_list args);
   48: 
   49: #endif /** tpm_PRIVATE_KEY_H_ @}*/

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