[Ada] Use Stream_Element_Arrays internally for secure hash computations
authorThomas Quinot <quinot@adacore.com>
Thu, 7 May 2020 14:08:03 +0000 (16:08 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 6 Jul 2020 11:35:24 +0000 (07:35 -0400)
commit58d94a32b4cfe6065b736cac38f73d9a8deaa5d4
tree11a871ea97e9ba3bc63c3c6afd286e3143c9549c
parentaaa3a6753574594b73746ddaf6e3b4e042a6a586
[Ada] Use Stream_Element_Arrays internally for secure hash computations

gcc/ada/

* libgnat/g-sechas.ads, libgnat/g-sechas.adb: Refactor to use
Stream_Element_Array as the internal buffer type.
* libgnat/g-shshco.adb: Adjust to use Stream_Element_Offset
instead of Integer as the index in the internal state buffer.
gcc/ada/libgnat/g-sechas.adb
gcc/ada/libgnat/g-sechas.ads
gcc/ada/libgnat/g-shshco.adb