[cp-patches] For Review: classpath crypto JCE RSA related enhancements

Vivek Lakshmanan vivekl at redhat.com
Thu Jun 1 06:47:30 UTC 2006


Hi All,
The attached patch fixes a few bugs related to RSA through JCE:
- It relaxes the rules on the block chaining and padding requirements
  for JCE RSA clients. This will stop the RSA implementation from
  complaining when the default padding and chaining is specified.

- The block size of the RSA cipher is now the size of the buffer instead
  of the constant '1'.
- Add support for KeyPairGenerator for RSA.
- Some minor cosmetic fix-ups.

Please review and let me know if any changes need to be made.
Thanks,
Vivek


Changelog:

2006-06-01  Vivek Lakshmanan  <vivekl at redhat.com>

        * gnu/java/security/Registry.java
        (NONE_MODE) : New Constant.
        (PADDING_SUFFIX) : New constant.
        (PKCS1_PAD) : New constant.
        * gnu/javax/crypto/RSACipherImpl.java
        (engineGetBlockSize) : Return the length of the buffer if initialized, else throw exception.
        (engineSetMode) : Avoid throwing exception on passing default block chaining mode (none).
        (engineSetPadding) : Avoid throwing exception on passing default padding (PKCS1).
        * gnu/javax/crypto/jce/GnuCrypto.java
        (GnuCrypto) : Add support for KeyPairGenerator for RSA (See RSAKeyPairGeneratorSpi).
        * gnu/javax/crypto/jce/sig/RSAKeyPairGeneratorSpi.java: New file.
        * gnu/javax/crypto/pad/PadFactory.java
        (getInstance) : Avoid explicit usage of "Padding" literal (See PADDING_SUFFIX).



-------------- next part --------------
A non-text attachment was scrubbed...
Name: classpath-crypto-RSA.patch
Type: text/x-patch
Size: 9246 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060601/efc4aecb/classpath-crypto-RSA.bin


More information about the Classpath-patches mailing list