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

Tomáš Mráz noreply at github.com
Fri Nov 3 12:39:11 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: eddbb78f4e5196eee33b2fd3d6adeabb69d52eb7
      https://github.com/openssl/openssl/commit/eddbb78f4e5196eee33b2fd3d6adeabb69d52eb7
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-11-03 (Fri, 03 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>
(Merged from https://github.com/openssl/openssl/pull/22590)


  Commit: 3a95d1e41abf2e8eb0f6f07003bac844950bfaae
      https://github.com/openssl/openssl/commit/3a95d1e41abf2e8eb0f6f07003bac844950bfaae
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-11-03 (Fri, 03 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>
(Merged from https://github.com/openssl/openssl/pull/22590)


  Commit: 82750a0826cd4728f40df9ef31b3294d83aaafe0
      https://github.com/openssl/openssl/commit/82750a0826cd4728f40df9ef31b3294d83aaafe0
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-11-03 (Fri, 03 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>
(Merged from https://github.com/openssl/openssl/pull/22590)


  Commit: 1aa08644ecd4005c0f55276b2e8dabd8a2a758f0
      https://github.com/openssl/openssl/commit/1aa08644ecd4005c0f55276b2e8dabd8a2a758f0
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-11-03 (Fri, 03 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>
(Merged from https://github.com/openssl/openssl/pull/22590)


Compare: https://github.com/openssl/openssl/compare/b90662b4b0a6...1aa08644ecd4


More information about the openssl-commits mailing list