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.5.tar.gz (17.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for m3-libsmev-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0d8784008a0f7234fef0ada5efdbd6e2033515024fa7d2a97d55699c825d43b3
MD5 8c4c9bd1e2fcb38109345510ec9cda3e
BLAKE2b-256 85618c0d44419b269c1f07182ab8376c0cb7fe36d0386c96f2df729a56761c72

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