Search found 2 matches

by Hardcore96
Thu Aug 20, 2020 11:51 am
Forum: General Discussion and Questions
Topic: Strang Runtime Behaviour of SHA256
Replies: 0
Views: 1485

Strang Runtime Behaviour of SHA256

Hello, when I run the function profile_sha256() on ESP32 and a custom STM32 port I see a strange behaviour in the runtime of sha256. Here's the code: from uhashlib import sha256 import time def profile_sha256(): data1 = b'00000000' data2 = b'11111111' data3 = b'0000000000000000' data4 = b'0101010101...
by Hardcore96
Tue Aug 18, 2020 2:29 pm
Forum: ESP32 boards
Topic: Strange behaviour in Speed of SHA256
Replies: 0
Views: 1136

Strange behaviour in Speed of SHA256

Hello, when I run this program on ESP32: from uhashlib import sha256 import time def profile_sha256(): data1 = b'00000000' data2 = b'11111111' data3 = b'0000000000000000' data4 = b'0101010101010101010101010101010101010101010101010101010101010101' data5 = data4 + data4 data6 = data5 + data5 + data5 +...