[openssl/openssl] 8349c0: Lift BLAKE2B provider definition into a macro

наб noreply at github.com
Wed Nov 8 08:46:11 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 8349c02e86310d0263b97a26fefd24ab83571ae8
      https://github.com/openssl/openssl/commit/8349c02e86310d0263b97a26fefd24ab83571ae8
  Author: наб <nabijaczleweli at nabijaczleweli.xyz>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M providers/implementations/digests/blake2_prov.c
    M providers/implementations/digests/blake2b_prov.c

  Log Message:
  -----------
  Lift BLAKE2B provider definition into a macro

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22444)


  Commit: 6d1e730a1ea2c64bdffa88c6b3bee4c3f5bed602
      https://github.com/openssl/openssl/commit/6d1e730a1ea2c64bdffa88c6b3bee4c3f5bed602
  Author: наб <nabijaczleweli at nabijaczleweli.xyz>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M providers/implementations/digests/blake2_prov.c
    M providers/implementations/include/prov/blake2.h
    M test/recipes/30-test_evp_data/evpmd_blake.txt

  Log Message:
  -----------
  Implement BLAKE2s with the same macro as BLAKE2b

This avoids code duplication and provides variable-size support
for BLAKE2s like 786b9a8

Test data obtained with libb2 with the following programs:

	==> b2.c <==
	#include <blake2.h>
	#include <unistd.h>

	int main() {
		char buf[16] = {};
		blake2s(buf, 0, 0, 16, 0, 0);
		write(1, buf, 16);
	}

	==> b3.c <==
	#include <blake2.h>
	#include <unistd.h>

	int main() {
		char buf[10] = {};
		blake2s(buf, "\x61", 0, 10, 1, 0);
		write(1, buf, 10);
	}

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22444)


  Commit: 79665922cb6a11aa0e85386bd535a735ca288661
      https://github.com/openssl/openssl/commit/79665922cb6a11aa0e85386bd535a735ca288661
  Author: наб <nabijaczleweli at nabijaczleweli.xyz>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M doc/man3/EVP_blake2b512.pod

  Log Message:
  -----------
  Document BLAKE2's variable size

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22444)


  Commit: 7cf75e5caa71a54539d4559c3fb6b0a48b92243f
      https://github.com/openssl/openssl/commit/7cf75e5caa71a54539d4559c3fb6b0a48b92243f
  Author: наб <nabijaczleweli at nabijaczleweli.xyz>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M CHANGES.md

  Log Message:
  -----------
  CHANGES.md: note BLAKE2s supports BLAKE2b-like "size" setting

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22444)


Compare: https://github.com/openssl/openssl/compare/668a144f0a6d...7cf75e5caa71


More information about the openssl-commits mailing list