| ||||
| ||||
При попытке работы с тестовой версией Крипто Про: csptest -sfsign -in src_mes.txt -out detached_sign.txt -my basil_sign -sign -detached ВОЗВРАЩАЕТ: CSP (Type:71) v3.0.3293 KC1 Release OS:Windows CPU:IA32 FastCode:READY,ENABLED. CSP (Type:75) v3.0.3293 KC1 Release OS:Windows CPU:IA32 FastCode:READY,ENABLED. #0: basil_sign, RU Valid from 24.05.2006 to 24.05.2007 Source message length: 141 Calculated signature (or signed message) length: 394 Signature was done. Signature (or signed message) length: 378 Output file (detached_sign.txt) has been saved Total: SYS: 0.141 sec USR: 0.250 sec UTC: 6.031 sec [ErrorCode: 0x00000000] ПРОВЕРКА csptest -sfsign -in src_mes.txt -my basil_sign -verify -signature detached_sign.txt ВОЗВРАЩАЕТ: CSP (Type:71) v3.0.3293 KC1 Release OS:Windows CPU:IA32 FastCode:READY,ENABLED. CSP (Type:75) v3.0.3293 KC1 Release OS:Windows CPU:IA32 FastCode:READY,ENABLED. #0: basil_sign, RU Valid from 24.05.2006 to 24.05.2007 An error occurred in running the program. .\signtsf.c:605:Signature was NOT verified Error number 8009310b (-2146881269). Встречено неверное значение тега ASN1. Total: SYS: 0.063 sec USR: 0.078 sec UTC: 0.140 sec [ErrorCode: 0x8009310b] Как такое может быть, ведь обе операции осуществляюстся поставляемыми средствами? | ||||
Ответы: | ||||
| ||||
Вы при подписи -detached указываете а при проверке - нет. | ||||