[openssl/openssl] b1b214: Acceleration of chacha20 on aarch64 by SVE

2022-05-02 Thread pauli
  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: b1b2146ded9ce5a84c62f30c6c4a922b449f6c90
  
https://github.openssl.org/openssl/openssl/commit/b1b2146ded9ce5a84c62f30c6c4a922b449f6c90
  Author: Daniel Hu 
  Date:   2022-05-03 (Tue, 03 May 2022)

  Changed paths:
M crypto/arm64cpuid.pl
M crypto/arm_arch.h
M crypto/armcap.c
A crypto/chacha/asm/chacha-armv8-sve.pl
M crypto/chacha/asm/chacha-armv8.pl
M crypto/chacha/build.info

  Log Message:
  ---
  Acceleration of chacha20 on aarch64 by SVE

This patch accelerates chacha20 on aarch64 when Scalable Vector Extension
(SVE) is supported by CPU. Tested on modern micro-architecture with
256-bit SVE, it has the potential to improve performance up to 20%

The solution takes a hybrid approach. SVE will handle multi-blocks that fit
the SVE vector length, with Neon/Scalar to process any tail data

Test result:
With SVE
type1024 bytes   8192 bytes  16384 bytes
ChaCha201596208.13k  1650010.79k  1653151.06k

Without SVE (by Neon/Scalar)
type1024 bytes   8192 bytes  16384 bytes
chacha201355487.91k  1372678.83k  1372662.44k

The assembly code has been reviewed internally by
ARM engineer fangming.f...@arm.com

Signed-off-by: Daniel Hu 

Reviewed-by: Tomas Mraz 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/17916)




[openssl/openssl] 04904a: md5: add assembly implementation for aarch64

2022-05-02 Thread pauli
  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 04904a0fff639c058d38b355d75485ca5dde0a89
  
https://github.openssl.org/openssl/openssl/commit/04904a0fff639c058d38b355d75485ca5dde0a89
  Author: Jonathan Swinney 
  Date:   2022-05-03 (Tue, 03 May 2022)

  Changed paths:
A crypto/md5/asm/md5-aarch64.pl
M crypto/md5/build.info
M crypto/md5/md5_local.h

  Log Message:
  ---
  md5: add assembly implementation for aarch64

This change improves md5 performance significantly by using a hand-optimized
assembly implementation of the inner loop of md5 calculation. The instructions
are carefully ordered to separate data dependencies as much as possible.

Test with:
$ openssl speed md5

AWS Graviton 2
type 16 bytes64 bytes 256 bytes1024 bytes   8192 bytes  
 16384 bytes
md5  46990.60k   132778.65k   270376.96k   364718.08k   405962.75k  
 409201.32k
md5-modified 51725.23k   152236.22k   323469.14k   453869.57k   514102.61k  
 519056.04k
 +10%+15% +20% +24% +27%
 +27%

Apple M1
type 16 bytes64 bytes 256 bytes1024 bytes   8192 bytes  
 16384 bytes
md5  74634.39k   195561.25k   375434.45k   491004.23k   532361.40k  
 536636.48k
md5-modified 84637.11k   229017.09k   444609.62k   588069.50k   655114.24k  
 660850.56k
 +13%+17% +18% +20% +23%
 +23%

Reviewed-by: Matt Caswell 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/16928)




Coverity Scan: Analysis completed for openssl/openssl

2022-05-02 Thread scan-admin


Your request for analysis of openssl/openssl has been completed 
successfully.
The results are available at 
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yoN-2BQSVjTtaSz8wS4wOr7HlekBtV1P4YRtWclMVkCdvAA-3D-3DXJzF_MulOTlHne1IxTRELXXnGni8d68xSVF-2BUCe3a7Ux-2BjeEgDMKr7cx4gOqvHzZug-2FLIciziL5fxVOzSQ9a394FqsJScifFUsY6g4ioUvXYaeMZl3izbaW3iEkPaJAv1WPRIc9qADF-2FkKKEDf4cu1CJgftwCKKkJMWL6quRgkHmM4-2F2ORvvtMgOTBAnwlS1gHitR6-2B5YSi9vmUNu0tl6-2F4wfKN8T812TpZRtRhGjk2notuQ-3D

Build ID: 453586

Analysis Summary:
   New defects found: 0
   Defects eliminated: 2



[openssl/openssl] ae3ece: Improving locale test

2022-05-02 Thread beldmit
  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: ae3ece03a61e8822fd7ea58f44812871efba82d1
  
