send-tcti-cmd.sh 296 B

12345678910111213141516171819
  1. # SPDX-License-Identifier: BSD-3-Clause
  2. # skip if tcti-cmd not installed
  3. pkg-config --exists tss2-tcti-cmd
  4. if [ $? -ne 0 ]; then
  5. exit 077
  6. fi
  7. source helpers.sh
  8. start_up
  9. random="$(tpm2 getrandom -T"cmd:tpm2 send" --hex 32)"
  10. count="$(echo -n "$random" | wc -c)"
  11. test "$count" -eq 64
  12. exit 0