Java Card
v2.2.2

Uses of Class
javacard.security.CryptoException

Packages that use CryptoException
javacard.security Provides classes and interfaces that contain publicly-available functionality for implementing a security and cryptography framework on the Java Card platform. 
javacardx.crypto Extension package that contains functionality, which may be subject to export controls, for implementing a security and cryptography framework on the Java Card platform. 
 

Uses of CryptoException in javacard.security
 

Methods in javacard.security that throw CryptoException
 short SignatureMessageRecovery.beginVerify(byte[] sigAndRecDataBuff, short buffOffset, short sigLength)
          This method begins the verification sequence by recovering the message encoded within the signature itself and initializing the internal hash function.
static Key KeyBuilder.buildKey(byte keyType, short keyLength, boolean keyEncryption)
          Creates uninitialized cryptographic keys for signature and cipher algorithms.
abstract  short MessageDigest.doFinal(byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset)
          Generates a hash of all/last input data.
abstract  void RandomData.generateData(byte[] buffer, short offset, short length)
          Generates random data.
abstract  short KeyAgreement.generateSecret(byte[] publicData, short publicOffset, short publicLength, byte[] secret, short secretOffset)
          Generates the secret data as per the requested algorithm using the PrivateKey specified during initialization and the public key data provided.
 void KeyPair.genKeyPair()
          (Re)Initializes the key objects encapsulated in this KeyPair instance with new key values.
 short ECKey.getA(byte[] buffer, short offset)
          Returns the first coefficient of the curve of the key.
 short ECKey.getB(byte[] buffer, short offset)
          Returns the second coefficient of the curve of the key.
 short ECKey.getField(byte[] buffer, short offset)
          Returns the field specification parameter value of the key.
 short ECKey.getG(byte[] buffer, short offset)
          Returns the fixed point of the curve.
static InitializedMessageDigest MessageDigest.getInitializedMessageDigestInstance(byte algorithm, boolean externalAccess)
          Creates a InitializedMessageDigest object instance of the selected algorithm.
static RandomData RandomData.getInstance(byte algorithm)
          Creates a RandomData instance of the selected algorithm.
static Signature Signature.getInstance(byte algorithm, boolean externalAccess)
          Creates a Signature object instance of the selected algorithm.
static KeyAgreement KeyAgreement.getInstance(byte algorithm, boolean externalAccess)
          Creates a KeyAgreement object instance of the selected algorithm.
static MessageDigest MessageDigest.getInstance(byte algorithm, boolean externalAccess)
          Creates a MessageDigest object instance of the selected algorithm.
static Checksum Checksum.getInstance(byte algorithm, boolean externalAccess)
          Creates a Checksum object instance of the selected algorithm.
 short ECKey.getK()
          Returns the cofactor of the order of the fixed point G of the curve.
 byte AESKey.getKey(byte[] keyData, short kOff)
          Returns the Key data in plain text.
 short SignatureMessageRecovery.getLength()
          Returns the byte length of the signature data.
abstract  short Signature.getLength()
          Returns the byte length of the signature data.
 short ECKey.getR(byte[] buffer, short offset)
          Returns the order of the fixed point G of the curve.
 short ECPrivateKey.getS(byte[] buffer, short offset)
          Returns the value of the secret key in plaintext form.
 short ECPublicKey.getW(byte[] buffer, short offset)
          Returns the point of the curve comprising the public key in plain text form.
abstract  void Checksum.init(byte[] bArray, short bOff, short bLen)
          Resets and initializes the Checksum object with the algorithm specific parameters.
 void SignatureMessageRecovery.init(Key theKey, byte theMode)
          Initializes the Signature object with the appropriate Key.
abstract  void Signature.init(Key theKey, byte theMode)
          Initializes the Signature object with the appropriate Key.
abstract  void Signature.init(Key theKey, byte theMode, byte[] bArray, short bOff, short bLen)
          Initializes the Signature object with the appropriate Key and algorithm specific parameters.
abstract  void KeyAgreement.init(PrivateKey privKey)
          Initializes the object with the given private key.
 void ECKey.setA(byte[] buffer, short offset, short length)
          Sets the first coefficient of the curve of the key.
 void ECKey.setB(byte[] buffer, short offset, short length)
          Sets the second coefficient of the curve of the key.
 void RSAPrivateCrtKey.setDP1(byte[] buffer, short offset, short length)
          Sets the value of the DP1 parameter.
 void RSAPrivateCrtKey.setDQ1(byte[] buffer, short offset, short length)
          Sets the value of the DQ1 parameter.
 void RSAPublicKey.setExponent(byte[] buffer, short offset, short length)
          Sets the public exponent value of the key.
 void RSAPrivateKey.setExponent(byte[] buffer, short offset, short length)
          Sets the private exponent value of the key.
 void ECKey.setFieldF2M(short e)
          Sets the field specification parameter value for keys of type TYPE_EC_F2M_PUBLIC or TYPE_EC_F2M_PRIVATE in the case where the polynomial is a trinomial, of the form x^n + x^e + 1 (where n is the bit length of the key).
 void ECKey.setFieldF2M(short e1, short e2, short e3)
          Sets the field specification parameter value for keys of type TYPE_EC_F2M_PUBLIC or TYPE_EC_F2M_PRIVATE in the case where the polynomial is a pentanomial, of the form x^n + x^e1 + x^e2 + x^e3 + 1 (where n is the bit length of the key).
 void ECKey.setFieldFP(byte[] buffer, short offset, short length)
          Sets the field specification parameter value for keys of type TYPE_EC_FP_PRIVATE or TYPE_EC_FP_PUBLIC.
 void ECKey.setG(byte[] buffer, short offset, short length)
          Sets the fixed point of the curve.
 void DSAKey.setG(byte[] buffer, short offset, short length)
          Sets the base parameter value of the key.
