javacard.security
Class Signature
java.lang.Object
|
+--javacard.security.Signature
- public class Signature
- extends java.lang.Object
Method Summary |
byte |
getAlgorithm()
|
static Signature |
getInstance(byte algorithm,
boolean externalAccess)
|
short |
getLength()
|
void |
init(Key key,
byte mode)
|
void |
init(Key key,
byte mode,
byte[] array,
short offset,
short length)
|
short |
sign(byte[] inBuff,
short inOffset,
short inLength,
byte[] outBuff,
short outOffset)
|
void |
update(byte[] buffer,
short off,
short length)
|
boolean |
verify(byte[] inBuff,
short inOffset,
short inLength,
byte[] sigBuff,
short sigOffset,
short sigLength)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
private XORPublicKey key
signature
private byte[] signature
mode
private byte mode
offset
private short offset
SIGNATURE_LENGTH
public static final short SIGNATURE_LENGTH
- See Also:
- Constant Field Values
ALG_DES_MAC4_NOPAD
public static final byte ALG_DES_MAC4_NOPAD
- See Also:
- Constant Field Values
ALG_DES_MAC8_NOPAD
public static final byte ALG_DES_MAC8_NOPAD
- See Also:
- Constant Field Values
ALG_DES_MAC4_ISO9797_M1
public static final byte ALG_DES_MAC4_ISO9797_M1
- See Also:
- Constant Field Values
ALG_DES_MAC8_ISO9797_M1
public static final byte ALG_DES_MAC8_ISO9797_M1
- See Also:
- Constant Field Values
ALG_DES_MAC4_ISO9797_M2
public static final byte ALG_DES_MAC4_ISO9797_M2
- See Also:
- Constant Field Values
ALG_DES_MAC8_ISO9797_M2
public static final byte ALG_DES_MAC8_ISO9797_M2
- See Also:
- Constant Field Values
ALG_DES_MAC4_PKCS5
public static final byte ALG_DES_MAC4_PKCS5
- See Also:
- Constant Field Values
ALG_DES_MAC8_PKCS5
public static final byte ALG_DES_MAC8_PKCS5
- See Also:
- Constant Field Values
ALG_RSA_SHA_ISO9796
public static final byte ALG_RSA_SHA_ISO9796
- See Also:
- Constant Field Values
ALG_RSA_SHA_PKCS1
public static final byte ALG_RSA_SHA_PKCS1
- See Also:
- Constant Field Values
ALG_RSA_MD5_PKCS1
public static final byte ALG_RSA_MD5_PKCS1
- See Also:
- Constant Field Values
ALG_RSA_RIPEMD160_ISO9796
public static final byte ALG_RSA_RIPEMD160_ISO9796
- See Also:
- Constant Field Values
ALG_RSA_RIPEMD160_PKCS1
public static final byte ALG_RSA_RIPEMD160_PKCS1
- See Also:
- Constant Field Values
ALG_DSA_SHA
public static final byte ALG_DSA_SHA
- See Also:
- Constant Field Values
ALG_RSA_SHA_RFC2409
public static final byte ALG_RSA_SHA_RFC2409
- See Also:
- Constant Field Values
ALG_RSA_MD5_RFC2409
public static final byte ALG_RSA_MD5_RFC2409
- See Also:
- Constant Field Values
ALG_ECDSA_SHA
public static final byte ALG_ECDSA_SHA
- See Also:
- Constant Field Values
ALG_AES_MAC_128_NOPAD
public static final byte ALG_AES_MAC_128_NOPAD
- See Also:
- Constant Field Values
ALG_DES_MAC4_ISO9797_1_M2_ALG3
public static final byte ALG_DES_MAC4_ISO9797_1_M2_ALG3
- See Also:
- Constant Field Values
ALG_DES_MAC8_ISO9797_1_M2_ALG3
public static final byte ALG_DES_MAC8_ISO9797_1_M2_ALG3
- See Also:
- Constant Field Values
ALG_RSA_SHA_PKCS1_PSS
public static final byte ALG_RSA_SHA_PKCS1_PSS
- See Also:
- Constant Field Values
ALG_RSA_MD5_PKCS1_PSS
public static final byte ALG_RSA_MD5_PKCS1_PSS
- See Also:
- Constant Field Values
ALG_RSA_RIPEMD160_PKCS1_PSS
public static final byte ALG_RSA_RIPEMD160_PKCS1_PSS
- See Also:
- Constant Field Values
MODE_SIGN
public static final byte MODE_SIGN
- See Also:
- Constant Field Values
MODE_VERIFY
public static final byte MODE_VERIFY
- See Also:
- Constant Field Values
Signature
protected Signature()
getInstance
public static final Signature getInstance(byte algorithm,
boolean externalAccess)
throws CryptoException
CryptoException
init
public void init(Key key,
byte mode)
throws CryptoException
CryptoException
init
public void init(Key key,
byte mode,
byte[] array,
short offset,
short length)
throws CryptoException
CryptoException
getAlgorithm
public byte getAlgorithm()
getLength
public short getLength()
throws CryptoException
CryptoException
update
public void update(byte[] buffer,
short off,
short length)
throws CryptoException
CryptoException
sign
public short sign(byte[] inBuff,
short inOffset,
short inLength,
byte[] outBuff,
short outOffset)
throws CryptoException
CryptoException
verify
public boolean verify(byte[] inBuff,
short inOffset,
short inLength,
byte[] sigBuff,
short sigOffset,
short sigLength)
throws CryptoException
CryptoException