RFR: 8288047: Accelerate Poly1305 on x86_64 using AVX512 instructions [v13]

Volodymyr Paprotski duke at openjdk.org
Fri Nov 11 18:12:23 UTC 2022


On Fri, 11 Nov 2022 01:25:07 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

>> Volodymyr Paprotski has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   jcheck
>
> src/java.base/share/classes/com/sun/crypto/provider/Poly1305.java line 252:
> 
>> 250:     private void processMultipleBlocks(byte[] input, int offset, int length, long[] aLimbs, long[] rLimbs) {
>> 251:         while (length >= BLOCK_LENGTH) {
>> 252:             n.setValue(input, offset, BLOCK_LENGTH, (byte)0x01);
> 
> You could call `processBlock(input, offset, BLOCK_LENGTH);` here.

done (duh.. thanks, neater code)

-------------

PR: https://git.openjdk.org/jdk/pull/10582


More information about the hotspot-dev mailing list