| 
 | Java Card v2.2.2 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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 PrivateKeyspecified during initialization and the public key data
 provided. | 
|  void | KeyPair.genKeyPair()(Re)Initializes the key objects encapsulated in this KeyPairinstance 
 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 InitializedMessageDigestobject instance of the selected algorithm. | 
| static RandomData | RandomData.getInstance(byte algorithm)Creates a RandomDatainstance of the selected algorithm. | 
| static Signature | Signature.getInstance(byte algorithm,
            boolean externalAccess)Creates a Signatureobject instance of the selected algorithm. | 
| static KeyAgreement | KeyAgreement.getInstance(byte algorithm,
            boolean externalAccess)Creates a KeyAgreementobject instance of the selected algorithm. | 
| static MessageDigest | MessageDigest.getInstance(byte algorithm,
            boolean externalAccess)Creates a MessageDigestobject instance of the selected algorithm. | 
| static Checksum | Checksum.getInstance(byte algorithm,
            boolean externalAccess)Creates a Checksumobject 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 Keydata 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 Checksumobject with the algorithm specific
 parameters. | 
|  void | SignatureMessageRecovery.init(Key theKey,
     byte theMode)Initializes the Signatureobject with the appropriateKey. | 
| abstract  void | Signature.init(Key theKey,
     byte theMode)Initializes the Signatureobject with the appropriateKey. | 
| abstract  void | Signature.init(Key theKey,
     byte theMode,
     byte[] bArray,
     short bOff,
     short bLen)Initializes the Signatureobject with the appropriateKeyand 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_PUBLICorTYPE_EC_F2M_PRIVATEin
 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_PUBLICorTYPE_EC_F2M_PRIVATEin
 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_PRIVATEorTYPE_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 MessageDigestsuperclass. | 
|  void | KoreanSEEDKey.setKey(byte[] keyData,
       short kOff)Sets the Keydata. | 
|  void | DESKey.setKey(byte[] keyData,
       short kOff)Sets the Keydata. | 
|  void | AESKey.setKey(byte[] keyData,
       short kOff)Sets the Keydata. | 
|  void | HMACKey.setKey(byte[] keyData,
       short kOff,
       short kLen)Sets the Keydata. | 
|  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 KeyPairinstance for the specified algorithm and keylength; 
 the encapsulated keys are uninitialized. | |
| KeyPair(PublicKey publicKey,
        PrivateKey privateKey)Constructs a new KeyPairobject 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 Cipherobject instance of the selected algorithm. | 
| abstract  void | Cipher.init(Key theKey,
     byte theMode)Initializes the Cipherobject with the appropriateKey. | 
| abstract  void | Cipher.init(Key theKey,
     byte theMode,
     byte[] bArray,
     short bOff,
     short bLen)Initializes the Cipherobject 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 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||