set -e source helpers.sh start_up CRYPTO_PROFILE="ECC" setup_fapi $CRYPTO_PROFILE function cleanup { tss2 delete --path=/ shut_down } trap cleanup EXIT KEY_PATH=HS/SRK/myRSACrypt # DESCRIPTION_SET=$TEMP_DIR/set_description.file DESCRIPTION_FILE=$TEMP_DIR/object_description.file DESCRIPTION_SET="description data" tss2 provision tss2 createkey --path=$KEY_PATH --type="noDa, restricted, decrypt" \ --authValue="" tss2 setdescription --path=$KEY_PATH --description="$(echo $DESCRIPTION_SET)" tss2 getdescription --path=$KEY_PATH --description=$DESCRIPTION_FILE --force if [ "$(< $DESCRIPTION_FILE)" != "$DESCRIPTION_SET" ]; then echo "Descriptions not equal" exit 1 fi expect <