Need assistance to encrypt/decrypt data using tpm2-tss
by Sourajit Mukhopadhyay
Dear team,
I am a beginner trying to learn more about the TPM and its functionalities.
I am trying to write a basic code using the SAPI to make the TPM generate a
key and encrypt some data/file, and then later decrypt the same.
So far I have been unable to perform the desired task. I have referred to
the sapi-assymetric-encrypt-decrypt test module. I am using the IBM TPM
simulator on Linux. So far searching on the internet for anything relevant
ended with nothing positive. I would be highly grateful if someone could
give a short description/steps to guide me through this.
Regards,
Sourajit Mukhopadhyay
2 years, 3 months
Re: [tpm2] It is a problem about device or resource busy when I use the tpm2-tools
by Sherry Zhang(BJ-RD)
Hi Tadeusz,
I reinstalled tpm-tss , tpm-abrmd, tpm-tools.
Now they can use with /dev/tpm0.
Thank you!
Sherry
?????
?????????????????????????????????????????????????????
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
2 years, 3 months
tpm2-pkcs11: m4 changes
by Roberts, William C
If you're trying to build tpm2-pkcs11 project, note a recent PR will cause build breakages:
https://github.com/tpm2-software/tpm2-pkcs11/pull/65
You'll need to satisfy m4 dependencies on:
autoconf-archive
gnulib
The simplest way I found to satisfy them is to copy the requisite files similar to what the PR's CI changes
are doing. There may be better ways, and If you know of other/better ways, please share them.
Thanks,
Bill
2 years, 3 months
It is a problem about device or resource busy when I use the tpm2-tools
by Sherry Zhang(BJ-RD)
Hi all,
The packages that I have installed(ubuntu16.04.2 with kernel-4.16.2) :
# install TSS itself
git clone https://github.com/tpm2-software/tpm2-tss.git
cd tpm2-tss
./bootstrap
./configure --enable-unit
make check
sudo make install
# Install abrmd itself
git clone https://github.com/tpm2-software/tpm2-abrmd.git
cd tpm2-abrmd
./bootstrap
./configure --enable-unit --with-dbuspolicydir=/etc/dbus-1/system.d
dbus-launch make check
sudo make install
# Install tools itself
git clone https://github.com/tpm2-software/tpm2-tools.git
cd tpm2-tools
./bootstrap
./configure --enable-unit
make check
sudo make install
And I can see /dev/tpm0 and /dev/tpmrm0 with the the tpm_tis.ko in the kernel-4.16.2.
But I have a problem as follows:
(1)#strace tpm2-abrmd --tcti="device:/dev/tpm0" --allow-root
[cid:image001.png@01D471D2.AD346530]
(2)In a C program:
fd = open("/dev/tpm0",O_RDWR);
result:
open("/dev/tpm0", O_RDWR) = -1 EBUSY (Device or resource busy)
So could someone give advice to me how to solve this problem?
?????
?????????????????????????????????????????????????????
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
2 years, 3 months