代码如下
SHA512_CTX sha;
char ps[64];
SHA512_Init(&sha);
SHA512_Update(&sha, "hello", 4);
SHA512_Final(ps, &sha);
生成 的是:
22c2e450a8f0933878bf16a55e3960c69ff4c76684bb67fb553497eababd9e4f61577331480dd4af6b905f90df6e6db4d4b364ae262cb9b9ec303f8086249f85
实际应该是:
9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043
为什么呢?
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.