Skip to content

Commit

Permalink
Certify requires HMAC for admin policy.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Aug 20, 2024
1 parent 8034391 commit 51791b6
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions examples/run_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,35 +42,36 @@ RESULT=$?
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "create primary owner rsa key stored failed! $RESULT" && exit 1

# Provisioning examples (required --enable-provisioning)
./examples/keygen/create_primary -rsa -eh -iak -keep >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "create primary endosement rsa IAK key failed! $RESULT" && exit 1
./examples/keygen/create_primary -rsa -eh -idevid -keep >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "create primary endosement rsa IDevID key failed! $RESULT" && exit 1
if [ $WOLFCRYPT_ENABLE -eq 1 ]; then
# Provisioning examples (required --enable-provisioning)
./examples/keygen/create_primary -rsa -eh -iak -keep >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "create primary endosement rsa IAK key failed! $RESULT" && exit 1
./examples/keygen/create_primary -rsa -eh -idevid -keep >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "create primary endosement rsa IDevID key failed! $RESULT" && exit 1

./examples/attestation/certify -rsa -certify=0x80000001 -signer=0x80000000 >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "certify RSA IDevID with IAK failed! $RESULT" && exit 1
./examples/attestation/certify -rsa -certify=0x80000001 -signer=0x80000000 >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "certify RSA IDevID with IAK failed! $RESULT" && exit 1

./examples/management/flush 0x80000000 >> run.out 2>&1
./examples/management/flush 0x80000001 >> run.out 2>&1
./examples/management/flush 0x80000000 >> run.out 2>&1
./examples/management/flush 0x80000001 >> run.out 2>&1

./examples/keygen/create_primary -ecc -eh -iak -keep >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "create primary endosement ecc IAK key failed! $RESULT" && exit 1
./examples/keygen/create_primary -ecc -eh -idevid -keep >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "create primary endosement ecc IDevID key failed! $RESULT" && exit 1

./examples/attestation/certify -ecc -certify=0x80000001 -signer=0x80000000 >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "certify ECC IDevID with IAK failed! $RESULT" && exit 1
./examples/keygen/create_primary -ecc -eh -iak -keep >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "create primary endosement ecc IAK key failed! $RESULT" && exit 1
./examples/keygen/create_primary -ecc -eh -idevid -keep >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "create primary endosement ecc IDevID key failed! $RESULT" && exit 1

./examples/management/flush 0x80000000 >> run.out 2>&1
./examples/management/flush 0x80000001 >> run.out 2>&1
./examples/attestation/certify -ecc -certify=0x80000001 -signer=0x80000000 >> run.out 2>&1
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "certify ECC IDevID with IAK failed! $RESULT" && exit 1

./examples/management/flush 0x80000000 >> run.out 2>&1
./examples/management/flush 0x80000001 >> run.out 2>&1
fi

if [ $WOLFCRYPT_ENABLE -eq 1 ]; then
./examples/keygen/create_primary -rsa -oh -aes >> run.out 2>&1
Expand Down

0 comments on commit 51791b6

Please sign in to comment.