whilst the unit test ran the core algorithm it is still necessary to create a full standalone assembler implementation of chacha20.
First working version of xchacha_hchacha20() function, thanks to Luke for making vertical-first usage clear! https://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=crypto/chacha20/src/xchacha20_svp64.s;h=4b5ce6e39504730481b4e8a846d32ac4bab6cc9c;hb=99bcb26563d29bbd36ac9d08d003ab1345850e46 Now, xchacha_encrypt_bytes() is left, but the main loop is the same, the rest should be easy to implement.
$ SILENCELOG=1 ./test-chacha20 . (lots of stuff printed) . . Cryptographic tests passed
https://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=crypto/chacha20/src/xchacha_encrypt_bytes_svp64.s;h=c1e0a8675cf679036b27de0bf83f8320ee36339a;hb=HEAD Cryptographic tests passed
apologies i made some alterations to setvl which had to result in changes to use of setvl https://git.libre-soc.org/?p=openpower-isa.git;a=commitdiff;h=e2a35a34cfa1dd685ec8f1c64f0bf08783fef568 https://git.libre-soc.org/?p=openpower-isa.git;a=commitdiff;h=f41ef7748e7b365bc4e0f9be784f2fae375ce0be