riscv: GCM: Use riscv.pm
authorChristoph Müllner <christoph.muellner@vrull.eu>
Wed, 1 Feb 2023 00:08:23 +0000 (01:08 +0100)
committerPauli <pauli@openssl.org>
Thu, 16 Mar 2023 02:12:19 +0000 (13:12 +1100)
commit75623ed8d01555e7c719f3b1c598e555c0878da0
treeb5b04036aa23a9230ed15ccac415441a30d40970
parentac97cd6005878700653d8e50b6e7319728c523a1
riscv: GCM: Use riscv.pm

A recent commit introduced a Perl module for common code.
This patch changes the GCM code to use this module, removes duplicated code,
and moves the instruction encoding functions into the module.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20078)
crypto/modes/asm/ghash-riscv64.pl
crypto/perlasm/riscv.pm