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