public Priv3DES() { this.salt = Salt.getInstance(); }
public PrivDES() { this.salt = Salt.getInstance(); }
/** * Constructor. * * @param keyBytes * Length of key, must be 16, 24 or 32. * @throws IllegalArgumentException * if keyBytes is illegal */ public PrivAES(int keyBytes) { if ((keyBytes != 16) && (keyBytes != 24) && (keyBytes != 32)) { throw new IllegalArgumentException( "Only 128, 192 and 256 bit AES is allowed. Requested (" + (8 * keyBytes) + ")."); } this.keyBytes = keyBytes; this.salt = Salt.getInstance(); }
public Priv3DES() { super.initVectorLength = INIT_VECTOR_LENGTH; super.protocolId = PROTOCOL_ID; super.protocolClass = PROTOCOL_CLASS; super.keyBytes = KEY_LENGTH; this.salt = Salt.getInstance(); cipherPool = new CipherPool(); }
public PrivDES() { super.initVectorLength = INIT_VECTOR_LENGTH; super.protocolId = PROTOCOL_ID; super.protocolClass = PROTOCOL_CLASS; super.keyBytes = KEY_LENGTH; this.salt = Salt.getInstance(); cipherPool = new CipherPool(); }
public Priv3DES() { super.initVectorLength = INIT_VECTOR_LENGTH; super.protocolId = PROTOCOL_ID; super.protocolClass = PROTOCOL_CLASS; super.keyBytes = KEY_LENGTH; this.salt = Salt.getInstance(); cipherPool = new CipherPool(); }
public PrivDES() { super.initVectorLength = INIT_VECTOR_LENGTH; super.protocolId = PROTOCOL_ID; super.protocolClass = PROTOCOL_CLASS; super.keyBytes = KEY_LENGTH; this.salt = Salt.getInstance(); cipherPool = new CipherPool(); }
/** * Constructor. * * @param keyBytes * Length of key, must be 16, 24 or 32. * @throws IllegalArgumentException * if keyBytes is illegal */ public PrivAES(int keyBytes) { super.initVectorLength = INIT_VECTOR_LENGTH; super.protocolId = PROTOCOL_ID; super.protocolClass = PROTOCOL_CLASS; if ((keyBytes != 16) && (keyBytes != 24) && (keyBytes != 32)) { throw new IllegalArgumentException( "Only 128, 192 and 256 bit AES is allowed. Requested (" + (8 * keyBytes) + ")."); } this.keyBytes = keyBytes; this.salt = Salt.getInstance(); cipherPool = new CipherPool(); }
/** * Constructor. * * @param keyBytes * Length of key, must be 16, 24 or 32. * @throws IllegalArgumentException * if keyBytes is illegal */ public PrivAES(int keyBytes) { super.initVectorLength = INIT_VECTOR_LENGTH; super.protocolId = PROTOCOL_ID; super.protocolClass = PROTOCOL_CLASS; if ((keyBytes != 16) && (keyBytes != 24) && (keyBytes != 32)) { throw new IllegalArgumentException( "Only 128, 192 and 256 bit AES is allowed. Requested (" + (8 * keyBytes) + ")."); } this.keyBytes = keyBytes; this.salt = Salt.getInstance(); cipherPool = new CipherPool(); }