Home GnuPG

Add GOST R 34.11-94 variant using id-GostR3411-94-CryptoProParamSet
25d6af77e233Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add GOST R 34.11-94 variant using id-GostR3411-94-CryptoProParamSet

* src/gcrypt.h.in (GCRY_MD_GOSTR3411_CP): New.
* src/cipher.h (_gcry_digest_spec_gost3411_cp): New.
* cipher/gost28147.c (_gcry_gost_enc_one): Differentiate between
  CryptoPro and Test S-Boxes.
* cipher/gostr3411-94.c (_gcry_digest_spec_gost3411_cp,
  gost3411_cp_init): New.
* cipher/md.c (md_open): GCRY_MD_GOSTR3411_CP also uses B=32.

RFC4357 defines only two S-Boxes that should be used together with
GOST R 34.11-94 - a testing one (from standard itself, for testing only)
and CryptoPro one. Instead of adding a separate gcry_md_ctrl() function
just to switch s-boxes, add a separate MD algorithm using CryptoPro
S-box.

  • Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

Details

Provenance
lumagAuthored on Jun 6 2014, 8:48 PM
wernerCommitted on Jun 28 2014, 10:44 AM
Parents
rC5ee35a04362c: gost28147: support GCRYCTL_SET_SBOX
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC25d6af77e233: Add GOST R 34.11-94 variant using id-GostR3411-94-CryptoProParamSet (authored by Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>).Jun 28 2014, 10:44 AM