aMule Forum

English => aMule Help => Topic started by: mc on April 03, 2008, 07:07:38 AM

Title: InvertibleRSAFunction: computational error during private key operation
Post by: mc on April 03, 2008, 07:07:38 AM
Hello, all

What are these? It seems that there are no functional problems, but a lot of logs.
Code: [Select]
2008-04-03 12:59:00: ClientCreditsList.cpp(381): Credits: Error while creating signature: InvertibleRSAFunction: computational error during private key operation
2008-04-03 12:59:01: ClientCreditsList.cpp(381): Credits: Error while creating signature: InvertibleRSAFunction: computational error during private key operation
I'm using amule-cvs-20080402 on Fedora x86_64.
Thank you
Title: Re: InvertibleRSAFunction: computational error during private key operation
Post by: GonoszTopi on April 03, 2008, 10:59:49 AM
What version of crypto++ are you using? Seems like a crypto++ error.
Title: Re: InvertibleRSAFunction: computational error during private key operation
Post by: mc on April 03, 2008, 01:11:33 PM
I'm using  the Crypto++ Version 5.5.2 compiled by gcc version 4.3.0 and have found that gcc 4.3.0 caused this.
Title: Re: InvertibleRSAFunction: computational error during private key operation
Post by: mc on April 03, 2008, 01:26:13 PM
'./cryptest.exe  v' revealed the following:
Code: [Select]
.............................
BlumBlumShub validation suite running...

passed    49ea2cfdb01064a0bbb92af101dac18a94f7b7ce
FAILED    5e205ecc60e4c12d044c
FAILED    8c6c2c1b3cc52df5077c041f006147f07f3c7161

DH validation suite running...

FAILED    simple key agreement domain parameters invalid

MQV validation suite running...

FAILED    authenticated key agreement domain parameters invalid

RSA validation suite running...


CryptoPP::Exception caught: InvertibleRSAFunction: computational error during private key operation
Should we convince GCC or Cryptopp people?
By the way, I could not visit www.cryptopp.com.
Title: Re: InvertibleRSAFunction: computational error during private key operation
Post by: GonoszTopi on April 03, 2008, 05:51:35 PM
Should we convince GCC or Cryptopp people?
Both.
Title: Re: InvertibleRSAFunction: computational error during private key operation
Post by: Kry on April 03, 2008, 06:26:50 PM
That's scary.
Title: Re: InvertibleRSAFunction: computational error during private key operation
Post by: mc on April 04, 2008, 02:51:53 AM
g++ -O1 -fschedule-insns  -c algparam.cpp
Code: [Select]
algparam.cpp: In member function ‘virtual bool CryptoPP::CombinedNameValuePairs::GetVoidValue(const char*, const std::type_info&, void*) const’:
algparam.cpp:19: error: unable to find a register to spill in class ‘CREG’
algparam.cpp:19: error: this is the insn:
(insn 13 4 5 2 algparam.cpp:15 (parallel [
            (set (reg:CC 17 flags)
                (compare:CC (mem:BLK (reg:DI 4 si [orig:73 name ] [73]) [0 A8])
                    (mem/s/j:BLK (reg:DI 37 r8 [74]) [0 A8])))
            (use (reg:DI 0 ax [75]))
            (use (const_int 1 [0x1]))
            (clobber (reg:DI 4 si [orig:73 name ] [73]))
            (clobber (reg:DI 37 r8 [74]))
            (clobber (reg:DI 0 ax [75]))
        ]) 806 {*cmpstrnqi_nz_rex_1} (expr_list:REG_DEAD (reg:DI 0 ax [75])
        (expr_list:REG_DEAD (reg:DI 37 r8 [74])
            (expr_list:REG_DEAD (reg:DI 4 si [orig:73 name ] [73])
                (expr_list:REG_UNUSED (reg:DI 0 ax [75])
                    (expr_list:REG_UNUSED (reg:DI 37 r8 [74])
                        (expr_list:REG_UNUSED (reg:DI 4 si [orig:73 name ] [73])
                            (nil))))))))
algparam.cpp:19: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccobGXmz.out file, please attach this to your bugreport.

Seems to be a known problem.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27001
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33791

But '-O2' does not reveal this.