cryptix.provider.key
Class SAFERKeyGenerator
java.lang.Object
|
+--xjava.security.KeyGenerator
|
+--cryptix.provider.key.RawKeyGenerator
|
+--cryptix.provider.key.SAFERKeyGenerator
- public class SAFERKeyGenerator
- extends RawKeyGenerator
A key generator for SAFER.
SAFER keys have a length of either 64 or 128 bits. The default is
128 bits.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
- Since:
- Cryptix 2.2.2
- Author:
- David Hopwood
Method Summary |
boolean |
isValidKeyLength(int length)
Returns true iff length is a valid key length (in bytes)
for this algorithm. |
Methods inherited from class cryptix.provider.key.RawKeyGenerator |
engineGenerateKey,
generateKey,
generateKey,
getDefaultKeyLength,
getMaximumKeyLength,
getMinimumKeyLength,
initialize,
initialize,
isWeak,
isWeakAllowed,
setWeakAllowed |
Methods inherited from class xjava.security.KeyGenerator |
clone,
engineGetParameter,
engineSetParameter,
getAlgorithm,
getAlgorithms,
getAlgorithms,
getInstance,
getInstance,
getParameter,
setParameter,
toString |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
SAFERKeyGenerator
public SAFERKeyGenerator()
isValidKeyLength
public boolean isValidKeyLength(int length)
- Description copied from class: RawKeyGenerator
- Returns true iff length is a valid key length (in bytes)
for this algorithm.
The default implementation returns true if length is between
the minimum and maximum key lengths. Some algorithms will override
this method to specify a more restricted set of values.
- Overrides:
- isValidKeyLength in class RawKeyGenerator
Copyright (C) 1995-2000 The Cryptix Foundation Ltd. All rights reserved.