public abstract class AbstractEncTypeHandler extends AbstractCryptoTypeHandler implements EncTypeHandler
| Constructor and Description |
|---|
AbstractEncTypeHandler(EncryptProvider encProvider,
HashProvider hashProvider,
int prfSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
checksumSize() |
int |
confounderSize() |
byte[] |
decrypt(byte[] cipher,
byte[] key,
byte[] iv,
int usage) |
byte[] |
decrypt(byte[] cipher,
byte[] key,
int usage) |
byte[] |
decryptRaw(byte[] cipher,
byte[] key,
byte[] iv,
int usage) |
byte[] |
decryptRaw(byte[] cipher,
byte[] key,
int usage) |
protected byte[] |
decryptWith(byte[] workBuffer,
int[] workLens,
byte[] key,
byte[] iv,
int usage,
boolean raw) |
String |
displayName() |
byte[] |
encrypt(byte[] data,
byte[] key,
byte[] iv,
int usage) |
byte[] |
encrypt(byte[] data,
byte[] key,
int usage) |
byte[] |
encryptRaw(byte[] data,
byte[] key,
byte[] iv,
int usage) |
byte[] |
encryptRaw(byte[] data,
byte[] key,
int usage) |
protected void |
encryptWith(byte[] workBuffer,
int[] workLens,
byte[] key,
byte[] iv,
int usage,
boolean raw) |
int |
keyInputSize() |
protected KeyMaker |
keyMaker() |
protected void |
keyMaker(KeyMaker keyMaker) |
int |
keySize() |
String |
name() |
protected abstract int |
paddingLength(int inputLen) |
int |
paddingSize() |
int |
prfSize() |
byte[] |
random2Key(byte[] randomBits) |
byte[] |
str2key(String string,
String salt,
byte[] param) |
checksumEqual, checksumEqual, encProvider, hashProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchecksumType, eType, prfencProvider, hashProviderpublic AbstractEncTypeHandler(EncryptProvider encProvider, HashProvider hashProvider, int prfSize)
protected void keyMaker(KeyMaker keyMaker)
protected KeyMaker keyMaker()
public int prfSize()
prfSize in interface EncTypeHandlerpublic String name()
name in interface CryptoTypeHandlerpublic String displayName()
displayName in interface CryptoTypeHandlerprotected abstract int paddingLength(int inputLen)
public int keyInputSize()
keyInputSize in interface EncTypeHandlerpublic int keySize()
keySize in interface EncTypeHandlerpublic int confounderSize()
confounderSize in interface EncTypeHandlerpublic int checksumSize()
checksumSize in interface EncTypeHandlerpublic int paddingSize()
paddingSize in interface EncTypeHandlerpublic byte[] str2key(String string, String salt, byte[] param) throws KrbException
str2key in interface EncTypeHandlerKrbExceptionpublic byte[] random2Key(byte[] randomBits)
throws KrbException
random2Key in interface EncTypeHandlerKrbExceptionpublic byte[] encrypt(byte[] data,
byte[] key,
int usage)
throws KrbException
encrypt in interface EncTypeHandlerKrbExceptionpublic byte[] encrypt(byte[] data,
byte[] key,
byte[] iv,
int usage)
throws KrbException
encrypt in interface EncTypeHandlerKrbExceptionpublic byte[] encryptRaw(byte[] data,
byte[] key,
int usage)
throws KrbException
encryptRaw in interface EncTypeHandlerKrbExceptionpublic byte[] encryptRaw(byte[] data,
byte[] key,
byte[] iv,
int usage)
throws KrbException
encryptRaw in interface EncTypeHandlerKrbExceptionprotected void encryptWith(byte[] workBuffer,
int[] workLens,
byte[] key,
byte[] iv,
int usage,
boolean raw)
throws KrbException
KrbExceptionpublic byte[] decrypt(byte[] cipher,
byte[] key,
int usage)
throws KrbException
decrypt in interface EncTypeHandlerKrbExceptionpublic byte[] decrypt(byte[] cipher,
byte[] key,
byte[] iv,
int usage)
throws KrbException
decrypt in interface EncTypeHandlerKrbExceptionpublic byte[] decryptRaw(byte[] cipher,
byte[] key,
int usage)
throws KrbException
decryptRaw in interface EncTypeHandlerKrbExceptionpublic byte[] decryptRaw(byte[] cipher,
byte[] key,
byte[] iv,
int usage)
throws KrbException
decryptRaw in interface EncTypeHandlerKrbExceptionprotected byte[] decryptWith(byte[] workBuffer,
int[] workLens,
byte[] key,
byte[] iv,
int usage,
boolean raw)
throws KrbException
KrbExceptionCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.