|
Java Card v2.2.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KoreanSEEDKey
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.
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
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:
javacardx.crypto.KeyEncryption
interface and the Cipher object specified via setKeyCipher()
is not null, keyData is decrypted using the Cipher object.
keyData - byte array containing key initialization datakOff - offset within keyData to start
CryptoException - with the following reason code:CryptoException.ILLEGAL_VALUE if input data decryption is required and fails.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)
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).
keyData - byte array to return key datakOff - offset within keyData to start
CryptoException - with the following reason code:CryptoException.UNINITIALIZED_KEY if the key data has not been
successfully initialized since the
time the initialized state of the key was set to false.
Key
|
Java Card v2.2.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||