EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElPGPPublicKey on mono gives exception ...

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#12242
Posted: 01/28/2010 12:58:42
by John Nimberly (Basic support level)
Joined: 01/28/2010
Posts: 4

Hi,

i'm trying to use TElPGPPublicKey - but i get an exception when i try to load a key, the code looks simply like this:

string publicKeyFileName = "/tmp";
TElPGPPublicKey publicKey = new TElPGPPublicKey();
publicKey.LoadFromFile (publicKeyFileName);

The exception i get is:
System.ArrayTypeMismatchException: Source array type cannot be assigned to destination array type. at SBPGPEntities.TElPGPPublicKeyEntity.BodyLoaded () [0x00000] at SBPGPEntities.TElPGPEntity.DataAvailable () [0x00000] ...

The file containing the key does exist and is readable - the contained key is valid.

My environment is CentOs 5.3, Mono 2.4/2.6 ... SecureBlackBox Version 5/7.

Does anyone have an idea of what i'm missing? I had similar code running in the past on the CentOs 4.3 and Mono 1.2.5 - and it worked for years ...

thanks
#12244
Posted: 01/28/2010 13:59:46
by Eugene Mayevski (EldoS Corp.)

Something got broken, I guess, and this something is in Mono code generation. Did you use Mono 2.0 assemblies of SecureBlackbox? Also, can you please post your public key here so that we could try to reproduce the issue?


Sincerely yours
Eugene Mayevski
#12246
Posted: 01/29/2010 03:28:39
by John Nimberly (Basic support level)
Joined: 01/28/2010
Posts: 4

Hi,

actually i tried several version of SecureBlackBox - including 5.x, 7.x and the mono package ... but all give the same result with mono 2.4/2.6. The key i'm currently testing with is attached ...

thanks for your help!


[ Download ]
#12250
Posted: 01/29/2010 05:43:28
by Dmytro Bogatskyy (EldoS Corp.)

Thank you for the key.
The problem is with a fixed size jagged array it seems that Mono doesn't understand it correctly.
The workaround will be included in the next release that's expected next week.
#12251
Posted: 01/29/2010 06:08:49
by John Nimberly (Basic support level)
Joined: 01/28/2010
Posts: 4

is there a possibility to work around this issue by e.g. generating the key in a different way, like other key size, ... ?
#12253
Posted: 01/29/2010 08:56:12
by Dmytro Bogatskyy (EldoS Corp.)

Quote
is there a possibility to work around this issue by e.g. generating the key in a different way, like other key size, ... ?

I think no, at least for Mono 2.4.2.3 and 2.6.1 that I tested
Quote
My environment is CentOs 5.3, Mono 2.4/2.6 ... SecureBlackBox Version 5/7.

With upcoming release it is better to use latest Mono version (2.6.1), because version 2.4.2.3 incorrectly processed particular if-statement in PGP.
#12254
Posted: 01/29/2010 09:04:24
by John Nimberly (Basic support level)
Joined: 01/28/2010
Posts: 4

thanks for the info ... one finaly question and sorry, it might be a little off-topic. But i assume when you say "upcoming release" you mean your latest version 7.x? My problem is, i have a license key for the 5.x version (which does not work in the 7 version) of SecureBlackBox - is there a chance to get a fix for that version, too?
#12260
Posted: 01/29/2010 11:23:13
by Eugene Mayevski (EldoS Corp.)

We don't have technical possibility to patch old versions. Also, adding compatibility fixes for changes in third-party software is clearly a benefit of newer versions. As you don't have a license ticket assigned to your account, I can't provide you any upgrade information.


Sincerely yours
Eugene Mayevski
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 1908 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!