[fpc-devel] x86_64 SHA1 implementation (J. Gareth Moreton)
Florian Klämpfl
florian at freepascal.org
Sun Sep 17 09:37:25 CEST 2023
> Am 17.09.2023 um 08:45 schrieb Arnaud Bouchez via fpc-devel <fpc-devel at lists.freepascal.org>:
>
>
> There is a working SHA-1 and SHA-256 implementation using x86_64 asm and also SHA-NI in mORMot 2.
>
> Numbers are very high, e.g. 2GB/s on my Core i5 13500.
>
> Since there is no SHA opcode in FPC asm yet (neither in Delphi), I am using hardcoded "db" arrays for SHA-NI instructions.
Trunk should have them.
>
> See https://github.com/synopse/mORMot2/blob/4c59b3c212c5efd2f440c1d7f61504ca832a5931/src/crypt/mormot.crypt.core.asmx64.inc#L1154 for the SHA-NI asm.
>
> Arnaud
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list