public static enum JNIPKCS11.EcdsaDigestFormat extends java.lang.Enum<JNIPKCS11.EcdsaDigestFormat>
Since there is some ambiguity in the PKCS#11 standard regarding the
format the digest should be in when performing an ECDSA operation,
support was added for the different digest formats required by various
vendors. To support these vendors, prior to calling the
signInit() API the ECDSA
digest format used by the device must be determined by calling the
getEcdsaDigestFormat() API.
Then, prior to calling the sign(),
the digest must be formatted appropriately for the device by calling the
formatEcdsaDigest()
API.
ECDSA digest formatting is handled automatically when using the Entrust ECDSA signature algorithm implementation through the Java Cryptography Architecture (JCA).
| Enum Constant and Description |
|---|
NON_STANDARD_1
Truncated digest left padded with zeros to order size (as required by
Luna).
|
NON_STANDARD_2
Truncated digest left padded with zeros to known digest size (as
required by nCipher fips-mode).
|
NON_STANDARD_3
Digest left padded and right padded with zeros to known digest size
(as required by patched nCipher fips-mode).
|
STANDARD
Standard PKCS#11 ECDSA digest format (raw digest).
|
| Modifier and Type | Method and Description |
|---|---|
static JNIPKCS11.EcdsaDigestFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JNIPKCS11.EcdsaDigestFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JNIPKCS11.EcdsaDigestFormat STANDARD
public static final JNIPKCS11.EcdsaDigestFormat NON_STANDARD_1
public static final JNIPKCS11.EcdsaDigestFormat NON_STANDARD_2
public static final JNIPKCS11.EcdsaDigestFormat NON_STANDARD_3
public static JNIPKCS11.EcdsaDigestFormat[] values()
for (JNIPKCS11.EcdsaDigestFormat c : JNIPKCS11.EcdsaDigestFormat.values()) System.out.println(c);
public static JNIPKCS11.EcdsaDigestFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null