Open-source aspects of GOST Cryptography
 help / color / mirror / Atom feed
* [oss-gost-crypto] Streebog fuzzing 24h
@ 2019-05-06 13:26 Vitaly Chikunov
  0 siblings, 0 replies; only message in thread
From: Vitaly Chikunov @ 2019-05-06 13:26 UTC (permalink / raw)
  To: Open-source aspects of GOST Cryptography


Я прогнал fuzz testing для реализации Стрибога Дегтярева (которая
используется и в ядре и в gost-engine) в течении суток, на Clang
(8.0.0.) libFuzzer и на AFL (2.36b) Проблем не выявлено.

Код фуззера ниже.

  #include <stdint.h>
  #include <stddef.h>

  #include "gost3411-2012-config.h"
  #include "gost3411-2012-core.h"

  int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
      GOST34112012Context ctx;
      unsigned char digest[32];

      GOST34112012Init(&ctx, 256);
      GOST34112012Update(&ctx, data, size);
      GOST34112012Final(&ctx, digest);

      return 0;

Fuzzing ничего не гарантирует, но считается хорошей практикой.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-06 13:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-06 13:26 [oss-gost-crypto] Streebog fuzzing 24h Vitaly Chikunov

Open-source aspects of GOST Cryptography

This inbox may be cloned and mirrored by anyone:

	git clone --mirror oss-gost-crypto/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 oss-gost-crypto oss-gost-crypto/ \
	public-inbox-index oss-gost-crypto

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone