• Taehee Yoo's avatar
    net: tls: Add ARIA-GCM algorithm · 62e56ef5
    Taehee Yoo authored
    RFC 6209 describes ARIA for TLS 1.2.
    ARIA-128-GCM and ARIA-256-GCM are defined in RFC 6209.
    
    This patch would offer performance increment and an opportunity for
    hardware offload.
    
    Benchmark results:
    iperf-ssl are used.
    CPU: intel i3-12100.
    
      TLS(openssl-3.0-dev)
    [  3]  0.0- 1.0 sec   185 MBytes  1.55 Gbits/sec
    [  3]  1.0- 2.0 sec   186 MBytes  1.56 Gbits/sec
    [  3]  2.0- 3.0 sec   186 MBytes  1.56 Gbits/sec
    [  3]  3.0- 4.0 sec   186 MBytes  1.56 Gbits/sec
    [  3]  4.0- 5.0 sec   186 MBytes  1.56 Gbits/sec
    [  3]  0.0- 5.0 sec   927 MBytes  1.56 Gbits/sec
      kTLS(aria-generic)
    [  3]  0.0- 1.0 sec   198 MBytes  1.66 Gbits/sec
    [  3]  1.0- 2.0 sec   194 MBytes  1.62 Gbits/sec
    [  3]  2.0- 3.0 sec   194 MBytes  1.63 Gbits/sec
    [  3]  3.0- 4.0 sec   194 MBytes  1.63 Gbits/sec
    [  3]  4.0- 5.0 sec   194 MBytes  1.62 Gbits/sec
    [  3]  0.0- 5.0 sec   974 MBytes  1.63 Gbits/sec
      kTLS(aria-avx wirh GFNI)
    [  3]  0.0- 1.0 sec   632 MBytes  5.30 Gbits/sec
    [  3]  1.0- 2.0 sec   657 MBytes  5.51 Gbits/sec
    [  3]  2.0- 3.0 sec   657 MBytes  5.51 Gbits/sec
    [  3]  3.0- 4.0 sec   656 MBytes  5.50 Gbits/sec
    [  3]  4.0- 5.0 sec   656 MBytes  5.50 Gbits/sec
    [  3]  0.0- 5.0 sec  3.18 GBytes  5.47 Gbits/sec
    Signed-off-by: default avatarTaehee Yoo <ap420073@gmail.com>
    Reviewed-by: default avatarVadim Fedorenko <vfedorenko@novek.ru>
    Link: https://lore.kernel.org/r/20220925150033.24615-1-ap420073@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    62e56ef5
tls_sw.c 69.5 KB