16 lines
176 B
Bash
Executable File
16 lines
176 B
Bash
Executable File
#!/bin/bash
|
|
|
|
write_tpm(){
|
|
local index=$1
|
|
local data=$2
|
|
|
|
tpmc write "$index" "$data"
|
|
}
|
|
|
|
read_tpm(){
|
|
local index=$1
|
|
local bytes=$2
|
|
|
|
tpmc read "$index" "$bytes"
|
|
}
|