Skip to content

setkey for HMAC results in IndexError #76

@top-on

Description

@top-on

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions