[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openssl-gost] [gost-engine/engine] 703220: test_vko: Add VKO tests from R 50.1.113-2016 (#262)



  Branch: refs/heads/master
  Home:   https://github.com/gost-engine/engine
  Commit: 703220f3c5bf05163626edc8713e91c608a73f8e
      https://github.com/gost-engine/engine/commit/703220f3c5bf05163626edc8713e91c608a73f8e
  Author: Vitalio <vt@altlinux.org>
  Date:   2020-07-09 (Thu, 09 Jul 2020)

  Changed paths:
    M CMakeLists.txt
    M gost_ec_keyx.c
    M gost_lcl.h
    M gost_pmeth.c
    A test_derive.c

  Log Message:
  -----------
  test_vko: Add VKO tests from R 50.1.113-2016 (#262)

* test_derive: Add VKO tests from R 50.1.113-2016

* Allow to use raw VKO in EVP_PKEY_derive

Suitable for tests. Use EVP_PKEY_CTRL_SET_VKO ctrl with appropriate
digest nid to enable VKO mode.

* Add string option 'vko' for EVP_PKEY_CTRL_SET_VKO

Format: vko:<bit length>
Such as:
  vko:256 for VKO_256
  vko:512 for VKO_512
  vko:0   disable strict VKO mode, switch to other derive methods.

* test_derive: Test all modes of EVP_PKEY_derive

Test all VKOs and KEGs to work and produce same keys for both parties.