Java Card
v2.2.1

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
 void ECPrivateKey.setS(byte[] buffer, short offset, short length)
          Sets the value of the secret key.
 short ECPrivateKey.getS(byte[] buffer, short offset)
          Returns the value of the secret key in plaintext form.
 void ECPublicKey.setW(byte[] buffer, short offset, short length)
          Sets the point of the curve comprising the public key.
 short ECPublicKey.getW(byte[] buffer, short offset)
          Returns the point of the curve comprising the public key in plain text form.
static KeyAgreement KeyAgreement.getInstance(byte algorithm, boolean externalAccess)
          Creates a KeyAgreement object instance of the selected algorithm.
abstract  void KeyAgreement.init(PrivateKey privKey)
          Initializes the object with the given private key.
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 AESKey.setKey(byte[] keyData, short kOff)
          Sets the Key data.
 byte AESKey.getKey(byte[] keyData, short kOff)
          Returns the Key data in plain text.
 void RSAPrivateCrtKey.setP(byte[] buffer, short offset, short length)
          Sets the value of the P parameter.
 void RSAPrivateCrtKey.setQ(byte[] buffer, short offset, short length)
          Sets the value of the Q parameter.
 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 RSAPrivateCrtKey.setPQ(byte[] buffer, short offset, short length)
          Sets the value of the PQ parameter.
 void KeyPair.genKeyPair()
          (Re)Initializes the key objects encapsulated in this KeyPair instance with new key values.
 void RSAPublicKey.setModulus(byte[] buffer, short offset, short length)
          Sets the modulus value of the key.
 void RSAPublicKey.setExponent(byte[] buffer, short offset, short length)
          Sets the public exponent value of the key.
 void RSAPrivateKey.setModulus(byte[] buffer, short offset, short length)
          Sets the modulus value of the key.
 void RSAPrivateKey.setExponent(byte[] buffer, short offset, short length)
          Sets the private exponent value of the key.
static Checksum Checksum.getInstance(byte algorithm, boolean externalAccess)
          Creates a Checksum object instance of the selected algorithm.
abstract  void Checksum.init(byte[] bArray, short bOff, short bLen)
          Resets and initializes the Checksum object with the algorithm specific parameters.
static Signature Signature.getInstance(byte algorithm, boolean externalAccess)
          Creates a Signature object instance of the selected algorithm.
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  short Signature.getLength()
          Returns the byte length of the signature data.
abstract  void Signature.update(byte[] inBuff, short inOffset, short inLength)
          Accumulates a signature of the input data.
abstract  short Signature.sign(byte[] inBuff, short inOffset, short inLength, byte[] sigBuff, short sigOffset)
          Generates the signature of all/last input data.
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.
static RandomData RandomData.getInstance(byte algorithm)
          Creates a RandomData instance of the selected algorithm.
abstract  void RandomData.generateData(byte[] buffer, short offset, short length)
          Generates random data.
static MessageDigest MessageDigest.getInstance(byte algorithm, boolean externalAccess)
          Creates a MessageDigest object instance of the selected algorithm.
 void DESKey.setKey(byte[] keyData, short kOff)
          Sets the Key data.
static Key KeyBuilder.buildKey(byte keyType, short keyLength, boolean keyEncryption)
          Creates uninitialized cryptographic keys for signature and cipher algorithms.
 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.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.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 ECKey.setG(byte[] buffer, short offset, short length)
          Sets the fixed point of the curve.
 void ECKey.setR(byte[] buffer, short offset, short length)
          Sets the order of the fixed point G of the curve.
 short ECKey.getField(byte[] buffer, short offset)
          Returns the field specification parameter value of the key.
 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.getG(byte[] buffer, short offset)
          Returns the fixed point of the curve.
 short ECKey.getR(byte[] buffer, short offset)
          Returns the order of the fixed point G of the curve.
 short ECKey.getK()
          Returns the cofactor of the order of the fixed point G of the curve.
 void DSAPublicKey.setY(byte[] buffer, short offset, short length)
          Sets the value of the key.
 void DSAKey.setP(byte[] buffer, short offset, short length)
          Sets the prime parameter value of the key.
 void DSAKey.setQ(byte[] buffer, short offset, short length)
          Sets the subprime parameter value of the key.
 void DSAKey.setG(byte[] buffer, short offset, short length)
          Sets the base parameter value of the key.
 void DSAPrivateKey.setX(byte[] buffer, short offset, short length)
          Sets the value of the key.
 

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
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.doFinal(byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset)
          Generates encrypted/decrypted output from all/last input data.
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.1

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