|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: ECDSA Bug in ECDSASigner ?Hi Andreas,
This has actually been recently fixed, but you are quite right in your diagnosis. The latest beta (141b06) contains the fix; see http://downloads.bouncycastle.org/betas/ Cheers, Pete. Andreas Menke wrote: > Hi all, > > the calculation of the exponent for a ecdsa signature generation / > verification might be done as figured out in > SEC 1: Elliptic Curve Cryptography,part 4.1.3, point 5.2 > http://www.secg.org/collateral/sec1_final.pdf > that is as a truncation at bit level. The code in ECDSASigner.java (as seen > below) truncates at byte level. As a failing example sign with curve > sect113r1 and hash with sha256 (where 256-113 != 0 mod8). As a counter > sample sign with secp112r1 and hash sha256 (256-112 == 0 mod8). The error is > seen in comparision with crypto++ which uses truncation at bit level (see > gfpcrypt.cpp,line83ff). > > I am *not* a cryptograph, I am a developer who shall *use* ECDSA and I have > found out, that crypto++ and bc have different views upon ECDSA, the paper > quoted above is a hint for me that crypto++ might have done right. > |
| Free Forum Powered by Nabble | Forum Help |