text stringlengths 0 834k |
|---|
) |
) |
echo ""Flush the signing key"" |
%TPM_EXE_PATH%flushcontext -ha 80000001 > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""Flush the session"" |
%TPM_EXE_PATH%flushcontext -ha 02000000 > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo """" |
echo ""Certify Creation"" |
echo """" |
echo ""Load the RSA signing key under the primary key"" |
%TPM_EXE_PATH%load -hp 80000000 -ipr signrsa2048priv.bin -ipu signrsa2048pub.bin -pwdp sto > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""Certify the creation data for the primary key 80000000"" |
%TPM_EXE_PATH%certifycreation -ho 80000000 -hk 80000001 -pwdk sig -tk pritk.bin -ch prich.bin -os sig.bin -oa tmp.bin > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""Verify the signature"" |
%TPM_EXE_PATH%verifysignature -hk 80000001 -if tmp.bin -is sig.bin > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""Load the RSA storage key under the primary key"" |
%TPM_EXE_PATH%load -hp 80000000 -ipr storersa2048priv.bin -ipu storersa2048pub.bin -pwdp sto > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""Certify the creation data for the storage key 80000002"" |
%TPM_EXE_PATH%certifycreation -ho 80000002 -hk 80000001 -pwdk sig -tk storsatk.bin -ch storsach.bin -os sig.bin -oa tmp.bin > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""Verify the signature"" |
%TPM_EXE_PATH%verifysignature -hk 80000001 -if tmp.bin -is sig.bin > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""Flush the storage key 80000002"" |
%TPM_EXE_PATH%flushcontext -ha 80000002 > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""Flush the signing key 80000001"" |
%TPM_EXE_PATH%flushcontext -ha 80000001 > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo """" |
echo ""Audit a PCR Read"" |
echo """" |
for %%H in (%ITERATE_ALGS%) do ( |
echo ""Start an audit session %%H"" |
%TPM_EXE_PATH%startauthsession -se h -halg %%H > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""PCR 16 reset"" |
%TPM_EXE_PATH%pcrreset -ha 16 > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
cp policies/zero%%H.bin tmpdigestr.bin |
echo ""PCR 16 read %%H"" |
%TPM_EXE_PATH%pcrread -ha 16 -halg %%H -se0 02000000 81 -ahalg %%H -iosad tmpdigestr.bin > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
echo ""Get session audit digest"" |
%TPM_EXE_PATH%getsessionauditdigest -hs 02000000 -od tmpdigestg.bin > run.out |
IF !ERRORLEVEL! NEQ 0 ( |
exit /B 1 |
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.