[openssl/openssl] 38595b: When changing IV length invalidate previously set IV

Tomáš Mráz noreply at github.com
Thu Nov 23 16:11:11 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: 38595b9a6ad5a752214322ecb8a17be38b4e4b0b
      https://github.com/openssl/openssl/commit/38595b9a6ad5a752214322ecb8a17be38b4e4b0b
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-11-23 (Thu, 23 Nov 2023)

  Changed paths:
    M providers/implementations/ciphers/cipher_aes_ocb.c
    M providers/implementations/ciphers/ciphercommon_ccm.c
    M providers/implementations/ciphers/ciphercommon_gcm.c

  Log Message:
  -----------
  When changing IV length invalidate previously set IV

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>

(cherry picked from commit eddbb78f4e5196eee33b2fd3d6adeabb69d52eb7)

Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/22613)


  Commit: 29f7a75ce39b4061bd0398f571aa45b883ef5f07
      https://github.com/openssl/openssl/commit/29f7a75ce39b4061bd0398f571aa45b883ef5f07
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-11-23 (Thu, 23 Nov 2023)

  Changed paths:
    M providers/implementations/ciphers/cipher_des.c
    M providers/implementations/ciphers/cipher_tdes_common.c
    M providers/implementations/ciphers/ciphercommon.c
    M providers/implementations/include/prov/ciphercommon.h

  Log Message:
  -----------
  update/final: Return error if key is not set

Also make sure the key is not set if the key
length is changed on the context after the key was
set previously.

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>

(cherry picked from commit 3a95d1e41abf2e8eb0f6f07003bac844950bfaae)

Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/22613)


  Commit: 21c20bceb5af3cd1152e6b93595d928b1a16f649
      https://github.com/openssl/openssl/commit/21c20bceb5af3cd1152e6b93595d928b1a16f649
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-11-23 (Thu, 23 Nov 2023)

  Changed paths:
    M test/evp_extra_test.c

  Log Message:
  -----------
  Add negative test for iv length change

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>

(cherry picked from commit 82750a0826cd4728f40df9ef31b3294d83aaafe0)

Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/22613)


  Commit: 4b5215998142c70a0e8f1a72d6fc06b6e3d69a5c
      https://github.com/openssl/openssl/commit/4b5215998142c70a0e8f1a72d6fc06b6e3d69a5c
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-11-23 (Thu, 23 Nov 2023)

  Changed paths:
    M test/evp_extra_test.c

  Log Message:
  -----------
  Add negative test for key length change

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>

(cherry picked from commit 1aa08644ecd4005c0f55276b2e8dabd8a2a758f0)

Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/22613)


Compare: https://github.com/openssl/openssl/compare/761cb2fbba69...4b5215998142


More information about the openssl-commits mailing list