List supported EC curves
by Anton Gerasimov
Greetings,
is there a way to display list of supported elliptic curves in a TPM
device? There should a TPM_CAP_ECC_CURVES field for it, but I couldn't
find how to extract it (or just raw dump of capabilities) with tpm2-tools.
Thanks,
Anton Gerasimov
3 years, 3 months
[01org/tpm2-tools] c13c7d: tpm2_alg_util: remove duplicated SHA-1 entry in al...
by GitHub
Branch: refs/heads/master
Home: https://github.com/01org/tpm2-tools
Commit: c13c7df88db73f67e4417eaacc3478ea0269c179
https://github.com/01org/tpm2-tools/commit/c13c7df88db73f67e4417eaacc3478...
Author: Javier Martinez Canillas <javierm(a)redhat.com>
Date: 2017-09-28 (Thu, 28 Sep 2017)
Changed paths:
M lib/tpm2_alg_util.c
M test/system/test_tpm2_create.sh
M test/system/test_tpm2_encryptdecrypt.sh
M test/system/test_tpm2_hmac.sh
M test/system/test_tpm2_pcrextend.sh
M test/system/yaml_get.py
M test/unit/test_tpm2_alg_util.c
Log Message:
-----------
tpm2_alg_util: remove duplicated SHA-1 entry in algorithms table and tests
The specification makes it clear that both TPM_ALG_SHA and TPM_ALG_SHA1
refer to the SHA-1 algorithm, but the algorithms table has entries for
both even when they have the same hexadecimal value (0x0004).
That means that TPM_ALG_SHA1 will never be matched, since a match will
happen with TPM_ALG_SHA before. So all tools are currently printing a
"sha" string when a "sha1" should be printed instead:
$ tpm2_dump_capability -c algorithms | grep sha
TPMA_ALGORITHM for ALG_ID: 0x4 - sha
TPMA_ALGORITHM for ALG_ID: 0xb - sha256
After this patch:
$ tpm2_dump_capability -c algorithms | grep sha
TPMA_ALGORITHM for ALG_ID: 0x4 - sha1
TPMA_ALGORITHM for ALG_ID: 0xb - sha256
Signed-off-by: Javier Martinez Canillas <javierm(a)redhat.com>
3 years, 3 months
tpm2-abrmd and tpm2_tools collision
by Slash Wu
Hi,
I launched tpm2-abrmd, and then the tpm2-tools (e.g. tpm2_nvlist) failed with the following msg, but it worked without the tpm2-abrmd been launched, why ?
# /usr/local/bin/tpm2_nvlist -T device
ERROR: Failed to initialize device TCTI context: 0xa000a
Thanks.
3 years, 3 months
[01org/tpm2-tools] 5f0121: test_tpm2_dictionarylockout: cleanup tests
by GitHub
Branch: refs/heads/master
Home: https://github.com/01org/tpm2-tools
Commit: 5f012189b51798e8015515a4beb3b91467b81e06
https://github.com/01org/tpm2-tools/commit/5f012189b51798e8015515a4beb3b9...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_dictionarylockout.sh
Log Message:
-----------
test_tpm2_dictionarylockout: cleanup tests
Add an error handler and clean up testing output.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: fe09aa97673c0faffe17b489aa1e1c47d3870395
https://github.com/01org/tpm2-tools/commit/fe09aa97673c0faffe17b489aa1e1c...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_getmanufec.sh
Log Message:
-----------
test_tpm2_getmanufec: cleanup tests
Add an error handler and clean up testing output.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: d4bcf494a38a75e5afbce1d5619acfc97b9cc11e
https://github.com/01org/tpm2-tools/commit/d4bcf494a38a75e5afbce1d5619acf...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_getpubak.sh
Log Message:
-----------
test_tpm2_getpubak: cleanup tests
Add an error handler and clean up testing output.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 15880ea0bff4de95d1aac1219f8545f912d94036
https://github.com/01org/tpm2-tools/commit/15880ea0bff4de95d1aac1219f8545...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_getpubek.sh
Log Message:
-----------
test_tpm2_getpubek: cleanup tests
Add an error handler and clean up testing output.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: db3f7cd48e68272368b97c45134719110d712eb3
https://github.com/01org/tpm2-tools/commit/db3f7cd48e68272368b97c45134719...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_getrandom.sh
Log Message:
-----------
test_tpm2_getrandom: cleanup tests
Add an error handler and clean up testing output.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 57baccb0795674ba1c52526dc99feb29ba596648
https://github.com/01org/tpm2-tools/commit/57baccb0795674ba1c52526dc99feb...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
R test/system/test_tpm2_getrandom_func.sh
Log Message:
-----------
test: remove test_tpm2_getrandom_func.sh
This is already tested by test_tpm2_getrandom.sh
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 96af03778819a919ccf997aa201d806c5ae89c9c
https://github.com/01org/tpm2-tools/commit/96af03778819a919ccf997aa201d80...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_evictcontrol.sh
Log Message:
-----------
test: fix test_tpm2_evictcontrol
Update to use trap handler for error reporting and
cleanup duties.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: db879566a6c281a318b3697e65c403291e49cc7c
https://github.com/01org/tpm2-tools/commit/db879566a6c281a318b3697e65c403...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
A test/system/test_tpm2_createprimary.sh
R test/system/test_tpm2_createprimary_all.sh
Log Message:
-----------
renamse test_tpm2_createprimary_all.sh
Rename test_tpm2_createprimary_all.sh to test_tpm2_createprimary.sh
to follow the test naming conventions.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 58458fcfd5b2a769115bde1d93f702d0bef28f2e
https://github.com/01org/tpm2-tools/commit/58458fcfd5b2a769115bde1d93f702...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
A test/system/test_tpm2_create.sh
R test/system/test_tpm2_create_all.sh
Log Message:
-----------
renamse test_tpm2_create_all.sh
Rename test_tpm2_create_all.sh to test_tpm2_create.sh
to follow the test naming conventions.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 0a3ac62ac0f2326b63595f3c94b38219b19b4760
https://github.com/01org/tpm2-tools/commit/0a3ac62ac0f2326b63595f3c94b382...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
R test/system/test_tpm2_hash_all.sh
Log Message:
-----------
delete test_tpm2_hash_all.sh
This test doesn't really add anything that test_tpm2_hash.sh does.
It tests algorithms that may not be supported by the tpm as well.
Since tpm2_tools is more about plumbing than exhaustivley testing
the tpm, just remove it.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 9f486e19d916d3fca0e443d617e1108411a4adab
https://github.com/01org/tpm2-tools/commit/9f486e19d916d3fca0e443d617e110...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_hmac.sh
Log Message:
-----------
test: tpm2_hmac clean up output
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Compare: https://github.com/01org/tpm2-tools/compare/2a8ccbf0828c...9f486e19d916
3 years, 3 months
[01org/tpm2-tools] ce66d8: test: fix test_tpm2_activatecredential
by GitHub
Branch: refs/heads/master
Home: https://github.com/01org/tpm2-tools
Commit: ce66d8bd3ed8c1abc105d01eb04f6afee60e9f6a
https://github.com/01org/tpm2-tools/commit/ce66d8bd3ed8c1abc105d01eb04f6a...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_activecredential.sh
Log Message:
-----------
test: fix test_tpm2_activatecredential
Update to use trap handlers for file cleanup and evict
persistent objects when done.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: ddd8484b7f96e02de78c1d709af6b01f83270f48
https://github.com/01org/tpm2-tools/commit/ddd8484b7f96e02de78c1d709af6b0...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_akparse.sh
Log Message:
-----------
test: fix test_tpm2_akparse
Update to use trap handlers for file cleanup and evict
persistent objects when done.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 876985884a0a9d30193b706325f1ef407b5b76d6
https://github.com/01org/tpm2-tools/commit/876985884a0a9d30193b706325f1ef...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_certify.sh
Log Message:
-----------
test: fix test_tpm2_certify
Update to use trap handlers for file cleanup.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 1ea34b69c11ad9517d4014a5f4c55b1c7c0dafe2
https://github.com/01org/tpm2-tools/commit/1ea34b69c11ad9517d4014a5f4c55b...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_createpolicy.sh
Log Message:
-----------
test: fix test_tpm2_policy
Update to use trap handlers for file cleanup.
Add assertion that PCR 0 sha and sha256 banks
are equal to 3.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 5344f4c8d59383f842b35f77b4cdfb0b722a54c9
https://github.com/01org/tpm2-tools/commit/5344f4c8d59383f842b35f77b4cdfb...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M tools/tpm2_dump_capability.c
Log Message:
-----------
tpm2_dump_capability: support quiet option
Use tpm2_tool_output to support the quiet option.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: ee7b07342f403e7f349ce197c5fb73296bbeb019
https://github.com/01org/tpm2-tools/commit/ee7b07342f403e7f349ce197c5fb73...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_dump_capability.sh
Log Message:
-----------
test: fix test_tpm2_dump_capability
Update to use trap handlers for error reporting.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: ac5b2e4cff42d2da099ce720bb1db3c7792bd5bd
https://github.com/01org/tpm2-tools/commit/ac5b2e4cff42d2da099ce720bb1db3...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M Makefile.am
Log Message:
-----------
Makefile.am: fix include dir
Including src was still present after the rename of src --> tools.
It should be tools directory, not src, fix it.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 7311eb7d1f146decce51ff87bbf33588cf88355b
https://github.com/01org/tpm2-tools/commit/7311eb7d1f146decce51ff87bbf335...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M lib/tpm2_util.c
Log Message:
-----------
lib/tpm2_util.c: tpm2_util_print_tpm2b respect -Q
Make the tpm2_util_print_tpm2b routine respect the quiet option.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 42a775f611a792a87c6a8fef558c520781921fc0
https://github.com/01org/tpm2-tools/commit/42a775f611a792a87c6a8fef558c52...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M tools/tpm2_getpubak.c
Log Message:
-----------
tpm2_getpubak: respect the quiet option
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 439acc44567d2f2e6ca1f1e97f51915e3acf5a9e
https://github.com/01org/tpm2-tools/commit/439acc44567d2f2e6ca1f1e97f5191...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_encryptdecrypt.sh
Log Message:
-----------
test: fix test_tpm2_encryptdecrypt
Use trap handlers for file cleanup and error reporting.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 71541ea68b17a9a0940604fbb86bb5bce407bac8
https://github.com/01org/tpm2-tools/commit/71541ea68b17a9a0940604fbb86bb5...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_tpm2_getpubak.sh
Log Message:
-----------
test: tpm2_getpubak clear tpm state
Clear the tpm state with a takeownership -c call before running
the test.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 2a8ccbf0828cf40d2966a2ddbc1af9e13f46f35b
https://github.com/01org/tpm2-tools/commit/2a8ccbf0828cf40d2966a2ddbc1af9...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
A test/system/test.sh
M test/system/test_all.sh
Log Message:
-----------
test: test_all.sh generate test list vs hardcode
Rather than hardcode the test scripts, just take the list
of test files and execute them.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Compare: https://github.com/01org/tpm2-tools/compare/08dcfa4381fb...2a8ccbf0828c
3 years, 3 months
[01org/tpm2-tools] 12f596: remove abrmd patches
by GitHub
Branch: refs/heads/master
Home: https://github.com/01org/tpm2-tools
Commit: 12f59673d4ba9ef25cf1d0528b8fb7c88420b69f
https://github.com/01org/tpm2-tools/commit/12f59673d4ba9ef25cf1d0528b8fb7...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
R .ci/patches/abrmd/0001-tpm2-command-fix-compile-errors.patch
R .ci/patches/abrmd/0002-bump-sapi-version-to-2.0.patch
Log Message:
-----------
remove abrmd patches
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: ea31ec23e2d29a5647c5eb60934383bd452a454d
https://github.com/01org/tpm2-tools/commit/ea31ec23e2d29a5647c5eb60934383...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
R test/system/test_algs_tpm2_encryptdecrypt.sh
R test/system/test_algs_tpm2_getpubak.sh
R test/system/test_algs_tpm2_getpubek.sh
R test/system/test_algs_tpm2_hmac.sh
R test/system/test_algs_tpm2_quote.sh
R test/system/test_algs_tpm2_readpublic.sh
R test/system/test_algs_tpm2_sign.sh
R test/system/test_algs_tpm2_unseal.sh
R test/system/test_algs_tpm2_verifysignature.sh
M test/system/test_all.sh
M test/system/test_tpm2_create_all.sh
Log Message:
-----------
test: fix test_tpm2_create_all
This test was not running, fix it and update to
use trap handlers for file cleanup.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 0c91b43c9140ef3790fc51cfa7ef5dc25e198f2d
https://github.com/01org/tpm2-tools/commit/0c91b43c9140ef3790fc51cfa7ef5d...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M test/system/test_all.sh
M test/system/test_tpm2_createprimary_all.sh
Log Message:
-----------
test: fix test_tpm2_createprimary_all
This test was not running, fix it and update to
use trap handlers for file cleanup.
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 46e1eed4f6b85e9527d044a2dd166651a32bcd00
https://github.com/01org/tpm2-tools/commit/46e1eed4f6b85e9527d044a2dd1666...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
R test/system/test_algs.sh
Log Message:
-----------
test: remove test_algs.sh since already tested
The following tests test this functionality:
* test_tpm2_create_all.sh
* test_tpm2_createprimary_all.sh
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Commit: 08dcfa4381fbfdb1a735aaa2439f255659dee7d1
https://github.com/01org/tpm2-tools/commit/08dcfa4381fbfdb1a735aaa2439f25...
Author: William Roberts <william.c.roberts(a)intel.com>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
R test/system/test_smoking.sh
Log Message:
-----------
test: remove test_smoking.sh
Unused broken test
Signed-off-by: William Roberts <william.c.roberts(a)intel.com>
Compare: https://github.com/01org/tpm2-tools/compare/a55ad7d40410...08dcfa4381fb
3 years, 3 months