For Programmers: Free Programming Magazines  


Home > Archive > Java Security > September 2004 > Equivalent tranformation spec. in Bouncy Castle API 1.4









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Equivalent tranformation spec. in Bouncy Castle API 1.4
Michael

2004-09-28, 4:13 pm

Hi all,

We are porting an application from j2ee 1.2 (sdk 1.3) to j2ee 1.3 (sdk
1.4). Our app makes use of Bouncy Castle API for sdk 1.3. So we also
have to use the new Bouncy Castle API for sdk 1.4.

There is a function:

javax.crypto.Cipher.getInstance("DESede//NoPadding")

which has to be ported. But we do not know how to form the equivalence
of the transformation "DESede//NoPadding" in the new getInstance of
Bouncy Castle, since the new GetInstance does not support
"DESede//NoPadding".

We have searched in the docs of Bouncy Castle and JCE extension in
order to find the appropriate values of "DESede//NoPadding" to put in.
In particular which string or char do we have to put between "DESede"
and "NoPadding".

We have tried "NONE". And therefore have substituted
"DESede/NONE/NoPadding". But just got the error:

stderr: java.lang.IllegalArgumentException: can't support mode NONE

Pls note that there is no application documention on which mode we
have to spec in the above mentoned string (algorithm/mode/padding).

Thus, if any one just knows the equivalence transform of
"DESede//NoPadding" for Bouncy Castle (for java sdk 1.4) pls let me
know,

Thanks in advance

Michael
Michael Amling

2004-09-29, 5:01 am

Michael wrote:
> Hi all,
>
> We are porting an application from j2ee 1.2 (sdk 1.3) to j2ee 1.3 (sdk
> 1.4). Our app makes use of Bouncy Castle API for sdk 1.3. So we also
> have to use the new Bouncy Castle API for sdk 1.4.
>
> There is a function:
>
> javax.crypto.Cipher.getInstance("DESede//NoPadding")
>
> which has to be ported. But we do not know how to form the equivalence
> of the transformation "DESede//NoPadding" in the new getInstance of
> Bouncy Castle, since the new GetInstance does not support
> "DESede//NoPadding".
>
> We have searched in the docs of Bouncy Castle and JCE extension in
> order to find the appropriate values of "DESede//NoPadding" to put in.
> In particular which string or char do we have to put between "DESede"
> and "NoPadding".


ECB?

[This is why I write my own implementations. I could never figure out
how to make the providers work.]

--Mike Amling
Michael

2004-09-29, 5:01 am

Hi Michael A.,

Yes, by substituting ECB (that is also the default mode of SUN), we
are able to advance a bit further in our porting...

Thank you very much!

Michael

Michael Amling <nospam@nospam.com> wrote in message news:<tdp6d.1933$Rf1.683@newssvr19.news.prodigy.com>...
> Michael wrote:
>
> ECB?
>
> [This is why I write my own implementations. I could never figure out
> how to make the providers work.]
>
> --Mike Amling

Greg Stark

2004-09-29, 8:09 pm

>
> [This is why I write my own implementations. I could never figure out
> how to make the providers work.]
>


I thought it was just me. I spent about 2 hours trying figure out how to
enter a triple DES key from a byte [] array in jdk 1.4.2. The api is
ridiculously abstract. I haven't looked at the bouncy castle api.

ghstark AT pobox DOT com



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com