Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Equivalent tranformation spec. in Bouncy Castle API 1.4
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

Report this thread to moderator Post Follow-up to this message
Old Post
Michael
09-28-04 09:13 PM


Re: Equivalent tranformation spec. in Bouncy Castle API 1.4
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

Report this thread to moderator Post Follow-up to this message
Old Post
Michael Amling
09-29-04 10:01 AM


Re: Equivalent tranformation spec. in Bouncy Castle API 1.4
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

Report this thread to moderator Post Follow-up to this message
Old Post
Michael
09-29-04 10:01 AM


Re: Equivalent tranformation spec. in Bouncy Castle API 1.4
>
>   [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




Report this thread to moderator Post Follow-up to this message
Old Post
Greg Stark
09-30-04 01:09 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Security archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:33 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.