[erlang-questions] A pointless problem?
Sat Nov 17 18:33:22 CET 2012
On Sat, Nov 17, 2012 at 6:02 PM, Steve Davis <steven.charles.davis@REDACTED
> I am intrigued by what is arguably a pointless problem.
> Looking at the tiny encryption algorithm aka XXTEA it seemed easy enough
> to implement in Erlang. I have an implementation (attached with source and
> all references inside the module) which encodes and decodes successfully...
> BUT the cipher text doesn't match the test vectors...
I had exactly the same problem with tea a few years ago ...
I'd really like to see:
a) an algebraic spec
b) reference implementations in more than one language that I can reproduce
I'm more interested in inter-operability than performance - (think client
backend in C / Erlang) - so compliance with the spec is more important than
(which is why I like RSA implemented in erlang bignums - no chance of
backdoors in the code)
> What makes this pointless is that I should "just make it a NIF" etc. But
> it's likely that I am misunderstanding some aspect of either Erlang or C,
> however I am confounded as to what that problem is... why does the attached
> implementation not generate the same ciphertext as in the test vectors from
> the C implementation? Can anyone spot my error?
Before you ask this you might ask "can the test vectors be reproduced in
language/implementation than the reference implementation?"
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions