Search found 3 matches

by bare-01
Fri Apr 17, 2020 10:10 pm
Forum: Programs, Libraries and Tools
Topic: HMAC with digestmode SHA1
Replies: 5
Views: 8120

Re: HMAC with digestmode SHA1

Nevermind, found a workaround in CircuitPython

https://learn.adafruit.com/circuitpytho ... d/software
by bare-01
Fri Apr 17, 2020 8:17 pm
Forum: Programs, Libraries and Tools
Topic: HMAC with digestmode SHA1
Replies: 5
Views: 8120

Re: HMAC with digestmode SHA1

Thx for your feedback Jimmo! So I thought OK, no worries.. we'll find a workaround and started reading Native machine code in .mpy files . First I wrote a .c file that gives me a HMAC with SHA1 using OpenSSL. It compiles and works using: gcc sha.c -lssl -lcrypto So adapted the .c-file using the exam...
by bare-01
Thu Apr 16, 2020 5:48 pm
Forum: Programs, Libraries and Tools
Topic: HMAC with digestmode SHA1
Replies: 5
Views: 8120

HMAC with digestmode SHA1

Hi, I'm trying to make a hmac hash with digestmode SHA1. But I'm stuck at the digestmode.. import hmac from uhashlib import sha1 word = bytes("word", "UTF-8") key = bytes("key", "UTF-8") hash = hmac.new(key, word, digestmod=sha1) AttributeError: 'sha1' object has no attribute 'digest_size' Trying to...