Статус: Новичок
Группы: Участники
Дата регистрации:: 23.06.2015(UTC) Сообщений: 8 Сказал(а) «Спасибо»: 2 раз
|
Добрый день! Я столкнулся с аналогичной проблемой: приложение падает при при попытке вычисления электронной подписи. Версия дистрибутива: 4.0.38150 Код, вызывающий ошибку: Код:Signature signature = Signature.getInstance(JCP.GOST_EL_SIGN_NAME, JCSP.PROVIDER_NAME);
signature.initSign(getPrivateKey()); // метод getPrivateKey() корректно извлекает закрытый ключ из харнилища "Rutoken lite SD 1"
signature.update(ticket.getBody()); // ticket.getBody() возвращает рандомный массив byte[]
signature.sign(); // на этом месте происходит падение приложения
Содержание логов: по тэгу cprocspКод:06-23 10:42:40.437 5273-5957/org.a_soft.screenlocker E/cprocsp﹕ 10:42:40.451212 support_an_fopen:87 p:5273 t:0x0x400589e1 support_an_fopen("/data/data/org.a_soft.screenlocker/cprocsp/users/10196.10196/policies.ini", "rb") = 0x0x0 fail No such file or directory(2)
06-23 10:42:40.928 5273-5957/org.a_soft.screenlocker E/cprocsp﹕ 10:42:40.937066 support_an_fopen:87 p:5273 t:0x0x400589e1 support_an_fopen("/data/data/org.a_soft.screenlocker/cprocsp/users/10196.10196/policies.ini", "rb") = 0x0x0 fail No such file or directory(2)
06-23 10:42:42.439 7897-7897/? E/cprocsp﹕ 10:42:42.454661 support_an_fopen:87 p:7897 t:0x0x400589e1 support_an_fopen("/data/data/org.a_soft.screenlocker/cprocsp/users/10196.10196/policies.ini", "rb") = 0x0x0 fail No such file or directory(2)
06-23 10:42:42.439 7897-7897/? E/cprocsp﹕ 10:42:42.454814 support_an_fopen:87 p:7897 t:0x0x400589e1 support_an_fopen("/data/data/org.a_soft.screenlocker/cprocsp/users/10196.10196/policies.ini", "rb") = 0x0x0 fail No such file or directory(2)
06-23 10:42:42.529 7897-7897/? E/cprocsp﹕ 10:42:42.542041 support_an_fopen:87 p:7897 t:0x0x400589e1 support_an_fopen("/data/data/org.a_soft.screenlocker/cprocsp/users/global.ini", "rb") = 0x0x0 fail No such file or directory(2)
по тэгу JCPКод:
06-23 10:37:02.917 4469-4469/? I/JCP﹕ ru.CryptoPro.JCSP.JCSP.<init> :: Loading JCSP 2.0 38150
06-23 10:37:02.927 4469-4469/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2001_class_default = Crypto-Pro GOST R 34.10-2001 KC1 CSP
06-23 10:37:02.927 4469-4469/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2012_256_class_default = Crypto-Pro GOST R 34.10-2012 KC1 CSP
06-23 10:37:02.927 4469-4469/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2012_512_class_default = Crypto-Pro GOST R 34.10-2012 KC1 Strong CSP
06-23 10:37:03.127 4469-4469/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/KeyStore :: JCSPStoreConfig_class_Store = ru.CryptoPro.JCSP.KeyStore.JCSPStore001,ru.CryptoPro.JCSP.KeyStore.JCSPStore002,ru.CryptoPro.JCSP.KeyStore.JCSPStore003,ru.CryptoPro.JCSP.KeyStore.JCSPStore004,ru.CryptoPro.JCSP.KeyStore.JCSPStore005,ru.CryptoPro.JCSP.KeyStore.JCSPStore006,ru.CryptoPro.JCSP.KeyStore.JCSPStore007
06-23 10:37:03.137 4469-4469/? I/JCP﹕ ru.CryptoPro.JCSP.JCSP.<init> :: JCSP loaded.
06-23 10:37:42.579 4469-4815/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCP/tools :: SelfTester_external_classNames = null
06-23 10:37:42.599 4469-4815/? I/JCP﹕ ru.CryptoPro.JCSP.Starter.check :: Loading JCSP 2.0 38150
06-23 10:37:42.720 4469-4815/? I/JCP﹕ ru.CryptoPro.JCSP.Starter.check :: JCSP loaded.
06-23 10:37:42.780 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: DigestParamsSpec_class_default = null
06-23 10:37:42.780 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: DigestParamsSpec_2012_256_class_default = null
06-23 10:37:42.780 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: DigestParamsSpec_2012_512_class_default = null
06-23 10:37:42.790 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_class_default = null
06-23 10:37:42.790 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_class_defaultDH = null
06-23 10:37:42.790 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_2012_256_class_default = null
06-23 10:37:42.790 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_2012_256_dh_class_defaultDH = null
06-23 10:37:42.790 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_2012_512_class_default = null
06-23 10:37:42.800 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_2012_512_dh_class_defaultDH = null
06-23 10:37:43.631 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpecDH_class_defaultDH = null
06-23 10:37:43.631 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpecDH_2012_256_class_defaultDH = null
06-23 10:37:43.631 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpec_class_defaultECC = null
06-23 10:37:43.631 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpec_2012_256_class_defaultECC = null
06-23 10:37:43.641 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: CryptParamsSpec_class_default = null
06-23 10:37:43.641 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: CryptParamsSpec_2012_256_class_default = null
06-23 10:37:43.641 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: CryptParamsSpec_2012_512_class_default = null
06-23 10:37:43.741 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getInt :: System Preference Node: /ru/CryptoPro/JCP/Key :: PublicKeySpec_class_default = -1
06-23 10:37:44.111 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getInt :: System Preference Node: /ru/CryptoPro/JCP/tools/CPVerify :: DigestStoreDefaultCPVerify_class_WhatRepositoryKeyName = -1
06-23 10:37:44.111 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCP/tools :: UnixMutex_class_pathToLocks = /data/data/org.a_soft.screenlocker/cprocsp/tmp
06-23 10:37:44.111 4469-4831/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getInt :: System Preference Node: /ru/CryptoPro/JCP/tools/CPVerify :: DigestStoreDefaultCPVerify_class_WhatRepositoryKeyName = -1
06-23 10:37:49.427 4469-4815/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpecDH2012_512_class_defaultECC2012 = null
06-23 10:37:49.427 4469-4815/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpec2012_512_class_defaultECC2012 = null
06-23 10:37:58.486 5033-5033/? I/JCP﹕ ru.CryptoPro.JCSP.JCSP.<init> :: Loading JCSP 2.0 38150
06-23 10:37:58.496 5033-5033/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2001_class_default = Crypto-Pro GOST R 34.10-2001 KC1 CSP
06-23 10:37:58.496 5033-5033/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2012_256_class_default = Crypto-Pro GOST R 34.10-2012 KC1 CSP
06-23 10:37:58.496 5033-5033/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2012_512_class_default = Crypto-Pro GOST R 34.10-2012 KC1 Strong CSP
06-23 10:37:58.707 5033-5033/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/KeyStore :: JCSPStoreConfig_class_Store = ru.CryptoPro.JCSP.KeyStore.JCSPStore001,ru.CryptoPro.JCSP.KeyStore.JCSPStore002,ru.CryptoPro.JCSP.KeyStore.JCSPStore003,ru.CryptoPro.JCSP.KeyStore.JCSPStore004,ru.CryptoPro.JCSP.KeyStore.JCSPStore005,ru.CryptoPro.JCSP.KeyStore.JCSPStore006,ru.CryptoPro.JCSP.KeyStore.JCSPStore007
06-23 10:37:58.717 5033-5033/? I/JCP﹕ ru.CryptoPro.JCSP.JCSP.<init> :: JCSP loaded.
06-23 10:38:14.784 5273-5273/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCSP.JCSP.<init> :: Loading JCSP 2.0 38150
06-23 10:38:14.814 5273-5273/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2001_class_default = Crypto-Pro GOST R 34.10-2001 KC1 CSP
06-23 10:38:14.824 5273-5273/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2012_256_class_default = Crypto-Pro GOST R 34.10-2012 KC1 CSP
06-23 10:38:14.824 5273-5273/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2012_512_class_default = Crypto-Pro GOST R 34.10-2012 KC1 Strong CSP
06-23 10:38:15.164 5273-5273/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/KeyStore :: JCSPStoreConfig_class_Store = ru.CryptoPro.JCSP.KeyStore.JCSPStore001,ru.CryptoPro.JCSP.KeyStore.JCSPStore002,ru.CryptoPro.JCSP.KeyStore.JCSPStore003,ru.CryptoPro.JCSP.KeyStore.JCSPStore004,ru.CryptoPro.JCSP.KeyStore.JCSPStore005,ru.CryptoPro.JCSP.KeyStore.JCSPStore006,ru.CryptoPro.JCSP.KeyStore.JCSPStore007
[h]06-23 10:38:15.214 5273-5273/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCSP.JCSP.<init> :: JCSP loaded.
06-23 10:38:37.228 5273-5957/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCP/tools :: SelfTester_external_classNames = null
06-23 10:38:37.408 5273-5957/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCSP.Starter.check :: Loading JCSP 2.0 38150
06-23 10:38:42.403 5273-5957/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCSP.Starter.check :: JCSP loaded.
06-23 10:38:42.423 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: DigestParamsSpec_class_default = null
06-23 10:38:42.433 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: DigestParamsSpec_2012_256_class_default = null
06-23 10:38:42.433 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: DigestParamsSpec_2012_512_class_default = null
06-23 10:38:42.493 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_class_default = null
06-23 10:38:42.493 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_class_defaultDH = null
06-23 10:38:42.493 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_2012_256_class_default = null
06-23 10:38:42.503 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_2012_256_dh_class_defaultDH = null
06-23 10:38:42.503 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_2012_512_class_default = null
06-23 10:38:42.503 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: AlgIdSpec_2012_512_dh_class_defaultDH = null
06-23 10:39:22.957 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpecDH_class_defaultDH = null
06-23 10:39:22.957 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpecDH_2012_256_class_defaultDH = null
06-23 10:39:22.957 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpec_class_defaultECC = null
06-23 10:39:22.967 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpec_2012_256_class_defaultECC = null
06-23 10:39:23.097 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: CryptParamsSpec_class_default = null
06-23 10:39:23.107 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: CryptParamsSpec_2012_256_class_default = null
06-23 10:39:23.117 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: CryptParamsSpec_2012_512_class_default = null
06-23 10:39:37.922 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getInt :: System Preference Node: /ru/CryptoPro/JCP/Key :: PublicKeySpec_class_default = -1
06-23 10:41:01.021 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getInt :: System Preference Node: /ru/CryptoPro/JCP/tools/CPVerify :: DigestStoreDefaultCPVerify_class_WhatRepositoryKeyName = -1
06-23 10:41:01.031 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCP/tools :: UnixMutex_class_pathToLocks = /data/data/org.a_soft.screenlocker/cprocsp/tmp
06-23 10:41:01.071 5273-6047/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getInt :: System Preference Node: /ru/CryptoPro/JCP/tools/CPVerify :: DigestStoreDefaultCPVerify_class_WhatRepositoryKeyName = -1
06-23 10:42:20.726 5273-5957/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpecDH2012_512_class_defaultECC2012 = null
06-23 10:42:20.736 5273-5957/org.a_soft.screenlocker I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.getOID :: System Preference Node: /ru/CryptoPro/JCP/params :: EllipticParamsSpec2012_512_class_defaultECC2012 = null
06-23 10:42:42.419 7897-7897/? I/JCP﹕ ru.CryptoPro.JCSP.JCSP.<init> :: Loading JCSP 2.0 38150
06-23 10:42:42.429 7897-7897/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2001_class_default = Crypto-Pro GOST R 34.10-2001 KC1 CSP
06-23 10:42:42.429 7897-7897/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2012_256_class_default = Crypto-Pro GOST R 34.10-2012 KC1 CSP
06-23 10:42:42.429 7897-7897/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/params :: DefaultCSPProvider_2012_512_class_default = Crypto-Pro GOST R 34.10-2012 KC1 Strong CSP
06-23 10:42:42.630 7897-7897/? I/JCP﹕ ru.CryptoPro.JCP.pref.JCPPref.get :: System Preference Node: /ru/CryptoPro/JCSP/KeyStore :: JCSPStoreConfig_class_Store = ru.CryptoPro.JCSP.KeyStore.JCSPStore001,ru.CryptoPro.JCSP.KeyStore.JCSPStore002,ru.CryptoPro.JCSP.KeyStore.JCSPStore003,ru.CryptoPro.JCSP.KeyStore.JCSPStore004,ru.CryptoPro.JCSP.KeyStore.JCSPStore005,ru.CryptoPro.JCSP.KeyStore.JCSPStore006,ru.CryptoPro.JCSP.KeyStore.JCSPStore007
06-23 10:42:42.640 7897-7897/? I/JCP﹕ ru.CryptoPro.JCSP.JCSP.<init> :: JCSP loaded.
Кроме того, в общих логах приложения есть сообщение Код:06-23 10:42:41.108 5273-5957/org.a_soft.screenlocker A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000014 (code=1), thread 5957 (AsyncTask #5)
и кусочек дампа. Исключений, ошибок и, сооветственно, стэктрейсов в логах нет.
|