package org.apache.kerberos.kerb.crypto;
import org.apache.kerberos.kerb.KrbException;
import org.apache.kerberos.kerb.spec.common.CheckSumType;
import org.apache.kerberos.kerb.spec.common.EncryptionType;
public interface EncTypeHandler extends CryptoTypeHandler {
public EncryptionType eType();
public int keyInputSize();
public int keySize();
public int confounderSize();
public int checksumSize();
public int paddingSize();
public byte[] str2key(String string,
String salt, byte[] param) throws KrbException;
public byte[] random2Key(byte[] randomBits) throws KrbException;
public CheckSumType checksumType();
public byte[] encrypt(byte[] data, byte[] key, int usage)
throws KrbException;
public byte[] encrypt(byte[] data, byte[] key, byte[] ivec,
int usage) throws KrbException;
public byte[] decrypt(byte[] cipher, byte[] key, int usage)
throws KrbException;
public byte[] decrypt(byte[] cipher, byte[] key, byte[] ivec,
int usage) throws KrbException;
}