All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.provider.key.LOKI91KeyGenerator
java.lang.Object
|
+----java.security.KeyGenerator
|
+----cryptix.provider.key.RawKeyGenerator
|
+----cryptix.provider.key.LOKI91KeyGenerator
- public class LOKI91KeyGenerator
- extends RawKeyGenerator
A key generator for LOKI91.
LOKI91 keys have a fixed length of 64 bits.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1 $
- Author:
- Raif S. Naffah, David Hopwood
-
LOKI91KeyGenerator()
-
-
isWeak(byte[])
- Returns true iff the byte array key represents a
weak or semi-weak LOKI91 key.
LOKI91KeyGenerator
public LOKI91KeyGenerator()
isWeak
public boolean isWeak(byte key[])
- Returns true iff the byte array key represents a
weak or semi-weak LOKI91 key.
LOKI91 has four weak keys and twelve semi-weak keys. Here are
the lists of these keys (values given in hexadecimal form):
Weak Keys:
- 00000000 00000000
- FFFFFFFF FFFFFFFF
- 55555555 AAAAAAAA
- AAAAAAAA 55555555
Semi-Weak Keys:
- 00000000 55555555
- AAAAAAAA 00000000
- 00000000 AAAAAAAA
- 55555555 00000000
- 00000000 FFFFFFFF
- FFFFFFFF 00000000
- 55555555 55555555
- AAAAAAAA AAAAAAAA
- 55555555 FFFFFFFF
- FFFFFFFF AAAAAAAA
- AAAAAAAA FFFFFFFF
- FFFFFFFF 55555555
- Parameters:
- key - the byte array containing user key data.
- Overrides:
- isWeak in class RawKeyGenerator
All Packages Class Hierarchy This Package Previous Next Index