IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

IllegalBlockSizeException exception using Cryptix Open PGP

  • 1.  IllegalBlockSizeException exception using Cryptix Open PGP

    Posted Fri February 07, 2003 08:43 AM

    hello

    I use JDK 1.3 and my programs (encrypt, decrypt with Cryptix openPGP) working correctly when I launch them from dos.
    But, by putting the source within webMethods Integration Server, I have the following error who appears
    when I decrypt a file.

    I would like to know why !

    Can somebody explain me what this Exception message really means ?
    javax.crypto.IllegalBlockSizeException
    and the word ‘cipher’ ?

    java.lang.RuntimeException: IllegalBlockSizeException on de/encrypting a key - javax.crypto.IllegalBlockSizeException: Input data length not a multiple of blocksize.
    at cryptix.openpgp.packet.PGPCryptHelper.crypt(PGPCryptHelper.java:92)
    at cryptix.openpgp.packet.PGPKeyPacket.decrypt(PGPKeyPacket.java:487)
    at cryptix.openpgp.provider.PGPKeyBundleImpl.getPrivateSubKey(PGPKeyBundleImpl.java:805)
    at cryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncryptedMessageImpl.java:296)
    –when invoke the method : decrypt()–

    Is anybody can help me please ?
    Thanks
    Fr�ric


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: IllegalBlockSizeException exception using Cryptix Open PGP

    Posted Mon February 10, 2003 04:33 AM

    We have succeeded in encrypting data using Cryptix. We have not succeeded in decrypting it.

    Do you have similar problems when encrypting? If so, I can send you our sources.

    I’d be interested in your decryption code, once you found out how.


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 3.  RE: IllegalBlockSizeException exception using Cryptix Open PGP

    Posted Mon February 10, 2003 11:37 AM

    It’s the same for me, I can Encrypt but I have the IllegalBlockSizeException when I decrypt from wM Developer.
    I try now to generate keys from a Service and the same exception occurs (before, my keys were generated from dos).
    BUT, if I run programs from dos, everything works correctly (Encrypt/Decrypt) !
    Do you perform it with wM Developer ? Instead, I can give you my Decrypt program.
    Fr�ric


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB