Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tinydtls-dev] master-key generation problem

Hi Michael,

Michael Morscher <morscher@xxxxxx> writes:

> I tried to dig a bit deeper but I'm not finding much answers. However
> the main logic like key length/copying keys etc. works fine. I've
> debugged a x86 version of the dtls-server example supplied by the
> library and it works the same way. However on my CC2538 platform the
> result of the master key is plain wrong.

Okay, so this makes your following assumptions very plausible:

> I am not sure where the problem is but my guesses are that I either
> have a stack/memory problem where the memcpy functions are just
> copying the wrong values or the SHA_XXX() functions or the SHA256
> functions are delivering different values on my platform.

Hoping that there is no stack smashing: Do you happen to know the
current endianness of your CC2538 platform?


Back to the top