All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.provider.key.DES3KeyGenerator

java.lang.Object
   |
   +----java.security.KeyGenerator
           |
           +----cryptix.provider.key.RawKeyGenerator
                   |
                   +----cryptix.provider.key.DESKeyGenerator
                           |
                           +----cryptix.provider.key.DES3KeyGenerator

public class DES3KeyGenerator
extends DESKeyGenerator
A key generator for Triple DES with 3 independent DES keys.

A total of 24 bytes are generated, with a parity bit as the LSB of each byte (i.e. there are 2^168 possible keys). The keys are encoded in the order in which they are used for encryption. A Triple DES key is considered weak if any of its constituent keys are weak, or if two or more of those keys are equal, ignoring parity.

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Author:
David Hopwood, Raif Naffah

Constructor Index

 o DES3KeyGenerator()

Method Index

 o isWeak(byte[])
Returns true iff the first 24 bytes of key represent a weak or semi-weak Triple DES key.

Constructors

 o DES3KeyGenerator
 public DES3KeyGenerator()

Methods

 o isWeak
 protected boolean isWeak(byte key[])
Returns true iff the first 24 bytes of key represent a weak or semi-weak Triple DES key.

Overrides:
isWeak in class DESKeyGenerator

All Packages  Class Hierarchy  This Package  Previous  Next  Index