Skip to main content

Первоначальная настройка окружения

Linux

  1. Установить OpenSSL версии не ниже 1.0.

  2. Для поддержки OpenSSL ГОСТ Р 34.11-94, необходимо внести изменения в openssl.cnf:

    openssl_conf = openssl_def
    
    <...оставшееся содержимое файла...>
    
    [openssl_def]
    engines = engine_section
    
    [engine_section]
    gost = gost_section
    
    [gost_section]
    soft_load=1
    default_algorithms = ALL

Теперь можно вызвать алгоритм ГОСТ Р 34.11-94 из консоли следующим образом: openssl dgst -md_gost94 filename

Windows

  1. Установить Microsoft Visual C++ Redistributable: http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF

  2. Установить OpenSSL версии не ниже 1.0: http://slproweb.com/download/Win32OpenSSL-1_0_1c.exe

  3. Для поддержки OpenSSL алгоритма шифрования ГОСТ Р 34.11-94, необходимо внести изменения в файл конфига OpenSSL (обычно в директории с OpenSSL). Почти все совпадает со значениями из секции выше, кроме секции gost_section::

    [gost_section]
    engine_id = gost
    dynamic_path = ./gost.dll
    default_algorithms = ALL

Добавить в переменные окружения путь к конфигу OpenSSL:

OPENSSL_CONF=c:\\OpenSSL-Win32\\bin\\openssl.cfg

Благодарности

Огромное спасибо за помощь в отладке:

Особая благодарность:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m3-libsmev-0.1.6.tar.gz (17.3 kB view details)

Uploaded Source

File details

Details for the file m3-libsmev-0.1.6.tar.gz.

File metadata

  • Download URL: m3-libsmev-0.1.6.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for m3-libsmev-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d3b2b7745535d81d7e36b6799b03c4649035b3a3fb2661f54cfcd6cd0d1a298c
MD5 e81665d996660f395cb8d15e4ca02a48
BLAKE2b-256 be934ece6d09e9301b23773cb3b85972d6c99ff283d552f1d172b4e430121b9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page