[openssl/openssl] 92d306: Revert "Limit size of modulus for BN_mod_exp_mont_...

Bernd Edlinger noreply at github.com
Sat Jan 14 10:40:32 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 92d306b32b63dd502531a89fb96c4172be0ddb49
      https://github.com/openssl/openssl/commit/92d306b32b63dd502531a89fb96c4172be0ddb49
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-01-14 (Sat, 14 Jan 2023)

  Changed paths:
    M crypto/bn/bn_exp.c
    M test/exptest.c

  Log Message:
  -----------
  Revert "Limit size of modulus for BN_mod_exp_mont_consttime()"

This reverts commit 4378e3cd2a4d73a97a2349efaa143059d8ed05e8.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/20005)


  Commit: 30667f5c306dbc11ac0e6fddc7d26fd984d546ab
      https://github.com/openssl/openssl/commit/30667f5c306dbc11ac0e6fddc7d26fd984d546ab
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-01-14 (Sat, 14 Jan 2023)

  Changed paths:
    M crypto/bn/bn_exp.c
    M crypto/bn/bn_local.h
    M crypto/bn/bn_mont.c
    M test/exptest.c

  Log Message:
  -----------
  Limit size of modulus for bn_mul_mont and BN_mod_exp_mont_consttime

Otherwise the alloca can cause an exception.

Issue reported by Jiayi Lin.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/20005)


Compare: https://github.com/openssl/openssl/compare/b639475a9433...30667f5c306d


More information about the openssl-commits mailing list