tests/basic fails sometimes...

Jussi Kivilinna jussi.kivilinna at iki.fi
Fri Dec 13 23:44:53 CET 2013


On 13.12.2013 23:06, Werner Koch wrote:
> On Fri, 13 Dec 2013 11:09, jussi.kivilinna at iki.fi said:
> 
>> 'basic' tests appear to fail sometimes, with following error.
> 
> I have not seen that.  You can add the option --verbose to see which
> test fails.

Here's few outputs...

On x86-64 Ubuntu 13.10:

  encryption/decryption test 12 (algo 1)
  data:
(data 
 (flags oaep)
 (value #11223344556677889900AA#)
 )
  ciph:
(enc-val 
 (flags pkcs1)
 (rsa 
  (a #3285AB8496E0AFCAF101A3D37B7ACE1EA4D70E1ED01084E95259539A4AD87C17E005A876ED72A6809F76FC46A18D13B9A50E06C7FE8BE41E0C58724A926653C9CA1B23AF645DE9A01F0F0C3C91AD79F64E09868587E3A2D942F95C0E6529AA83ADE0DFE36CA7C242F1AEF04E6F8918BA3D3CB6C6835609C24FCC0D9FA2B0C304#)
  )
 )
   key:
(private-key 
 (rsa 
  (n #00C02CCF63987B270C20B6C35D3164C485110087C7CFE2A9E24E6D88AF04762D5B62400EE4F7384DA222224D3DAE1F1A76A763561FBC7F9D17293BD86F1DDC25C43574290C2BE1C2FAFE52E8A2031D7FE8E9E01B87A1EDA67C8F4883C54F514243AF73A3CD1507454A618420637C3108F92F88134D2DA71D02753B108660DC2419#)
  (e #010001#)
  (d #097803C171654B059DD487807F632ACC302BE5A4CE9D4957D75BAE070A9A1C8EC2C2EB80F45DEBB454087AE411C0E253CB9859495FC72D69335CC9A3A2F5E28DE7ED8C3EA494614ACE35BAD2D253A575A9FBB1F20AD1663470E34561D77E3D2007F3AD7842A527A25EBEC93FA8C930E4DF20A063650E380B782D35AEE9DAF371#)
  (p #00C0A09C6F81CF6C3A5A620BEE1B4CA31A019CAA9216BC02D6E87106DE3AD14CAB3FEDB87FFEA6457367FF894676F2A3363D70B01E1B5A45BD019AF4A6285464B1#)
  (q #00FF661A028063A1174FB6F25266A4E3CCBDD7406C03AE948C1B582CD0051A80D8B1D2AFCC3387C62C305111D7391579BE9F9009BF0698FADA35C39DEEAA902FE9#)
  (u #008896DA905EB7D39DC940DB3CFB261970B388735D679A19E04B5F3805220BF5B3F550AA2A4432011BE060AE20145E7D76226AAA5A2CBE0E7997F6B5303B807F33#)
  )
 )
gcry_pk_decrypt failed: expected 155 (Encoding problem), got 0 (Success)
gcry_pk_encrypt/gcry_pk_decrypt do not roundtrip


On i386 Debian 7.2:

  encryption/decryption test 12 (algo 1)
  data:
(data 
 (flags oaep)
 (value #11223344556677889900AA#)
 )
  ciph:
(enc-val 
 (flags pkcs1)
 (rsa 
  (a #98517CDB7942C179BAFDC77EC9FF60801F2DA70059F46B19BEFACC1EA2945388892A4AB22A3F16EF306F1D7B997AB81823D471445B50F2E46A8FD1DCE912BCC0CC0A3901A37D66580665788544C87FF176F6427D6D0A92046F0933477C2C6E2D7C5939C56E2C38A4998825BF3754351DC944B5000742F51CC14307C4334629C8#)
  )
 )
   key:
(private-key 
 (rsa 
  (n #00B910CA8FC0B4D48F7BF395B1F1CC10597F7FB14FF13F3E09FA36EFBDEB5B6061A6A8DCA77287B5707AA7E51D199E5E00536C9091D9CEF641AF8389502725B9AF383760789E26E0EC05094254D44E3431FDAFA9DA63AC22AEB07DD0F864BB34BE423D0A18E51EEA93A5A1AA26B7B1CC976B9C9E2A025D2F8A20F012B2CB12EBE9#)
  (e #010001#)
  (d #3345B8A91D1DBC6A485013202ABA7BA9200ED3A42F55732DB679F3EFED3DF2B4FB447B6594F08E4F2C5C49B8C7393E17DF050C04AC908F5F616E12E3F70497ADBFF88CA2A2BC3569E93108918F386C9E5D1A434BDD11C9EEA644F6DF4E1997C5D6E0207C52E9CD0A5EFD7A899D42D5F2C97D13CD9FBB75E8669F213DBAD137C5#)
  (p #00CA2C03EA8833365BBB20730895F802D34533B77B3D520D824A800C18D194AF32C8CD6787A32EA88241D5363DE24287FB45807718C1AB3166787DDBCDAE0B88EF#)
  (q #00EA56CFE995AA3C3C3FA8F8C4FA72F5241993AB9040987192DE6EB751F65E4935432EC2620FD05DC1A4E20465B31184E867D07A53E0D1B89A9045C68A41CCE8A7#)
  (u #1CF4F9CF570F57292385912FA5A7EC16B519B92CF680935C3793ABD24C885969846D6981C22A37007AA9BC266431C705878EDEA8B65D86FD592BAC4899A9CFA7#)
  )
 )
gcry_pk_decrypt failed: expected 155 (Encoding problem), got 0 (Success)
gcry_pk_encrypt/gcry_pk_decrypt do not roundtrip


> What platform are you using?

So far I have tested:
 - x86-64 machines running 64-bit Ubuntu 13.10 and 12.04
 - mingw32 build on Ubuntu 13.10
 - i386 build on Ubuntu 13.10
 - "--disable-asm" with x86-64 Ubuntu 13.10
 - i386 machine with Debian 7.2
 - armhf cross-compile build on Ubuntu 13.10 and run tests/basic with QEMU

-Jussi

> 
> 
> Shalom-Salam,
> 
>    Werner
> 




More information about the Gcrypt-devel mailing list