tpm2-pk11 icon indicating copy to clipboard operation
tpm2-pk11 copied to clipboard

[DEPRECATED] PKCS#11 Module for TPM 2.0

Results 17 tpm2-pk11 issues
Sort by recently updated
recently updated
newest added

I checked out the latest master branch and compilation (with `make`) fails with: ```/opt/tpm2-pk11/src/sessions.c: In function ‘session_init’: /opt/tpm2-pk11/src/sessions.c:58:5: error: duplicate case value case TPM_TYPE_SOCKET: ^ /opt/tpm2-pk11/src/sessions.c:53:5: error: previously used here...

Memory leaks after every "C_OpenSession()/C_CloseSession()" or "session_init()/session_close()" invocation pair: https://github.com/irtimmer/tpm2-pk11/blob/801f8e69893cd2d6c6531ff77e0dda3fc0a4de76/src/pk11.c#L66-L76 https://github.com/irtimmer/tpm2-pk11/blob/801f8e69893cd2d6c6531ff77e0dda3fc0a4de76/src/pk11.c#L77-L82 **Reason:** In `session_init()`, `tcti_ctx` and `session->context` is assigned with `calloc()`: https://github.com/irtimmer/tpm2-pk11/blob/3b93c1ea4adfea689dcdbb14004e8121a8f0513b/src/sessions.c#L75 https://github.com/irtimmer/tpm2-pk11/blob/3b93c1ea4adfea689dcdbb14004e8121a8f0513b/src/sessions.c#L108 Currently after session_close()/Tss2_Sys_Finalize() is called, both the...

Thanks for your work on this project :+1: Noticed a small (and strange) bug. When no log file is specified in the tpm2-pk11 config file, there is a core dump...

This is possibly related to issue #61. In trying to figure out the root cause of that issue, I found that there's memory corruption occurring even when nothing crashes outright....

1. ssh-keygen support "RSA, DSA, ECDSA, ED25519" keys by default. Currently, we only have implemented RSA in libtpm2-pk11.so. But "ssh-keygen -t ecdsa -D libtpm2-pk11.so" doesn't work as I expected. For...

When relative log_file path is configured in .tpm2/config, for example, add the following settings into `~/.tpm2/config`: ``` log-level 3 log libtpm2-pk11.log ``` Each ssh client will write it's own log...

Great project. Can it be used for mod_nss integration?