|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The RSAPrivateKey class is used to sign data using the
RSA algorithm in its modulus/exponent form. It may also be used by
the javacardx.crypto.Cipher class to encrypt/decrypt
messages.
When both the modulus and exponent of the key are set, the key is initialized and ready for use.
RSAPublicKey| Method Summary | |
short |
getExponent(byte[] buffer,
short offset)
Returns the private exponent value of the key in plain text. |
short |
getModulus(byte[] buffer,
short offset)
Returns the modulus value of the key in plain text. |
void |
setExponent(byte[] buffer,
short offset,
short length)
Sets the private exponent value of the key. |
void |
setModulus(byte[] buffer,
short offset,
short length)
Sets the modulus value of the key. |
| Methods inherited from interface javacard.security.Key |
clearKey, getSize, getType, isInitialized |
| Method Detail |
public short getModulus(byte[] buffer,
short offset)
public void setExponent(byte[] buffer,
short offset,
short length)
throws CryptoException
Note:
javacardx.crypto.KeyEncryption interface
and the Cipher object specified via
setKeyCipher() is not
null, the exponent value is decrypted
using the Cipher object.
CryptoException
public short getExponent(byte[] buffer,
short offset)
public void setModulus(byte[] buffer,
short offset,
short length)
throws CryptoException
Note:
javacardx.crypto.KeyEncryption interface
and the Cipher object specified via
setKeyCipher() is not
null, the modulus value is decrypted using
the Cipher object.
CryptoException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||