locked
Getting the Session Key genereted using CryptDeriveKey RRS feed

  • Question

  • bOk = CryptCreateHash(m_hProv, CALG_SHA1, 0, 0, &hHash);
    ...
    bOk = CryptHashData(hHash, vlKey, szKey, 0);
    ...
    bOk = CryptDeriveKey(m_hProv, CALG_3DES, hHash, CRYPT_EXPORTABLE, &hKey);
    ...

    I am translating this C code to Java because I need to decrypt (in Java) the data encrypted using the CryptoAPI but I am stuck on CryptDeriveKey api function.

    I need to compare the Session Key genereted using CryptDeriveKey api with the key genereted in Java.

    Can anyone help me?
    Friday, April 15, 2005 7:14 PM