• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tpm2-software / tpm2-tools / 862
0%

Build:
DEFAULT BRANCH: master
Ran 28 Sep 2017 05:18PM UTC
Jobs 1
Files 692
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
862

push

travis-ci

williamcroberts
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@redhat.com>

3626 of 5373 relevant lines covered (67.49%)

36.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 862.1 28 Sep 2017 05:18PM UTC 0
67.49
Travis Job 862.1
Source Files on build 862
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #862
  • c13c7df8 on github
  • Prev Build on master (#861)
  • Next Build on master (#866)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc