Skip to content

Commit

Permalink
os-helpers-tpm2: add size param to hw_gen_passphrase
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Joseph Kogut <joseph@balena.io>
  • Loading branch information
jakogut committed Sep 30, 2024
1 parent 3c72794 commit a4d3fea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ print_pcr_val_bin() {
}

hw_gen_passphrase() {
tpm2_getrandom 32
size=${1:-32}
tpm2_getrandom $size
}

hw_encrypt_passphrase() {
Expand Down

0 comments on commit a4d3fea

Please sign in to comment.