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

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


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: ada7f2258ea8cc64c1025eb8e00c26e3e33f06f9
      https://github.com/openssl/openssl/commit/ada7f2258ea8cc64c1025eb8e00c26e3e33f06f9
  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)

(cherry picked from commit 92d306b32b63dd502531a89fb96c4172be0ddb49)


  Commit: 5ed42a26dacd5dde493c7471c6f79c7ee2cf0c41
      https://github.com/openssl/openssl/commit/5ed42a26dacd5dde493c7471c6f79c7ee2cf0c41
  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)

(cherry picked from commit 30667f5c306dbc11ac0e6fddc7d26fd984d546ab)


Compare: https://github.com/openssl/openssl/compare/f70ef016b2be...5ed42a26dacd


More information about the openssl-commits mailing list