abstract  void InitializedMessageDigest.setInitialDigest(byte[] initialDigestBuf, short initialDigestOffset, short initialDigestLength, byte[] digestedMsgLenBuf, short digestedMsgLenOffset, short digestedMsgLenLength)
          This method initializes the starting hash value in place of the default value used by the MessageDigest superclass.
 void KoreanSEEDKey.setKey(byte[] keyData, short kOff)
          Sets the Key data.
 void DESKey.setKey(byte[] keyData, short kOff)
          Sets the Key data.
 void AESKey.setKey(byte[] keyData, short kOff)
          Sets the Key data.
 void HMACKey.setKey(byte[] keyData, short kOff, short kLen)
          Sets the Key data.
 void RSAPublicKey.setModulus(byte[] buffer, short offset, short length)
          Sets the modulus value of the key.
 void RSAPrivateKey.setModulus(byte[] buffer, short offset, short length)
          Sets the modulus value of the key.
 void RSAPrivateCrtKey.setP(byte[] buffer, short offset, short length)
          Sets the value of the P parameter.
 void DSAKey.setP(byte[] buffer, short offset, short length)
          Sets the prime parameter value of the key.
 void RSAPrivateCrtKey.setPQ(byte[] buffer, short offset, short length)
          Sets the value of the PQ parameter.
 void RSAPrivateCrtKey.setQ(byte[] buffer, short offset, short length)
          Sets the value of the Q parameter.
 void DSAKey.setQ(byte[] buffer, short offset, short length)
          Sets the subprime parameter value of the key.
 void ECKey.setR(byte[] buffer, short offset, short length)
          Sets the order of the fixed point G of the curve.
 void ECPrivateKey.setS(byte[] buffer, short offset, short length)
          Sets the value of the secret key.
 void ECPublicKey.setW(byte[] buffer, short offset, short length)
          Sets the point of the curve comprising the public key.
 void DSAPrivateKey.setX(byte[] buffer, short offset, short length)
          Sets the value of the key.
 void DSAPublicKey.setY(byte[] buffer, short offset, short length)
          Sets the value of the key.
abstract  short Signature.sign(byte[] inBuff, short inOffset, short inLength, byte[] sigBuff, short sigOffset)
          Generates the signature of all/last input data.
 short SignatureMessageRecovery.sign(byte[] inBuff, short inOffset, short inLength, byte[] sigBuff, short sigOffset, short[] recMsgLen, short recMsgLenOffset)
          Generates the signature of all/last input data.
 void SignatureMessageRecovery.update(byte[] inBuff, short inOffset, short inLength)
          Accumulates a signature of the input data.
abstract  void Signature.update(byte[] inBuff, short inOffset, short inLength)
          Accumulates a signature of the input data.
abstract  void MessageDigest.update(byte[] inBuff, short inOffset, short inLength)
          Accumulates a hash of the input data.
 boolean SignatureMessageRecovery.verify(byte[] inBuff, short inOffset, short inLength)
          Verifies the signature of all/last input data against the passed in signature.
abstract  boolean Signature.verify(byte[] inBuff, short inOffset, short inLength, byte[] sigBuff, short sigOffset, short sigLength)
          Verifies the signature of all/last input data against the passed in signature.
 

Constructors in javacard.security that throw CryptoException
KeyPair(byte algorithm, short keyLength)
          Constructs a KeyPair instance for the specified algorithm and keylength; the encapsulated keys are uninitialized.
KeyPair(PublicKey publicKey, PrivateKey privateKey)
          Constructs a new KeyPair object containing the specified public key and private key.
 

Uses of CryptoException in javacardx.crypto
 

Methods in javacardx.crypto that throw CryptoException
abstract  short Cipher.doFinal(byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset)
          Generates encrypted/decrypted output from all/last input data.
static Cipher Cipher.getInstance(byte algorithm, boolean externalAccess)
          Creates a Cipher object instance of the selected algorithm.
abstract  void Cipher.init(Key theKey, byte theMode)
          Initializes the Cipher object with the appropriate Key.
abstract  void Cipher.init(Key theKey, byte theMode, byte[] bArray, short bOff, short bLen)
          Initializes the Cipher object with the appropriate Key and algorithm specific parameters.
abstract  short Cipher.update(byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset)
          Generates encrypted/decrypted output from input data.
 


Java Card
v2.2.2

Copyright © 1993-2005 Sun Microsystems, Inc. 4150 Network Circle,
Santa Clara, CA, 95054, U.S.A. All Rights Reserved.