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

FAPI: Fix deviation from spec.

Open JuergenReppSIT opened this issue 2 years ago • 1 comments

The current implementation did use the field keyPEMhashAlg in the structure TPMS_POLICYAUTHORIZATION instead of hashAlg as defined in "TCG TSS 2.0 JSON Data Types and Policy Language Specification". Also in the JSON represention keyPEMhashAlg was used instead of hashAlg. To achieve backward compatibility keyPEMhashAlg is still allowed.

Signed-off-by: Juergen Repp [email protected]

JuergenReppSIT avatar Oct 04 '22 18:10 JuergenReppSIT

Codecov Report

Merging #2428 (bf910d3) into master (f8db610) will increase coverage by 0.01%. The diff coverage is 90.90%.

@@            Coverage Diff             @@
##           master    #2428      +/-   ##
==========================================
+ Coverage   83.67%   83.69%   +0.01%     
==========================================
  Files         351      351              
  Lines       37962    37965       +3     
==========================================
+ Hits        31766    31774       +8     
+ Misses       6196     6191       -5     
Impacted Files Coverage Δ
src/tss2-fapi/ifapi_policy_json_deserialize.c 84.51% <83.33%> (-0.26%) :arrow_down:
src/tss2-fapi/ifapi_policy_callbacks.c 85.11% <100.00%> (ø)
src/tss2-fapi/ifapi_policy_json_serialize.c 87.87% <100.00%> (ø)
src/tss2-fapi/fapi_crypto.c 78.22% <0.00%> (+0.58%) :arrow_up:
src/tss2-fapi/ifapi_io.c 78.91% <0.00%> (+1.02%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Oct 04 '22 21:10 codecov[bot]