Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setkey for HMAC results in IndexError #76

Open
top-on opened this issue Jan 15, 2024 · 0 comments
Open

setkey for HMAC results in IndexError #76

top-on opened this issue Jan 15, 2024 · 0 comments

Comments

@top-on
Copy link

top-on commented Jan 15, 2024

Problem

When trying to write a HMAC initialization vector to the OnlyKey,
the CLI returns <class 'IndexError'> without further information.

Steps to reproduce

This issue occurs when following the example from the README (see here).

The exact CLI interaction is:

$ onlykey-cli
OnlyKey CLI v1.2.10
Control-D to exit.

OnlyKey> setkey HMAC1 h

Type Control-T to toggle password visible.
Password/Key: ****************************************
<class 'IndexError'>
Input error. See available commands with examples here https://docs.crp.to/command-line.html

Possible cause

The error appears to be thrown at only_key.setkey(slot_id, data[2], data[3], key),
because data[3] is not set by above-mentioned CLI command.
data[3] seems to be the value for features, which above-linked instructions for setting the HMAC key do not mention.


thanks in advance for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant