Depends on Yubico PIV Tool
gcc uniris-yubikey.c -o uniris-yubikey -lykpiv -lcrypto -c
gcc driver.c -o driver uniris-yubikey -lykpiv -lcrypto
./driver
gcc driver.c -o driver uniris-yubikey.c -lykpiv -lcrypto
./driver
Make sure that Erlang and Elixir are already installed on the system.
gcc support.c -o support stdio_helpers.c uniris-yubikey.c -lykpiv -lcrypto
sudo iex yubikey-lib.ex
YubiKeyAE.start_link
YubiKeyAE.initialize_yk
YubiKeyAE.check_yk_connection
YubiKeyAE.get_archethic_index
YubiKeyAE.increment_index
YubiKeyAE.get_root_key
YubiKeyAE.get_current_key
YubiKeyAE.get_next_key
YubiKeyAE.get_past_key(KEY_INDEX)
YubiKeyAE.get_root_certificate
YubiKeyAE.get_current_certificate
YubiKeyAE.get_next_certificate
YubiKeyAE.get_past_certificate(KEY_INDEX)
YubiKeyAE.sign_current_key(HASH_SHA256)
YubiKeyAE.sign_past_key(KEY_INDEX, HASH_SHA256)
YubiKeyAE.ecdh_current_key(RAW_PUBLIC_KEY)
YubiKeyAE.ecdh_past_key(KEY_INDEX, RAW_PUBLIC_KEY)