public interface DSAPublicKey extends PublicKey, DSAKey
DSAPublicKey
interface is used to verify signatures on
signed data using the DSA algorithm. An implementation of
DSAPublicKey
interface must also implement the
DSAKey
interface methods.
When all four components of the key (Y,P,Q,G) are set, the key is initialized and ready for use.
Modifier and Type | Method and Description |
---|---|
short |
getY(byte[] buffer,
short offset)
Returns the value of the key in plain text.
|
void |
setY(byte[] buffer,
short offset,
short length)
Sets the value of the key.
|
clearKey, getSize, getType, isInitialized
void setY(byte[] buffer, short offset, short length) throws CryptoException
Note:
javacardx.crypto.KeyEncryption
interface and the Cipher
object specified via setKeyCipher()
is not null
, the key value is decrypted using the Cipher
object.
buffer
- the input bufferoffset
- the offset into the input buffer at which the key value beginslength
- the length of the key valueCryptoException
- with the following reason code:
CryptoException.ILLEGAL_VALUE
if the
input key data length is inconsistent with the
implementation or if input data decryption is required and
fails.
short getY(byte[] buffer, short offset)
buffer
- the output bufferoffset
- the offset into the input buffer at which the key value startsCryptoException
- with the following reason code:
CryptoException.UNINITIALIZED_KEY
if
the value of the key has not been successfully initialized
since the time the initialized state of the key was set to
false.
Key
Copyright © 1998, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms