CryptDeriveKey生成的会话密钥导出。 RRS feed

  • 问题

  • CryptDeriveKey函数生成的会话密钥如何导出。我使用CryptExportKey(hKey, NULL, SIMPLEBLOB, 0, keyBuf, &keyLen);导出的时候返回错误。调用GetLastError返回NTE_NO_KEY

    • 已编辑 EastYu 2015年12月21日 5:18
    2015年12月21日 2:33


  • 你好,        


    hExpKey [in]
    A handle to a cryptographic key of the destination user. The key data within the exported key BLOB is encrypted using this key. This ensures that only the destination user is able to make use of the key BLOB. Both hExpKey and hKey must come from the same CSP.

    A session key is being exported, and the hExpKey parameter does not specify a public key



    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年12月22日 6:54