Appendix C: IBMJCE Keysize Restrictions
The IBMJCE provider enforces the following restrictions on the keysize passed to the initialization methods of the following classes:
- KeyGenerator
- Restrictions (by algorithm):
- DES: keysize must be equal to
56
- Triple DES: keysize must be equal to
112
or168
Note: A keysize of112
will generate a Triple DES key with 2 intermediate keys, and a keysize of168
will generate a Triple DES key with 3 intermediate keys. - Blowfish: keysize must be a multiple of
8
, and can only range from32
to448
, inclusive
- DES: keysize must be equal to
- KeyPairGenerator
- Restrictions (by algorithm):
- Diffie-Hellman: keysize must be a multiple of
64
, and can only range from512
to2048
, inclusive
- Diffie-Hellman: keysize must be a multiple of
- AlgorithmParameterGenerator
- Restrictions (by algorithm):
- Diffie-Hellman: keysize must be a multiple of
64
, and can only range from512
to2048
, inclusive
- Diffie-Hellman: keysize must be a multiple of