javacardx.crypto
Class Cipher
java.lang.Object
|
+--javacardx.crypto.Cipher
- Direct Known Subclasses:
- XORCipher
- public abstract class Cipher
- extends java.lang.Object
Constructor Summary |
protected |
Cipher()
|
Method Summary |
abstract short |
doFinal(byte[] inBuff,
short inOffset,
short inLength,
byte[] outBuff,
short outOffset)
|
abstract byte |
getAlgorithm()
|
static Cipher |
getInstance(byte algorithm,
boolean externalAccess)
|
abstract void |
init(Key theKey,
byte theMode)
|
abstract void |
init(Key theKey,
byte theMode,
byte[] bArray,
short bOff,
short bLen)
|
abstract short |
update(byte[] inBuff,
short inOffset,
short inLength,
byte[] outBuff,
short outOffset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODE_DECRYPT
public static final byte MODE_DECRYPT
- See Also:
- Constant Field Values
MODE_ENCRYPT
public static final byte MODE_ENCRYPT
- See Also:
- Constant Field Values
ALG_XOR
public static final byte ALG_XOR
- See Also:
- Constant Field Values
Cipher
protected Cipher()
getInstance
public static final Cipher getInstance(byte algorithm,
boolean externalAccess)
throws CryptoException
CryptoException
init
public abstract void init(Key theKey,
byte theMode)
throws CryptoException
CryptoException
init
public abstract void init(Key theKey,
byte theMode,
byte[] bArray,
short bOff,
short bLen)
throws CryptoException
CryptoException
getAlgorithm
public abstract byte getAlgorithm()
doFinal
public abstract short doFinal(byte[] inBuff,
short inOffset,
short inLength,
byte[] outBuff,
short outOffset)
throws CryptoException
CryptoException
update
public abstract short update(byte[] inBuff,
short inOffset,
short inLength,
byte[] outBuff,
short outOffset)
throws CryptoException
CryptoException