]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Rename bigint_rol()/bigint_ror() to bigint_shl()/bigint_shr()
authorMichael Brown <mcb30@ipxe.org>
Mon, 7 Oct 2024 11:13:42 +0000 (12:13 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 7 Oct 2024 12:13:43 +0000 (13:13 +0100)
commit7e0bf4ec5cb3dd608d97735575e3f62252455878
tree0bb9aa58c73136dc4fa86c3f85d9d90bcafb6bb6
parent3f4f843920afdc1d808a8b20354cf3eca481401a
[crypto] Rename bigint_rol()/bigint_ror() to bigint_shl()/bigint_shr()

The big integer shift operations are misleadingly described as
rotations since the original x86 implementations are essentially
trivial loops around the relevant rotate-through-carry instruction.

The overall operation performed is a shift rather than a rotation.
Update the function names and descriptions to reflect this.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/arm32/include/bits/bigint.h
src/arch/arm64/include/bits/bigint.h
src/arch/loong64/include/bits/bigint.h
src/arch/riscv/include/bits/bigint.h
src/arch/x86/include/bits/bigint.h
src/crypto/bigint.c
src/include/ipxe/bigint.h
src/tests/bigint_test.c