Revisions and Commits
|rC5632fa359a8c ecc: Check the input length for the point.|
|rCbd662c090bd4 ecc: Fix the previous commit.|
|rC5f814e8a4968 ecc: Fix the input length check for Montgomery curve.|
Note that the handling e part uses standard MPI in 1.8 (while it is done by opaque MPI in 1.9).
Suppose that the data is 33-byte with the prefix 0x40 (=='@'):
@ L1234567 89abcdef ghijklmn opqrstuM
The committed code assumes, it goes to:
Mutsrqpo nmlkjihg fedcba98 7654321L @
with returned rawmpilen = 33.
But actually, on 64-bit machine, it goes to:
Mutsrqpo nmlkjihg fedcba98 7654321L @_______
FWIW, I think that it is a Bad Thing to use unreleased stuff from 1.8 for Debian packages. Only released versions sshould be used or patches we explicitly made to fix a bug. At the very least Andreas should have asked upstream whether this commit should be used for Sid.