[openssl/openssl] 6a26a0: Fixed incorrect usage of vshuf.b instruction

Zhu Chen noreply at github.com
Tue Aug 1 17:44:23 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: 6a26a09c423c582f70e8e6d05284e7341a3d322c
      https://github.com/openssl/openssl/commit/6a26a09c423c582f70e8e6d05284e7341a3d322c
  Author: zhuchen <zhuchen at loongson.cn>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M crypto/aes/asm/vpaes-loongarch64.pl

  Log Message:
  -----------
  Fixed incorrect usage of vshuf.b instruction

In the definition of the latest revised LoongArch64 vector instruction manual,
it is clearly pointed out that the undefined upper three bits of each byte in
the control register of the vshuf.b instruction should not be used, otherwise
uncertain results may be obtained. Therefore, it is necessary to correct the
use of the vshuf.b instruction in the existing vpaes-loongarch64.pl code to
avoid erroneous calculation results in future LoongArch64 processors.

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

(cherry picked from commit 780ce3849f9efc5404d94464e0eeff966bebbbf1)




More information about the openssl-commits mailing list