Commit 9d74af16 authored by Vojtech Myslivec's avatar Vojtech Myslivec 🚀

Add MOX commands prototype

parent 7d378343
......@@ -232,3 +232,21 @@ cached_atsha_challenge_response_file() {
rm "$filename"
cached_otp_serial() {
cached_command string 'serial' 'mox-otp' 'serial-number'
# 128-bytes hex string from stdin
cached_otp_sign_hash() {
local hash="$1"
cached_command string "$hash" 'mox-otp' 'sign-hash' "$hash"
cached_otp_sign() {
local file="$1"
cached_command file "$file" 'mox-otp' 'sign' "$file"
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