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

Error converting string to bytes #36

Open
luisdemarchi opened this issue Nov 24, 2019 · 0 comments
Open

Error converting string to bytes #36

luisdemarchi opened this issue Nov 24, 2019 · 0 comments

Comments

@luisdemarchi
Copy link

Hi,

I am using Python 3.7 and with the command:
mediaKeyExpanded = HKDFv3().deriveSecrets(mediaK, "Image Keys", 112)

Displays the following error:

TypeError: string argument without an encoding

The solution is to basically change line 49 of the axolotl/kdf/hkdf.py file:
mac.update(bytes(info))
for:
mac.update(bytes(info, encoding="utf8"))

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