-
- All Superinterfaces:
CryptoAlgorithm
- All Known Subinterfaces:
AsymmetricKeyCreator<PR,PU,PAIR>
,SymmetricKeyCreator<K>
- All Known Implementing Classes:
AbstractAsymmetricKeyCreator
,AsymmetricKeyCreatorEcBc
,AsymmetricKeyCreatorImpl
,AsymmetricKeyCreatorRsa
,SymmetricKeyCreatorImpl
public interface KeyCreator extends CryptoAlgorithm
Abstract interface for dealing with cryptographic keys. As symmetric and asymmetric key creation are so different there is no common method here. This might change in the future.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
- See Also:
AsymmetricKeyCreator
,SymmetricKeyCreator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getKeyLength()
-
Methods inherited from interface io.github.mmm.crypto.algorithm.CryptoAlgorithm
getAlgorithm
-
-
-
-
Method Detail
-
getKeyLength
int getKeyLength()
- Returns:
- the length of the key in bits. The bigger the key length the stronger and more secure the encryption but
also the more computation power is required. Reasonable values depend on the
algorithm
: A recent value for RSA is 4096 bits while for PBKDF2 256 may be sufficient.
-
-