Class CK_ECDSA_ECIES_PARAMS


  • public class CK_ECDSA_ECIES_PARAMS
    extends Object
    The class CK_ECDSA_ECIES_PARAMS provides the parameters to the CKM_ECDSA_ECIES mechanism.

    PKCS#11 structure:

     typedef struct CK_ECDSA_ECIES_PARAMS {// used by CKM_ECDSA_ECIES
       unsigned long int   hashAlg;          // hash algorithm used e.g. CKM_SHA_1
       unsigned long int   cryptAlg;         // crypt algorithm used for crypt/decrypt e.g. CKM_AES_ECB
       unsigned long int   cryptOpt;         // key size of crypt algo (0 for CKM_ECDSA_ECIES_XOR)
       unsigned long int   macAlg;           // mac algorithm used e.g. CKM_SHA_1_HMAC
       unsigned long int   macOpt;           // key size of mac algo (always 0)
       unsigned char      *pSharedSecret1;   // optional shared secret 1 included in hash calculation
       unsigned long int   ulSharedSecret1;  // length of shared secret 1
       unsigned char      *pSharedSecret2;   // optional shared secret 2 included in mac calculation
       unsigned long int   ulSharedSecret2;  // length of shared secret 2
     }
     
    Author:
    Otto Touzil (SIC)
    • Field Detail

      • hashAlg

        public long hashAlg
      • cryptAlg

        public long cryptAlg
      • cryptOpt

        public long cryptOpt
      • macAlg

        public long macAlg
      • macOpt

        public long macOpt
      • pSharedSecret1

        public byte[] pSharedSecret1
        optional shared secret 1 included in hash calculation.

        PKCS#11:

          unsigned char     *pSharedSecret1;   // optional shared secret 1 included in hash calculation
          unsigned long int  ulSharetSecret1;  // length of shared secret 1
         
      • pSharedSecret2

        public byte[] pSharedSecret2
        optional shared secret 2 included in hash calculation.

        PKCS#11:

          unsigned char     *pSharedSecret2;   // optional shared secret 1 included in hash calculation
          unsigned long int  ulSharetSecret2;  // length of shared secret 1
         
    • Constructor Detail

      • CK_ECDSA_ECIES_PARAMS

        public CK_ECDSA_ECIES_PARAMS()