Title: setkey for HMAC results in IndexError · Issue #76 · trustcrypto/python-onlykey · GitHub
Open Graph Title: setkey for HMAC results in IndexError · Issue #76 · trustcrypto/python-onlykey
X Title: setkey for HMAC results in IndexError · Issue #76 · trustcrypto/python-onlykey
Description: Problem When trying to write a HMAC initialization vector to the OnlyKey, the CLI returns
Open Graph Description: Problem When trying to write a HMAC initialization vector to the OnlyKey, the CLI returns
X Description: 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 f...
Opengraph URL: https://github.com/trustcrypto/python-onlykey/issues/76
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"setkey for HMAC results in IndexError","articleBody":"## Problem\r\nWhen trying to write a HMAC initialization vector to the OnlyKey,\r\nthe CLI returns `\u003cclass 'IndexError'\u003e` without further information.\r\n\r\n## Steps to reproduce\r\nThis issue occurs when following the example from the README (see [here](https://github.com/trustcrypto/python-onlykey?tab=readme-ov-file#examples)).\r\n\r\nThe exact CLI interaction is:\r\n```\r\n$ onlykey-cli\r\nOnlyKey CLI v1.2.10\r\nControl-D to exit.\r\n\r\nOnlyKey\u003e setkey HMAC1 h\r\n\r\nType Control-T to toggle password visible.\r\nPassword/Key: ****************************************\r\n\u003cclass 'IndexError'\u003e\r\nInput error. See available commands with examples here https://docs.crp.to/command-line.html\r\n```\r\n\r\n## Possible cause\r\nThe error appears to be thrown at [`only_key.setkey(slot_id, data[2], data[3], key)`](https://github.com/trustcrypto/python-onlykey/blob/master/onlykey/cli.py#L950C19-L950C72), \r\nbecause `data[3]` is not set by above-mentioned CLI command.\r\n`data[3]` seems to be the value for `features`, which above-linked instructions for setting the HMAC key do not mention.\r\n\r\n---\r\nthanks in advance for looking into this!\r\n","author":{"url":"https://github.com/top-on","@type":"Person","name":"top-on"},"datePublished":"2024-01-15T10:59:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/76/python-onlykey/issues/76"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:de88ea3e-9aa0-f119-0aa3-2f27543c0f9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF80:1DE745:298F9E1:369E96D:6A5CD19A |
| html-safe-nonce | 1bcae822c5ce87a835e7069b14d7c9ca7368d1a1fa475803c097ad04e16e063c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjgwOjFERTc0NToyOThGOUUxOjM2OUU5NkQ6NkE1Q0QxOUEiLCJ2aXNpdG9yX2lkIjoiMTQ4NDQwNzkwNjkzMDMxNTY3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 99f6be3c7acb268ffb8abfa9d55c360298ef0e9444e0ebece45441693bce775d |
| hovercard-subject-tag | issue:2081789010 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/trustcrypto/python-onlykey/76/issue_layout |
| twitter:image | https://opengraph.githubassets.com/94201443d400e5de707f5a852c89550f9574703c191cfce6ff2a45ee60a7bbfb/trustcrypto/python-onlykey/issues/76 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94201443d400e5de707f5a852c89550f9574703c191cfce6ff2a45ee60a7bbfb/trustcrypto/python-onlykey/issues/76 |
| og:image:alt | Problem When trying to write a HMAC initialization vector to the OnlyKey, the CLI returns |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | top-on |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/trustcrypto/python-onlykey git https://github.com/trustcrypto/python-onlykey.git |
| octolytics-dimension-user_id | 22034835 |
| octolytics-dimension-user_login | trustcrypto |
| octolytics-dimension-repository_id | 67296372 |
| octolytics-dimension-repository_nwo | trustcrypto/python-onlykey |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 67296372 |
| octolytics-dimension-repository_network_root_nwo | trustcrypto/python-onlykey |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width