dfu hash not matching calculated hash from a .bin file

hello nordic

i am working with nrf52840, device with zephyr and i am writing an application that uses the smp service to preform dfu over BLE.

i am struggling with calculating or finding the hash in from the .bin file generated with west build 

i found a hash implementation in rust (its the application lang i am using) which match this site test : 

https://emn178.github.io/online-tools/sha256_checksum.html

also looked at the sha256.c file in the ncs/modules/crypto/mbedtls/library/ and it looks the same 

however, both of them don't give the same hash as i see in the smp dfu notification images 

what is the protocol or what am i doing wrong ?

hope to read from you soon

best regards

Ziv

Parents Reply Children
No Data
Related