https://github.openssl.org/openssl/openssl/commit/ae3ece03a61e8822fd7ea58f44812871efba82d1
  Author: Dmitry Belyavskiy 
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
M test/localetest.c

  Log Message:
  ---
  Improving locale test

Fixes #18205

Reviewed-by: Paul Dale 
Reviewed-by: Tomas Mraz 
(Merged from https://github.com/openssl/openssl/pull/18211)

(cherry picked from commit 93983e31a8d9bf70d12e4cfdb5ce2f337e3b)




[openssl/openssl] 93983e: Improving locale test

2022-05-02 Thread beldmit
  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 93983e31a8d9bf70d12e4cfdb5ce2f337e3b
  
https://github.openssl.org/openssl/openssl/commit/93983e31a8d9bf70d12e4cfdb5ce2f337e3b
  Author: Dmitry Belyavskiy 
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
M test/localetest.c

  Log Message:
  ---
  Improving locale test

Fixes #18205

Reviewed-by: Paul Dale 
Reviewed-by: Tomas Mraz 
(Merged from https://github.com/openssl/openssl/pull/18211)




[openssl/openssl] bffdd5: fix_dh_paramgen_type: Avoid crash with invalid par...

2022-05-02 Thread Tomas Mraz
  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: bffdd57854510fefa69fbd979c2eb7420200dab5
  
https://github.openssl.org/openssl/openssl/commit/bffdd57854510fefa69fbd979c2eb7420200dab5
  Author: Tomas Mraz 
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
M crypto/evp/ctrl_params_translate.c

  Log Message:
  ---
  fix_dh_paramgen_type: Avoid crash with invalid paramgen type

Reviewed-by: Dmitry Belyavskiy 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/18202)

(cherry picked from commit 359dad5178285d5471f2a57a5aa99c1f588dffcb)




[openssl/openssl] 359dad: fix_dh_paramgen_type: Avoid crash with invalid par...

2022-05-02 Thread Tomas Mraz
  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 359dad5178285d5471f2a57a5aa99c1f588dffcb
  
https://github.openssl.org/openssl/openssl/commit/359dad5178285d5471f2a57a5aa99c1f588dffcb
  Author: Tomas Mraz 
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
M crypto/evp/ctrl_params_translate.c

  Log Message:
  ---
  fix_dh_paramgen_type: Avoid crash with invalid paramgen type

Reviewed-by: Dmitry Belyavskiy 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/18202)




[openssl/openssl] fe5c5c: evp_md_init_internal: Avoid reallocating algctx if...

2022-05-02 Thread Tomas Mraz
  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: fe5c5cb85197aec7d68ab095b866ed22076850d0
  
https://github.openssl.org/openssl/openssl/commit/fe5c5cb85197aec7d68ab095b866ed22076850d0
  Author: Tomas Mraz 
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
M crypto/evp/digest.c
M crypto/evp/m_sigver.c
M include/crypto/evp.h

  Log Message:
  ---
  evp_md_init_internal: Avoid reallocating algctx if digest unchanged

Fixes #16947

Also refactor out algctx freeing into a separate function.

Reviewed-by: Dmitry Belyavskiy 
Reviewed-by: Ben Kaduk 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/18105)




[openssl/openssl] 07982e: http_client.c: check expected content type only if...

2022-05-02 Thread David von Oheimb
  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 07982ebe99c74642402c8065bb2479fb8a6ac13d
  
https://github.openssl.org/openssl/openssl/commit/07982ebe99c74642402c8065bb2479fb8a6ac13d
  Author: Dr. David von Oheimb 
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
M crypto/http/http_client.c

  Log Message:
  ---
  http_client.c: check expected content type only if HTTP status code is 200 
(OK)

Reviewed-by: Paul Dale 
Reviewed-by: Tomas Mraz 
Reviewed-by: David von Oheimb 
(Merged from https://github.com/openssl/openssl/pull/18204)

(cherry picked from commit e3477d3e5ccd971da3d8a90a7d5096b47372d288)




[openssl/openssl] e3477d: http_client.c: check expected content type only if...

2022-05-02 Thread David von Oheimb
  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: e3477d3e5ccd971da3d8a90a7d5096b47372d288
  
https://github.openssl.org/openssl/openssl/commit/e3477d3e5ccd971da3d8a90a7d5096b47372d288
  Author: Dr. David von Oheimb 
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
M crypto/http/http_client.c

  Log Message:
  ---
  http_client.c: check expected content type only if HTTP status code is 200 
(OK)

Reviewed-by: Paul Dale 
Reviewed-by: Tomas Mraz 
Reviewed-by: David von Oheimb 
(Merged from https://github.com/openssl/openssl/pull/18204)