new algorithms

You are here

new algorithms

6 posts / 0 new
Last post
fpirillo
fpirillo's picture
new algorithms

I've added a new algorithm to the list (RC2) however when In the partner config dialog, I've added an item to the combo box for RC2, so there are three items that show up in the list ("No encryption", "3DES", "RC2"). However, when I'm in the partner config dialog and I change the encryption type to RC2, I can't get the change to persist. That is when I return to the dialog, the option is reset back to 3DES

How can I correct this?

fpirillo
fpirillo's picture

the OID of the RC2 algorithm is already hard-coded in the software. For reference purposes the OID is "1.2.840.113549.3.2".

fpirillo
fpirillo's picture

I had forgotten to change the code for the encryption type combo box event handler jComboBoxEncryptionTypeActionPerformed).
It was only checking for no encryption and 3DES, now I added RC2 to the list of item checks it makes.

heller
heller's picture

fpirillo,

thank you for this hint. We will add the RC2/40 encryption/decryption capability to the next version of m-e-c as2.
Anyway please remember that RC2/40 is a weak encryption and if sender and receiver support tripleDES they should use it instead, tripleDES is a stronger algorithm.

Regards
Heller

fpirillo
fpirillo's picture

my trading partner uses 128-bit RC2 CBC with PKCS5 padding. So I'm aiming to support that in the software, because as of current, we have to send plain text in order to have a successful transmission as their encryption algorithms are not supported in the mec software.

Do you know if the BouncyCastle API supports RC2 128-bit encryption?? I'm not too familiar with that API.

thanks

heller
heller's picture

fpirillo,

please have a look at this comment for supported algorithm in the next version of m-e-c as2.

Regards
Heller