diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2016-06-05 20:39:41 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2016-06-22 15:33:44 +0200 |
commit | 30d4989aec57ff5e53d6cb63d02eb65ccb6043bf (patch) | |
tree | d2b8dbd7cfcdf295925bd0650951d61a0adf71a5 /src/libtpmtss/tpm_tss_trousers.h | |
parent | 8301dc859caa9f542a491f3ee17763bac3ff44ae (diff) | |
download | strongswan-30d4989aec57ff5e53d6cb63d02eb65ccb6043bf.tar.bz2 strongswan-30d4989aec57ff5e53d6cb63d02eb65ccb6043bf.tar.xz |
libimcv: migrate pts to tpm_tss
Diffstat (limited to 'src/libtpmtss/tpm_tss_trousers.h')
-rw-r--r-- | src/libtpmtss/tpm_tss_trousers.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libtpmtss/tpm_tss_trousers.h b/src/libtpmtss/tpm_tss_trousers.h index a52d73afa..3afba0db2 100644 --- a/src/libtpmtss/tpm_tss_trousers.h +++ b/src/libtpmtss/tpm_tss_trousers.h @@ -23,6 +23,27 @@ #include "tpm_tss.h" +typedef struct tpm_tss_trousers_t tpm_tss_trousers_t; + +/** + * TPM 1.2 access via TrouSerS public interface + */ +struct tpm_tss_trousers_t { + + tpm_tss_t public; + + /** + * Load AIK public and private key pair and save it under an object handle + * + * @param blob encrypted AIK private key + * @param pubkey AIK public key + * @param handle object handle under which the AIK key is stored + */ + void (*load_aik)(tpm_tss_trousers_t *this, chunk_t blob, chunk_t pubkey, + uint32_t handle); + +}; + /** * Create a tpm_tss_trousers instance. */ |