public class CipherProxy extends Object
CipherCipher| Constructor and Description |
|---|
CipherProxy() |
| Modifier and Type | Method and Description |
|---|---|
static javacardx.crypto.Cipher |
getInstance(byte algorithm,
boolean externalAccess)
Creates a
Cipher object instance of the selected algorithm. |
public static final javacardx.crypto.Cipher getInstance(byte algorithm,
boolean externalAccess)
throws javacard.security.CryptoException
Cipher object instance of the selected algorithm.algorithm - the desired Cipher algorithm. Valid codes listed in
ALG_ .. constants above, for example, Cipher.ALG_DES_CBC_NOPADexternalAccess - indicates that the instance will be shared among
multiple applet instances and that the Cipher instance will also be accessed (via a Shareable
interface) when the owner of the Cipher instance is not the currently selected applet.
If true the implementation must not allocate CLEAR_ON_DESELECT transient space for internal data.Cipher object instance of the requested algorithmjavacard.security.CryptoException - with the following reason codes:
CryptoException.NO_SUCH_ALGORITHM if the requested algorithm is not supported
or shared access mode is not supported.