Пытаюсь запустить класс ClassicEncrypt, возникает следующая исключительная ситуация:
Classic encryption and decryption example.
29.04.2009 13:34:04 ru.CryptoPro.JCP.tools.m a
INFO: Loading JCP...
29.04.2009 13:34:04 ru.CryptoPro.JCP.tools.m a
INFO: JCP loaded.
Alica's key pair was generated
Bob's key pair was generated
Alica's certificate was generated
Alica's key and certificate were stored in container
Bob's certificate was generated
Bob's key and certificate were stored in container
Alica's public key was exported
Bob's public key was exported
Syncro for KeyAgreement was generated
Alica has receieved bob's public key
Bob has receieved alica's public key
Alica's key agreement was performed
Exception in thread "main" java.lang.UnsupportedOperationException
at javax.crypto.CipherSpi.engineGetKeySize(DashoA13*..)
at javax.crypto.Cipher.b(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at userSamples.ClassicEncrypt.main(ClassicEncrypt.java:120)
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
Лог работы CheckConf:
29.04.2009 14:08:28 ComLine.CheckConf check
INFO: Провайдер JTLS не установлен
Проверка настроек:
29.04.2009 14:08:29 ru.CryptoPro.JCP.tools.m a
INFO: Loading JCP...
29.04.2009 14:08:30 ru.CryptoPro.JCP.tools.m a
INFO: JCP loaded.
29.04.2009 14:08:30 ComLine.CheckConf check
INFO:
Провайдер JCP настроен верно
Провайдер Crypto настроен верно
Провайдер JTLS настроен неверно:
Неверное значение ssl.SocketFactory.provider в java.security
Неверное значение ssl.ServerSocketFactory.provider в java.security
Неверное значение ssl.KeyManagerFactory.algorithm в java.security
Неверное значение ssl.TrustManagerFactory.algorithm в java.security
Отредактировано пользователем 29 апреля 2009 г. 19:17:04(UTC)
| Причина: Не указана