Hello,
I've been playing with the Toybox.Cryptography module to achieve a "native" implementation of TOTP (RFC 6238) using our devices' internal cryptographic resources.
[working with SDK 3.0.6 toolchain/simulator] When compiling with "d2charlie" (CIQ 3.0.0) as target, Toybox.Cryptography symbols such as HASH_SHA1 or HashBasedMessageAuthenticationCode lead to SymbolNotFound exceptions. Switching to "fenix5x" as target works. Running the code on an actual D2 Charlie also works. SDK bug ?
Also, do you have plan to allow the entire range of SHA hash functions in HashBasedMessageAuthenticationCode, instead of only SHA-256 (most TOTP implementations - e.g. Google's, GitHub's, etc. - use SHA-1) ?
And just out-of-curiosity: are (some) Toybox.Cryptography primitives hardware-backed/accelerated ?
Best