Commit 7d378343 authored by Vojtech Myslivec's avatar Vojtech Myslivec 🚀

Add cached Omnia challenge-response command

parent 60f0923d
......@@ -206,6 +206,20 @@ cached_atsha_serial() {
}
# 64-bytes hex string from stdin
cached_atsha_challenge_response() {
local hash="$1"
# read hash from file to avaid unsafe pipe
local temp=$(cache_mktemp)
echo "$hash" > "$temp"
cached_command string "$hash" 'atsha204cmd' 'challenge-response' < "$temp"
rm "$temp"
}
cached_atsha_challenge_response_file() {
local file="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment