Статус: Сотрудник
Группы: Администраторы
Зарегистрирован: 12.12.2007(UTC) Сообщений: 6,377 Откуда: КРИПТО-ПРО Сказал «Спасибо»: 32 раз Поблагодарили: 706 раз в 614 постах
|
Прочитайте предыдущее сообщение. |
|
|
|
|
Статус: Активный участник
Группы: Участники
Зарегистрирован: 29.03.2011(UTC) Сообщений: 163 Откуда: Москва Сказал «Спасибо»: 8 раз Поблагодарили: 3 раз в 3 постах
|
Скомпилировал и запустил EncryptFile и DecryptFile из SDK samples. Та же самая история.
C:\temp\Microsoft Visual Studio>EncryptFile.exe
The file 'source.txt' was opened The file 'encrypt.bin' was opened The file 'session_SV.bin' was opened The file 'session_EncryptedKey.bin' was opened The file 'session_MacKey.bin' was opened The file 'vector.bin' was opened The key container "Sender" has been acquired. The file 'Responder.cer' was opened Certificate was read from the 'Responder.cer' Public key imported from cert file Public key exported to blob The private key has been acquired. The responder public key has been imported. PRO_EXPORT agree key algorithm has been set. Original session key is created. Size of the BLOB for the sender session key determined. Contents have been written to the BLOB. Size of the IV for the session key determined. CryptGetKeyParam succeeded. The IV was written to the 'vector.bin' The session key was written to the 'session_SV.bin' The session key was written to the 'session.bin' The session key was written to the 'session.bin' Encryption succeeded. The encrypted content was written to the 'encrypt.bin' The program ran to completion without error.
C:\temp\Microsoft Visual Studio>DecryptFile.exe
The file 'encrypt.bin' was opened The file 'session_SV.bin' was opened The file 'session_EncryptedKey.bin' was opened The file 'session_MacKey.bin' was opened The file 'vector.bin' was opened The file 'destination.txt' was opened The IV was read from the 'vector.bin' The key container "Responder" has been acquired. The session key was read from the 'session_SV.bin' The session key was read from the 'session_EncryptedKey.bin' The session key was read from the 'session_MacKey.bin' The file 'Sender.cer' was opened Certificate was read from the 'Sender.cer' Public key imported from cert file Public key exported to blob The private key has been acquired. The sender public key has been imported. PRO_EXPORT agree key algorithm has been set. Error number : 0x80090005 Error description: Error during CryptImportKey session key.
|
|
|
|
Статус: Активный участник
Группы: Участники
Зарегистрирован: 29.03.2011(UTC) Сообщений: 163 Откуда: Москва Сказал «Спасибо»: 8 раз Поблагодарили: 3 раз в 3 постах
|
Видимо были кривые ключи. Сделал новые ключи и сразу все заработало с двумя ключевыми парами :(. Скорее всего заработает теперь и с эфемерной. Спасибо за помощь. P.S. В чем причина такого поведения, я не понял. Сертификаты внешне одинаковые. Генерились примерно в одно время на одной машине. С одним работает - с другим нет. Отредактировано пользователем 16 августа 2013 г. 21:26:20(UTC)
| Причина: Не указана
|
|
|
|
Быстрый переход
Вы не можете создавать новые темы в этом форуме.
Вы не можете отвечать в этом форуме.
Вы не можете удалять Ваши сообщения в этом форуме.
Вы не можете редактировать Ваши сообщения в этом форуме.
Вы не можете создавать опросы в этом форуме.
Вы не можете голосовать в этом форуме.
Important Information:
The Форум КриптоПро uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close