Smart Card Solution
User Manual
- R502 Manual
JavaCard API Samples
- Algorithm
Java Card Specification
Knowledge Sharing
Smart Card Solution
User Manual
JavaCard API Samples
Java Card Specification
Knowledge Sharing
javacard.security
All Superinterfaces: Key , SecretKey
KoreanSEEDKey contains an 16-byte key for Korean Seed Algorithm operations. When the key data is set, the key is initialized and ready for use.
Since:
2.2.2
See Also:KeyBuilder , Signature , javacardx.crypto.Cipher , javacardx.crypto.KeyEncryption
Method Summary | |
---|---|
byte | getKey (byte[] keyData,short kOff) Returns the Key data in plain text. |
void | setKey (byte[] keyData,short kOff) Sets the Key data. |
Methods inherited from interface javacard.security.Key |
---|
clearKey , getSize , getType , isInitialized |
Method Detail |
---|
void setKey(byte[] keyData, short kOff) throws CryptoException , NullPointerException , ArrayIndexOutOfBoundsException
Sets the Key data. The plain text length of input key data is
The data format is big-endian and right-aligned (the least significant bit is the least significant
bit of last byte). Input key data is copied into the internal representation.
Note:
Parameters:keyData - byte array containing key initialization data
kOff - offset within keyData to start
Throws:
CryptoException - with the following reason code:
ArrayIndexOutOfBoundsException - if kOff is negative or the keyData array is too short
NullPointerException - if the keyData parameter is null
byte getKey(byte[] keyData, short kOff)
Returns the Key data in plain text. The length of output key data is 16 bytes for Korean Seed Algorithm. The data format is big-endian and right-aligned (the least significant bit is the least significant bit of last byte).
Parameters:keyData - byte array to return key data
kOff - offset within keyData to start
Returns:the byte length of the key data returned
Throws:
CryptoException - with the following reason code:
See Also:Key