~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to providers/plainbox-provider-tpm2/bin/test_tpm2_getpubek.sh

  • Committer: Sylvain Pineau
  • Author(s): Sylvain Pineau
  • Date: 2016-05-09 22:02:27 UTC
  • mfrom: (4323.2.1 launchpad/tpm2-provider)
  • Revision ID: sylvain_pineau-20160509220227-wt2e8boo9ktitvzl
"automatic merge of lp:~sylvain-pineau/checkbox/tpm2-provider/ by tarmac [r=sylvain-pineau][bug=][author=sylvain-pineau]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
handle_ek=0x81010005
 
3
ek_alg=0x001
 
4
output_ek_pub=ek_pub.out
 
5
 
 
6
rm -f $output_ek_pub
 
7
 
 
8
 tpm2_getpubek  -H $handle_ek -g $ek_alg -f $output_ek_pub 
 
9
if [ $? != 0 ] || [ ! -e $output_ek_pub ];then
 
10
echo "getpubek fail, please check the environment or parameters!"
 
11
exit 1
 
12
fi
 
13
 
 
14
echo "getpubek successfully!"
 
15
 
 
16