aws-crt 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/aws-crt-ffi/crt/aws-c-auth/include/aws/auth/auth.h +1 -0
- data/aws-crt-ffi/crt/aws-c-auth/include/aws/auth/aws_imds_client.h +5 -0
- data/aws-crt-ffi/crt/aws-c-auth/include/aws/auth/credentials.h +5 -0
- data/aws-crt-ffi/crt/aws-c-auth/include/aws/auth/private/aws_signing.h +1 -0
- data/aws-crt-ffi/crt/aws-c-auth/include/aws/auth/private/credentials_utils.h +2 -0
- data/aws-crt-ffi/crt/aws-c-auth/include/aws/auth/signing_config.h +1 -0
- data/aws-crt-ffi/crt/aws-c-auth/source/auth.c +3 -1
- data/aws-crt-ffi/crt/aws-c-auth/source/aws_imds_client.c +146 -63
- data/aws-crt-ffi/crt/aws-c-auth/source/aws_signing.c +41 -19
- data/aws-crt-ffi/crt/aws-c-auth/source/credentials_provider_imds.c +1 -0
- data/aws-crt-ffi/crt/aws-c-auth/source/credentials_utils.c +1 -0
- data/aws-crt-ffi/crt/aws-c-auth/source/signable_http_request.c +2 -1
- data/aws-crt-ffi/crt/aws-c-auth/source/signing_config.c +25 -0
- data/aws-crt-ffi/crt/aws-c-auth/tests/CMakeLists.txt +3 -0
- data/aws-crt-ffi/crt/aws-c-auth/tests/aws_imds_client_test.c +197 -31
- data/aws-crt-ffi/crt/aws-c-auth/tests/credentials_provider_imds_tests.c +16 -18
- data/aws-crt-ffi/crt/aws-c-auth/tests/sigv4_signing_tests.c +3 -1
- data/aws-crt-ffi/crt/aws-c-cal/include/aws/cal/private/opensslcrypto_common.h +22 -0
- data/aws-crt-ffi/crt/aws-c-cal/source/darwin/commoncrypto_aes.c +46 -17
- data/aws-crt-ffi/crt/aws-c-cal/source/unix/openssl_aes.c +1 -0
- data/aws-crt-ffi/crt/aws-c-cal/source/unix/openssl_platform_init.c +7 -0
- data/aws-crt-ffi/crt/aws-c-cal/source/unix/openssl_rsa.c +59 -2
- data/aws-crt-ffi/crt/aws-c-cal/source/unix/opensslcrypto_ecc.c +1 -0
- data/aws-crt-ffi/crt/aws-c-common/CMakeLists.txt +13 -1
- data/aws-crt-ffi/crt/aws-c-common/THIRD-PARTY-LICENSES.txt +28 -7
- data/aws-crt-ffi/crt/aws-c-common/bin/system_info/CMakeLists.txt +18 -0
- data/aws-crt-ffi/crt/aws-c-common/bin/system_info/print_system_info.c +48 -0
- data/aws-crt-ffi/crt/aws-c-common/include/aws/common/allocator.h +23 -0
- data/aws-crt-ffi/crt/aws-c-common/include/aws/common/byte_buf.h +12 -0
- data/aws-crt-ffi/crt/aws-c-common/include/aws/common/cross_process_lock.h +35 -0
- data/aws-crt-ffi/crt/aws-c-common/include/aws/common/hash_table.h +1 -0
- data/aws-crt-ffi/crt/aws-c-common/include/aws/common/priority_queue.h +24 -0
- data/aws-crt-ffi/crt/aws-c-common/include/aws/common/private/system_info_priv.h +37 -0
- data/aws-crt-ffi/crt/aws-c-common/include/aws/common/system_info.h +47 -0
- data/aws-crt-ffi/crt/aws-c-common/include/aws/common/system_resource_util.h +30 -0
- data/aws-crt-ffi/crt/aws-c-common/include/aws/testing/aws_test_harness.h +3 -2
- data/aws-crt-ffi/crt/aws-c-common/source/allocator.c +64 -13
- data/aws-crt-ffi/crt/aws-c-common/source/android/logging.c +14 -0
- data/aws-crt-ffi/crt/aws-c-common/source/common.c +3 -3
- data/aws-crt-ffi/crt/aws-c-common/source/file.c +96 -35
- data/aws-crt-ffi/crt/aws-c-common/source/linux/system_info.c +24 -0
- data/aws-crt-ffi/crt/aws-c-common/source/memtrace.c +10 -3
- data/aws-crt-ffi/crt/aws-c-common/source/platform_fallback_stubs/system_info.c +21 -0
- data/aws-crt-ffi/crt/aws-c-common/source/posix/cross_process_lock.c +141 -0
- data/aws-crt-ffi/crt/aws-c-common/source/posix/system_info.c +1 -1
- data/aws-crt-ffi/crt/aws-c-common/source/posix/system_resource_utils.c +32 -0
- data/aws-crt-ffi/crt/aws-c-common/source/priority_queue.c +24 -0
- data/aws-crt-ffi/crt/aws-c-common/source/system_info.c +80 -0
- data/aws-crt-ffi/crt/aws-c-common/source/task_scheduler.c +2 -2
- data/aws-crt-ffi/crt/aws-c-common/source/windows/cross_process_lock.c +93 -0
- data/aws-crt-ffi/crt/aws-c-common/source/windows/system_resource_utils.c +31 -0
- data/aws-crt-ffi/crt/aws-c-common/tests/CMakeLists.txt +16 -0
- data/aws-crt-ffi/crt/aws-c-common/tests/alloc_test.c +83 -22
- data/aws-crt-ffi/crt/aws-c-common/tests/cross_process_lock_tests.c +116 -0
- data/aws-crt-ffi/crt/aws-c-common/tests/file_test.c +103 -0
- data/aws-crt-ffi/crt/aws-c-common/tests/priority_queue_test.c +36 -0
- data/aws-crt-ffi/crt/aws-c-common/tests/system_info_tests.c +19 -0
- data/aws-crt-ffi/crt/aws-c-common/tests/system_resource_util_test.c +37 -0
- data/aws-crt-ffi/crt/aws-c-http/include/aws/http/connection.h +9 -0
- data/aws-crt-ffi/crt/aws-c-http/include/aws/http/http.h +1 -0
- data/aws-crt-ffi/crt/aws-c-http/include/aws/http/private/connection_impl.h +5 -4
- data/aws-crt-ffi/crt/aws-c-http/include/aws/http/private/connection_manager_system_vtable.h +10 -18
- data/aws-crt-ffi/crt/aws-c-http/include/aws/http/private/proxy_impl.h +5 -1
- data/aws-crt-ffi/crt/aws-c-http/include/aws/http/private/request_response_impl.h +5 -0
- data/aws-crt-ffi/crt/aws-c-http/include/aws/http/request_response.h +10 -0
- data/aws-crt-ffi/crt/aws-c-http/source/connection.c +5 -2
- data/aws-crt-ffi/crt/aws-c-http/source/connection_manager.c +22 -21
- data/aws-crt-ffi/crt/aws-c-http/source/h1_connection.c +102 -17
- data/aws-crt-ffi/crt/aws-c-http/source/h1_stream.c +1 -0
- data/aws-crt-ffi/crt/aws-c-http/source/http.c +3 -0
- data/aws-crt-ffi/crt/aws-c-http/source/proxy_connection.c +2 -2
- data/aws-crt-ffi/crt/aws-c-http/tests/CMakeLists.txt +2 -0
- data/aws-crt-ffi/crt/aws-c-http/tests/test_connection_manager.c +18 -18
- data/aws-crt-ffi/crt/aws-c-http/tests/test_h1_client.c +111 -1
- data/aws-crt-ffi/crt/aws-c-http/tests/test_proxy.c +2 -2
- data/aws-crt-ffi/crt/aws-c-http/tests/test_stream_manager.c +2 -2
- data/aws-crt-ffi/crt/aws-c-io/include/aws/io/retry_strategy.h +1 -1
- data/aws-crt-ffi/crt/aws-c-io/source/exponential_backoff_retry_strategy.c +1 -1
- data/aws-crt-ffi/crt/aws-c-io/source/pkcs11_tls_op_handler.c +2 -4
- data/aws-crt-ffi/crt/aws-lc/CMakeLists.txt +16 -8
- data/aws-crt-ffi/crt/aws-lc/cmake/go.cmake +6 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/CMakeLists.txt +6 -9
- data/aws-crt-ffi/crt/aws-lc/crypto/asn1/a_time.c +34 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/asn1/a_utctm.c +4 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/asn1/asn1_test.cc +41 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/bio/bio_mem.c +6 -7
- data/aws-crt-ffi/crt/aws-lc/crypto/bio/bio_test.cc +152 -16
- data/aws-crt-ffi/crt/aws-lc/crypto/bio/connect.c +6 -12
- data/aws-crt-ffi/crt/aws-lc/crypto/bio/fd.c +2 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/bio/file.c +20 -8
- data/aws-crt-ffi/crt/aws-lc/crypto/bio/socket.c +2 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/bio/socket_helper.c +2 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/blake2/blake2.c +11 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/bytestring/cbb.c +13 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/bytestring/cbs.c +9 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/chacha/asm/chacha-armv8.pl +1 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/chacha/chacha.c +49 -8
- data/aws-crt-ffi/crt/aws-lc/crypto/chacha/chacha_test.cc +110 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/chacha/internal.h +8 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/compiler_test.cc +4 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/conf/conf_test.cc +1 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/crypto_test.cc +9 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/curve25519/curve25519.c +189 -108
- data/aws-crt-ffi/crt/aws-lc/crypto/curve25519/curve25519_nohw.c +78 -6
- data/aws-crt-ffi/crt/aws-lc/crypto/curve25519/ed25519_test.cc +9 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/curve25519/internal.h +24 -10
- data/aws-crt-ffi/crt/aws-lc/crypto/curve25519/spake25519.c +4 -4
- data/aws-crt-ffi/crt/aws-lc/crypto/curve25519/x25519_test.cc +80 -11
- data/aws-crt-ffi/crt/aws-lc/crypto/decrepit/evp/evp_do_all.c +2 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/digest_extra/digest_extra.c +8 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/digest_extra/digest_test.cc +110 -45
- data/aws-crt-ffi/crt/aws-lc/crypto/dsa/dsa_test.cc +8 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/dsa/internal.h +18 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/dynamic_loading_test.c +8 -5
- data/aws-crt-ffi/crt/aws-lc/crypto/ec_extra/ec_derive.c +4 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/ec_extra/hash_to_curve.c +6 -18
- data/aws-crt-ffi/crt/aws-lc/crypto/endian_test.cc +308 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/err/ssl.errordata +2 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/evp_extra/evp_extra_test.cc +2 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/evp_extra/evp_test.cc +11 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/evp_extra/evp_tests.txt +25 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/evp_extra/p_ec_asn1.c +1 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/evp_extra/p_kem.c +2 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/evp_extra/p_rsa_asn1.c +1 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/evp_extra/print.c +7 -6
- data/aws-crt-ffi/crt/aws-lc/crypto/evp_extra/scrypt.c +13 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/CMakeLists.txt +13 -4
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/aes/aes_nohw.c +18 -6
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bcm.c +12 -4
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bn/bn_assert_test.cc +77 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bn/bn_test.cc +30 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bn/bytes.c +112 -22
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bn/div.c +12 -5
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bn/exponentiation.c +54 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bn/gcd.c +5 -6
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bn/internal.h +37 -15
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bn/montgomery.c +4 -11
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/bn/montgomery_inv.c +51 -15
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/cipher/aead.c +2 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/digest/digest.c +29 -6
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/digest/digests.c +89 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/digest/internal.h +4 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/ec.c +19 -36
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/ec_key.c +3 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/ec_montgomery.c +9 -7
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/ec_test.cc +33 -9
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/internal.h +17 -12
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/p224-64.c +5 -8
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/p256-nistz.c +8 -8
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/p256.c +9 -8
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/p384.c +33 -16
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/p521.c +14 -6
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/scalar.c +26 -24
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/simple_mul.c +8 -5
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ec/wnaf.c +3 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/ecdsa/ecdsa.c +9 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/evp/evp.c +43 -12
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/evp/p_ec.c +4 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/hmac/hmac.c +3 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/modes/xts.c +26 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/rand/cpu_jitter_test.cc +1 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/rand/internal.h +20 -11
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/rand/rand.c +10 -10
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/rand/urandom.c +2 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/rsa/internal.h +59 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/rsa/padding.c +9 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/rsa/rsa.c +7 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/rsa/rsa_impl.c +51 -60
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/service_indicator/service_indicator.c +5 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/service_indicator/service_indicator_test.cc +205 -5
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/sha/asm/sha1-armv8.pl +1 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/sha/asm/sha512-armv8.pl +1 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/sha/internal.h +8 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/sha/sha3.c +37 -15
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/sha/sha3_test.cc +115 -110
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/sha/sha512.c +55 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/sshkdf/sshkdf.c +2 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/hmac_extra/hmac_test.cc +12 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/hmac_extra/hmac_tests.txt +10 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/hrss/asm/poly_rq_mul.S +2 -6
- data/aws-crt-ffi/crt/aws-lc/crypto/impl_dispatch_test.cc +9 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/internal.h +90 -8
- data/aws-crt-ffi/crt/aws-lc/crypto/kem/kem.c +28 -27
- data/aws-crt-ffi/crt/aws-lc/crypto/kyber/kem_kyber.h +14 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/obj/obj_dat.h +52 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/obj/obj_mac.num +5 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/obj/objects.txt +7 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/perlasm/arm-xlate.pl +3 -14
- data/aws-crt-ffi/crt/aws-lc/crypto/perlasm/ppc-xlate.pl +1 -5
- data/aws-crt-ffi/crt/aws-lc/crypto/perlasm/x86_64-xlate.pl +4 -15
- data/aws-crt-ffi/crt/aws-lc/crypto/perlasm/x86asm.pl +4 -13
- data/aws-crt-ffi/crt/aws-lc/crypto/poly1305/poly1305_arm_asm.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/crypto/rand_extra/deterministic.c +4 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/rand_extra/fuchsia.c +4 -4
- data/aws-crt-ffi/crt/aws-lc/crypto/rand_extra/rand_test.cc +0 -63
- data/aws-crt-ffi/crt/aws-lc/crypto/rand_extra/windows.c +41 -19
- data/aws-crt-ffi/crt/aws-lc/crypto/rsa_extra/rsa_test.cc +3 -3
- data/aws-crt-ffi/crt/aws-lc/crypto/siphash/siphash.c +12 -5
- data/aws-crt-ffi/crt/aws-lc/crypto/siphash/siphash_test.cc +5 -5
- data/aws-crt-ffi/crt/aws-lc/crypto/stack/stack.c +68 -46
- data/aws-crt-ffi/crt/aws-lc/crypto/trust_token/pmbtoken.c +4 -4
- data/aws-crt-ffi/crt/aws-lc/crypto/trust_token/voprf.c +2 -2
- data/aws-crt-ffi/crt/aws-lc/crypto/x509/by_dir.c +0 -6
- data/aws-crt-ffi/crt/aws-lc/crypto/x509/internal.h +4 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/x509/x509_lu.c +33 -9
- data/aws-crt-ffi/crt/aws-lc/crypto/x509/x509_test.cc +87 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/x509/x509_trs.c +1 -1
- data/aws-crt-ffi/crt/aws-lc/crypto/x509/x509_vfy.c +35 -13
- data/aws-crt-ffi/crt/aws-lc/crypto/x509v3/v3_lib.c +2 -0
- data/aws-crt-ffi/crt/aws-lc/crypto/x509v3/v3_purp.c +4 -6
- data/aws-crt-ffi/crt/aws-lc/generated-src/crypto_test_data.cc +179 -151
- data/aws-crt-ffi/crt/aws-lc/generated-src/err_data.c +353 -349
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/chacha/chacha-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/cipher_extra/chacha20_poly1305_armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/aesv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/aesv8-gcm-armv8-unroll8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/aesv8-gcm-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/armv8-mont.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/bn-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/ghash-neon-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/ghashv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/keccak1600-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/md5-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/p256-armv8-asm.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/p256_beeu-armv8-asm.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/sha1-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/sha256-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/sha512-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/fipsmodule/vpaes-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-aarch64/crypto/test/trampoline-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/chacha/chacha-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/fipsmodule/aesv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/fipsmodule/armv4-mont.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/fipsmodule/bsaes-armv7.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/fipsmodule/ghash-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/fipsmodule/ghashv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/fipsmodule/sha1-armv4-large.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/fipsmodule/sha256-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/fipsmodule/sha512-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/fipsmodule/vpaes-armv7.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/ios-arm/crypto/test/trampoline-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/chacha/chacha-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/cipher_extra/chacha20_poly1305_armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/aesv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/aesv8-gcm-armv8-unroll8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/aesv8-gcm-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/armv8-mont.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/bn-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/ghash-neon-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/ghashv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/keccak1600-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/md5-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/p256-armv8-asm.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/p256_beeu-armv8-asm.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/sha1-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/sha256-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/sha512-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/fipsmodule/vpaes-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-aarch64/crypto/test/trampoline-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/chacha/chacha-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/fipsmodule/aesv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/fipsmodule/armv4-mont.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/fipsmodule/bsaes-armv7.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/fipsmodule/ghash-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/fipsmodule/ghashv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/fipsmodule/sha1-armv4-large.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/fipsmodule/sha256-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/fipsmodule/sha512-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/fipsmodule/vpaes-armv7.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-arm/crypto/test/trampoline-armv4.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-ppc64le/crypto/fipsmodule/aesp8-ppc.S +1 -5
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-ppc64le/crypto/fipsmodule/ghashp8-ppc.S +1 -5
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-ppc64le/crypto/test/trampoline-ppc.S +1 -5
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/chacha/chacha-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/aesni-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/bn-586.S +4 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/co-586.S +4 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/ghash-ssse3-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/ghash-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/md5-586.S +4 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/sha1-586.S +4 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/sha256-586.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/sha512-586.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/vpaes-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/fipsmodule/x86-mont.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86/crypto/test/trampoline-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/chacha/chacha-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/cipher_extra/aes128gcmsiv-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/cipher_extra/aesni-sha1-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/cipher_extra/aesni-sha256-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/cipher_extra/chacha20_poly1305_x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/aesni-gcm-avx512.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/aesni-gcm-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/aesni-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/aesni-xts-avx512.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/ghash-ssse3-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/ghash-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/md5-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/p256-x86_64-asm.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/p256_beeu-x86_64-asm.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/rdrand-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/rsaz-avx2.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/sha1-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/sha256-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/sha512-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/vpaes-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/x86_64-mont.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/fipsmodule/x86_64-mont5.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/linux-x86_64/crypto/test/trampoline-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/chacha/chacha-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/aesni-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/bn-586.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/co-586.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/ghash-ssse3-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/ghash-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/md5-586.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/sha1-586.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/sha256-586.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/sha512-586.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/vpaes-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/fipsmodule/x86-mont.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86/crypto/test/trampoline-x86.S +3 -12
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/chacha/chacha-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/cipher_extra/aes128gcmsiv-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/cipher_extra/aesni-sha1-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/cipher_extra/aesni-sha256-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/cipher_extra/chacha20_poly1305_x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/aesni-gcm-avx512.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/aesni-gcm-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/aesni-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/aesni-xts-avx512.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/ghash-ssse3-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/ghash-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/md5-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/p256-x86_64-asm.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/p256_beeu-x86_64-asm.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/rdrand-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/rsaz-avx2.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/sha1-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/sha256-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/sha512-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/vpaes-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/x86_64-mont.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/fipsmodule/x86_64-mont5.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/mac-x86_64/crypto/test/trampoline-x86_64.S +2 -11
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/chacha/chacha-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/cipher_extra/chacha20_poly1305_armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/aesv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/aesv8-gcm-armv8-unroll8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/aesv8-gcm-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/armv8-mont.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/bn-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/ghash-neon-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/ghashv8-armx.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/keccak1600-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/md5-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/p256-armv8-asm.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/p256_beeu-armv8-asm.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/sha1-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/sha256-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/sha512-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/fipsmodule/vpaes-armv8.S +3 -13
- data/aws-crt-ffi/crt/aws-lc/generated-src/win-aarch64/crypto/test/trampoline-armv8.S +4 -14
- data/aws-crt-ffi/crt/aws-lc/go.mod +4 -4
- data/aws-crt-ffi/crt/aws-lc/go.sum +8 -10
- data/aws-crt-ffi/crt/aws-lc/include/openssl/aead.h +2 -2
- data/aws-crt-ffi/crt/aws-lc/include/openssl/arm_arch.h +4 -119
- data/aws-crt-ffi/crt/aws-lc/include/openssl/asm_base.h +185 -0
- data/aws-crt-ffi/crt/aws-lc/include/openssl/asn1.h +5 -0
- data/aws-crt-ffi/crt/aws-lc/include/openssl/base.h +31 -134
- data/aws-crt-ffi/crt/aws-lc/include/openssl/bio.h +30 -18
- data/aws-crt-ffi/crt/aws-lc/include/openssl/bn.h +0 -2
- data/aws-crt-ffi/crt/aws-lc/include/openssl/chacha.h +6 -0
- data/aws-crt-ffi/crt/aws-lc/include/openssl/cipher.h +2 -2
- data/aws-crt-ffi/crt/aws-lc/include/openssl/digest.h +9 -6
- data/aws-crt-ffi/crt/aws-lc/include/openssl/dsa.h +0 -21
- data/aws-crt-ffi/crt/aws-lc/include/openssl/ec.h +1 -1
- data/aws-crt-ffi/crt/aws-lc/include/openssl/err.h +1 -1
- data/aws-crt-ffi/crt/aws-lc/include/openssl/evp.h +8 -5
- data/aws-crt-ffi/crt/aws-lc/include/openssl/nid.h +21 -0
- data/aws-crt-ffi/crt/aws-lc/include/openssl/rsa.h +1 -65
- data/aws-crt-ffi/crt/aws-lc/include/openssl/sha.h +22 -1
- data/aws-crt-ffi/crt/aws-lc/include/openssl/ssl.h +121 -13
- data/aws-crt-ffi/crt/aws-lc/include/openssl/stack.h +229 -208
- data/aws-crt-ffi/crt/aws-lc/include/openssl/target.h +166 -0
- data/aws-crt-ffi/crt/aws-lc/include/openssl/x509.h +30 -10
- data/aws-crt-ffi/crt/aws-lc/include/openssl/x509v3.h +6 -4
- data/aws-crt-ffi/crt/aws-lc/sources.cmake +2 -0
- data/aws-crt-ffi/crt/aws-lc/ssl/extensions.cc +12 -7
- data/aws-crt-ffi/crt/aws-lc/ssl/handshake_server.cc +28 -18
- data/aws-crt-ffi/crt/aws-lc/ssl/internal.h +41 -6
- data/aws-crt-ffi/crt/aws-lc/ssl/s3_both.cc +9 -17
- data/aws-crt-ffi/crt/aws-lc/ssl/ssl_cipher.cc +13 -5
- data/aws-crt-ffi/crt/aws-lc/ssl/ssl_key_share.cc +542 -2
- data/aws-crt-ffi/crt/aws-lc/ssl/ssl_lib.cc +35 -0
- data/aws-crt-ffi/crt/aws-lc/ssl/ssl_test.cc +1847 -14
- data/aws-crt-ffi/crt/aws-lc/ssl/ssl_x509.cc +128 -0
- data/aws-crt-ffi/crt/aws-lc/ssl/test/PORTING.md +10 -7
- data/aws-crt-ffi/crt/aws-lc/ssl/test/bssl_shim.cc +133 -77
- data/aws-crt-ffi/crt/aws-lc/ssl/test/handshake_util.cc +3 -3
- data/aws-crt-ffi/crt/aws-lc/ssl/test/handshaker.cc +4 -0
- data/aws-crt-ffi/crt/aws-lc/ssl/test/runner/handshake_client.go +6 -2
- data/aws-crt-ffi/crt/aws-lc/ssl/test/runner/handshake_messages.go +894 -1042
- data/aws-crt-ffi/crt/aws-lc/ssl/test/runner/handshake_server.go +24 -23
- data/aws-crt-ffi/crt/aws-lc/ssl/test/runner/prf.go +6 -5
- data/aws-crt-ffi/crt/aws-lc/ssl/test/runner/runner.go +56 -55
- data/aws-crt-ffi/crt/aws-lc/ssl/test/runner/shim_dispatcher.go +188 -0
- data/aws-crt-ffi/crt/aws-lc/ssl/test/runner/ticket.go +37 -39
- data/aws-crt-ffi/crt/aws-lc/ssl/test/test_config.cc +59 -24
- data/aws-crt-ffi/crt/aws-lc/ssl/test/test_config.h +3 -2
- data/aws-crt-ffi/crt/aws-lc/ssl/tls13_server.cc +10 -11
- data/aws-crt-ffi/crt/aws-lc/tests/ci/cdk/app.py +4 -4
- data/aws-crt-ffi/crt/aws-lc/tests/ci/cdk/cdk/{aws_lc_mac_arm_ci_stack.py → aws_lc_ec2_test_framework_ci_stack.py} +13 -29
- data/aws-crt-ffi/crt/aws-lc/tests/ci/cdk/cdk/ssm/general_test_run_ssm_document.yaml +43 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/common_posix_setup.sh +10 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/linux-aarch/amazonlinux-2023_base/Dockerfile +5 -1
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/linux-aarch/ubuntu-22.04_base/Dockerfile +19 -3
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/linux-x86/amazonlinux-2_gcc-7x-intel-sde/Dockerfile +5 -4
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/linux-x86/build_images.sh +1 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/linux-x86/push_images.sh +2 -1
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/linux-x86/ubuntu-20.04_clang-10x_formal-verification/create_image.sh +1 -1
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/linux-x86/ubuntu-22.04_base/Dockerfile +1 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/linux-x86/ubuntu-22.04_clang-14x-sde/Dockerfile +42 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/windows/vs2017/Dockerfile +14 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/docker_images/windows/windows_base/Dockerfile +3 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/integration/README.md +12 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/integration/nginx_patch/aws-lc-nginx.patch +68 -23
- data/aws-crt-ffi/crt/aws-lc/tests/ci/integration/run_crt_integration.sh +27 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/integration/run_monit_integration.sh +56 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/integration/sslproxy_patch/aws-lc-sslproxy.patch +2 -2
- data/aws-crt-ffi/crt/aws-lc/tests/ci/run_ec2_test_framework.sh +135 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/run_fips_tests.sh +14 -2
- data/aws-crt-ffi/crt/aws-lc/tests/ci/run_tests_with_sde.sh +4 -1
- data/aws-crt-ffi/crt/aws-lc/tests/ci/run_tests_with_sde_asan.sh +14 -0
- data/aws-crt-ffi/crt/aws-lc/tests/ci/run_windows_tests.bat +39 -3
- data/aws-crt-ffi/crt/aws-lc/third_party/fiat/README.md +21 -6
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/bignum_madd_n25519.S +284 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/bignum_madd_n25519_alt.S +210 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/bignum_mod_n25519.S +186 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/bignum_neg_p25519.S +65 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/curve25519_x25519.S +1043 -352
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/curve25519_x25519_alt.S +1043 -352
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/curve25519_x25519_byte.S +1043 -352
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/curve25519_x25519_byte_alt.S +1043 -352
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/curve25519_x25519base.S +1042 -352
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/curve25519_x25519base_alt.S +1042 -352
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/curve25519_x25519base_byte.S +1042 -352
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/curve25519_x25519base_byte_alt.S +1043 -354
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/edwards25519_decode.S +700 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/edwards25519_decode_alt.S +563 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/edwards25519_encode.S +131 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/edwards25519_scalarmulbase.S +9626 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/edwards25519_scalarmulbase_alt.S +9468 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/edwards25519_scalarmuldouble.S +3157 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/curve25519/edwards25519_scalarmuldouble_alt.S +2941 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/p384/Makefile +1 -1
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/arm/p521/Makefile +1 -1
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/include/s2n-bignum_aws-lc.h +34 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/bignum_madd_n25519.S +219 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/bignum_madd_n25519_alt.S +245 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/bignum_mod_n25519.S +228 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/bignum_neg_p25519.S +86 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/curve25519_x25519.S +1350 -407
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/curve25519_x25519_alt.S +1350 -407
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/curve25519_x25519base.S +1344 -400
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/curve25519_x25519base_alt.S +1348 -402
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/edwards25519_decode.S +670 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/edwards25519_decode_alt.S +751 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/edwards25519_encode.S +81 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/edwards25519_scalarmulbase.S +9910 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/edwards25519_scalarmulbase_alt.S +9986 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/edwards25519_scalarmuldouble.S +3619 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/s2n-bignum/x86_att/curve25519/edwards25519_scalarmuldouble_alt.S +3736 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/wycheproof_testvectors/hmac_sha512_224_test.json +1978 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/wycheproof_testvectors/hmac_sha512_224_test.txt +1403 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/wycheproof_testvectors/hmac_sha512_256_test.json +1993 -0
- data/aws-crt-ffi/crt/aws-lc/third_party/wycheproof_testvectors/hmac_sha512_256_test.txt +1416 -0
- data/aws-crt-ffi/crt/aws-lc/tool/digest.cc +4 -0
- data/aws-crt-ffi/crt/aws-lc/tool/internal.h +1 -0
- data/aws-crt-ffi/crt/aws-lc/tool/speed.cc +53 -6
- data/aws-crt-ffi/crt/aws-lc/util/all_tests.go +43 -12
- data/aws-crt-ffi/crt/aws-lc/util/all_tests.json +13 -5
- data/aws-crt-ffi/crt/aws-lc/util/bot/DEPS +4 -4
- data/aws-crt-ffi/crt/aws-lc/util/bot/update_clang.py +8 -2
- data/aws-crt-ffi/crt/aws-lc/util/codecov-ci.sh +82 -0
- data/aws-crt-ffi/crt/aws-lc/util/convert_wycheproof/convert_wycheproof.go +7 -5
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/ACVP.md +7 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/subprocess/hash.go +24 -9
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/subprocess/rsa.go +3 -4
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/subprocess/subprocess.go +15 -10
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/expected/HMAC-SHA2-512-224.bz2 +0 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/expected/SHA2-512-224.bz2 +0 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/expected/SHAKE-128.bz2 +0 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/expected/SHAKE-256.bz2 +0 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/sha-tests/sha512-224-tests.json +1 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/sha-tests/shake-128-tests.json +1 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/sha-tests/shake-256-tests.json +1 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/tests.json +1 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/vectors/HMAC-SHA2-512-224.bz2 +0 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/vectors/SHA2-512-224.bz2 +0 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/vectors/SHAKE-128.bz2 +0 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/acvptool/test/vectors/SHAKE-256.bz2 +0 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/modulewrapper/main.cc +4 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/acvp/modulewrapper/modulewrapper.cc +144 -1
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/delocate/delocate.go +9 -3
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/delocate/testdata/aarch64-Basic/in.s +4 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/delocate/testdata/aarch64-Basic/out.s +11 -0
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/inject_hash/inject_hash.go +13 -4
- data/aws-crt-ffi/crt/aws-lc/util/fipstools/test-break-kat.sh +2 -0
- data/aws-crt-ffi/crt/aws-lc/util/testconfig/testconfig.go +2 -1
- data/aws-crt-ffi/crt/s2n/api/s2n.h +9 -5
- data/aws-crt-ffi/crt/s2n/bindings/rust/bench/benches/handshake.rs +9 -6
- data/aws-crt-ffi/crt/s2n/bindings/rust/bench/benches/resumption.rs +14 -14
- data/aws-crt-ffi/crt/s2n/bindings/rust/bench/benches/throughput.rs +9 -6
- data/aws-crt-ffi/crt/s2n/bindings/rust/bench/src/harness.rs +106 -102
- data/aws-crt-ffi/crt/s2n/bindings/rust/bench/src/openssl.rs +24 -20
- data/aws-crt-ffi/crt/s2n/bindings/rust/bench/src/rustls.rs +28 -24
- data/aws-crt-ffi/crt/s2n/bindings/rust/bench/src/s2n_tls.rs +52 -50
- data/aws-crt-ffi/crt/s2n/bindings/rust/generate/Cargo.toml +1 -0
- data/aws-crt-ffi/crt/s2n/bindings/rust/integration/Cargo.toml +3 -0
- data/aws-crt-ffi/crt/s2n/bindings/rust/s2n-tls/Cargo.toml +2 -2
- data/aws-crt-ffi/crt/s2n/bindings/rust/s2n-tls/src/connection.rs +9 -0
- data/aws-crt-ffi/crt/s2n/bindings/rust/s2n-tls-sys/templates/Cargo.template +2 -1
- data/aws-crt-ffi/crt/s2n/bindings/rust/s2n-tls-tokio/Cargo.toml +2 -2
- data/aws-crt-ffi/crt/s2n/tests/cbmc/sources/make_common_datastructures.c +9 -2
- data/aws-crt-ffi/crt/s2n/tests/fuzz/s2n_client_cert_verify_recv_test.c +1 -1
- data/aws-crt-ffi/crt/s2n/tests/fuzz/s2n_hybrid_ecdhe_kyber_r3_fuzz_test.c +1 -1
- data/aws-crt-ffi/crt/s2n/tests/fuzz/s2n_tls13_cert_verify_recv_test.c +1 -1
- data/aws-crt-ffi/crt/s2n/tests/integrationv2/test_version_negotiation.py +4 -4
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_auth_selection_test.c +19 -9
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_client_auth_handshake_test.c +3 -3
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_client_cert_verify_test.c +1 -1
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_client_hello_recv_test.c +1 -1
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_client_hello_test.c +4 -4
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_client_signature_algorithms_extension_test.c +4 -5
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_connection_protocol_versions_test.c +390 -0
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_connection_test.c +8 -4
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_handshake_test.c +2 -1
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_quic_support_io_test.c +106 -0
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_security_policies_test.c +6 -2
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_self_talk_offload_signing_test.c +3 -3
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_self_talk_session_resumption_test.c +135 -0
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_server_new_session_ticket_test.c +32 -0
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_server_signature_algorithms_extension_test.c +1 -1
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_signature_algorithms_test.c +307 -283
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_tls13_cert_request_test.c +1 -1
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_tls13_cert_verify_test.c +18 -17
- data/aws-crt-ffi/crt/s2n/tests/unit/s2n_x509_validator_test.c +125 -0
- data/aws-crt-ffi/crt/s2n/tls/extensions/s2n_client_signature_algorithms.c +8 -1
- data/aws-crt-ffi/crt/s2n/tls/extensions/s2n_client_supported_versions.c +43 -11
- data/aws-crt-ffi/crt/s2n/tls/extensions/s2n_client_supported_versions.h +3 -0
- data/aws-crt-ffi/crt/s2n/tls/extensions/s2n_server_signature_algorithms.c +8 -1
- data/aws-crt-ffi/crt/s2n/tls/s2n_auth_selection.c +4 -2
- data/aws-crt-ffi/crt/s2n/tls/s2n_client_cert_verify.c +7 -10
- data/aws-crt-ffi/crt/s2n/tls/s2n_client_hello.c +2 -2
- data/aws-crt-ffi/crt/s2n/tls/s2n_connection.c +75 -14
- data/aws-crt-ffi/crt/s2n/tls/s2n_handshake.h +2 -2
- data/aws-crt-ffi/crt/s2n/tls/s2n_post_handshake.c +1 -1
- data/aws-crt-ffi/crt/s2n/tls/s2n_post_handshake.h +1 -0
- data/aws-crt-ffi/crt/s2n/tls/s2n_quic_support.c +29 -0
- data/aws-crt-ffi/crt/s2n/tls/s2n_quic_support.h +5 -0
- data/aws-crt-ffi/crt/s2n/tls/s2n_security_policies.c +40 -0
- data/aws-crt-ffi/crt/s2n/tls/s2n_security_policies.h +4 -0
- data/aws-crt-ffi/crt/s2n/tls/s2n_server_cert_request.c +1 -1
- data/aws-crt-ffi/crt/s2n/tls/s2n_server_hello.c +0 -3
- data/aws-crt-ffi/crt/s2n/tls/s2n_server_key_exchange.c +8 -9
- data/aws-crt-ffi/crt/s2n/tls/s2n_server_new_session_ticket.c +8 -0
- data/aws-crt-ffi/crt/s2n/tls/s2n_signature_algorithms.c +111 -72
- data/aws-crt-ffi/crt/s2n/tls/s2n_signature_algorithms.h +11 -9
- data/aws-crt-ffi/crt/s2n/tls/s2n_signature_scheme.c +9 -0
- data/aws-crt-ffi/crt/s2n/tls/s2n_signature_scheme.h +2 -0
- data/aws-crt-ffi/crt/s2n/tls/s2n_tls13_certificate_verify.c +12 -18
- data/aws-crt-ffi/crt/s2n/tls/s2n_x509_validator.c +7 -7
- data/aws-crt-ffi/src/api.h +1 -0
- data/lib/aws-crt/native.rb +1 -1
- metadata +68 -5
- data/aws-crt-ffi/crt/aws-lc/tests/ci/cdk/cdk/ssm/m1_tests_ssm_document.yaml +0 -34
- data/aws-crt-ffi/crt/aws-lc/tests/ci/run_m1_ec2_instance.sh +0 -96
@@ -907,360 +907,1058 @@ curve25519_x25519base_scalarloop:
|
|
907
907
|
//
|
908
908
|
// First the addition and subtraction:
|
909
909
|
|
910
|
-
add_twice4(
|
911
|
-
sub_twice4(
|
910
|
+
add_twice4(t1,x_3,w_3)
|
911
|
+
sub_twice4(t2,x_3,w_3)
|
912
912
|
|
913
|
-
// Prepare to call the modular inverse function to get
|
913
|
+
// Prepare to call the modular inverse function to get t0 = 1/t2
|
914
914
|
// Note that this works for the weakly normalized z_3 equally well.
|
915
915
|
// The non-coprime case z_3 == 0 (mod p_25519) cannot arise anyway.
|
916
916
|
|
917
|
-
|
918
|
-
add x1,
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
//
|
924
|
-
//
|
925
|
-
//
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
mov
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
mov
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
mul
|
1036
|
-
|
1037
|
-
|
1038
|
-
adc
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
mul
|
1112
|
-
umulh
|
1113
|
-
adds
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
adc
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
umulh
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
umulh
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
ldr
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
mov
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
extr
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
ldr
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
adcs
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
917
|
+
add x0, t0
|
918
|
+
add x1, t2
|
919
|
+
|
920
|
+
// Inline copy of bignum_inv_p25519, identical except for stripping out
|
921
|
+
// the prologue and epilogue saving and restoring registers and making
|
922
|
+
// and reclaiming room on the stack. For more details and explanations see
|
923
|
+
// "arm/curve25519/bignum_inv_p25519.S". Note that the stack it uses for
|
924
|
+
// its own temporaries is 128 bytes, so it has no effect on variables
|
925
|
+
// that are needed in the rest of our computation here: res, t0, t1, t2.
|
926
|
+
|
927
|
+
mov x20, x0
|
928
|
+
mov x10, #0xffffffffffffffed
|
929
|
+
mov x11, #0xffffffffffffffff
|
930
|
+
stp x10, x11, [sp]
|
931
|
+
mov x12, #0x7fffffffffffffff
|
932
|
+
stp x11, x12, [sp, #16]
|
933
|
+
ldp x2, x3, [x1]
|
934
|
+
ldp x4, x5, [x1, #16]
|
935
|
+
mov x7, #0x13
|
936
|
+
lsr x6, x5, #63
|
937
|
+
madd x6, x7, x6, x7
|
938
|
+
adds x2, x2, x6
|
939
|
+
adcs x3, x3, xzr
|
940
|
+
adcs x4, x4, xzr
|
941
|
+
orr x5, x5, #0x8000000000000000
|
942
|
+
adcs x5, x5, xzr
|
943
|
+
csel x6, x7, xzr, cc
|
944
|
+
subs x2, x2, x6
|
945
|
+
sbcs x3, x3, xzr
|
946
|
+
sbcs x4, x4, xzr
|
947
|
+
sbc x5, x5, xzr
|
948
|
+
and x5, x5, #0x7fffffffffffffff
|
949
|
+
stp x2, x3, [sp, #32]
|
950
|
+
stp x4, x5, [sp, #48]
|
951
|
+
stp xzr, xzr, [sp, #64]
|
952
|
+
stp xzr, xzr, [sp, #80]
|
953
|
+
mov x10, #0x2099
|
954
|
+
movk x10, #0x7502, lsl #16
|
955
|
+
movk x10, #0x9e23, lsl #32
|
956
|
+
movk x10, #0xa0f9, lsl #48
|
957
|
+
mov x11, #0x2595
|
958
|
+
movk x11, #0x1d13, lsl #16
|
959
|
+
movk x11, #0x8f3f, lsl #32
|
960
|
+
movk x11, #0xa8c6, lsl #48
|
961
|
+
mov x12, #0x5242
|
962
|
+
movk x12, #0x5ac, lsl #16
|
963
|
+
movk x12, #0x8938, lsl #32
|
964
|
+
movk x12, #0x6c6c, lsl #48
|
965
|
+
mov x13, #0x615
|
966
|
+
movk x13, #0x4177, lsl #16
|
967
|
+
movk x13, #0x8b2, lsl #32
|
968
|
+
movk x13, #0x2765, lsl #48
|
969
|
+
stp x10, x11, [sp, #96]
|
970
|
+
stp x12, x13, [sp, #112]
|
971
|
+
mov x21, #0xa
|
972
|
+
mov x22, #0x1
|
973
|
+
b curve25519_x25519base_invmidloop
|
974
|
+
curve25519_x25519base_invloop:
|
975
|
+
cmp x10, xzr
|
976
|
+
csetm x14, mi
|
977
|
+
cneg x10, x10, mi
|
978
|
+
cmp x11, xzr
|
979
|
+
csetm x15, mi
|
980
|
+
cneg x11, x11, mi
|
981
|
+
cmp x12, xzr
|
982
|
+
csetm x16, mi
|
983
|
+
cneg x12, x12, mi
|
984
|
+
cmp x13, xzr
|
985
|
+
csetm x17, mi
|
986
|
+
cneg x13, x13, mi
|
987
|
+
and x0, x10, x14
|
988
|
+
and x1, x11, x15
|
989
|
+
add x9, x0, x1
|
990
|
+
and x0, x12, x16
|
991
|
+
and x1, x13, x17
|
992
|
+
add x19, x0, x1
|
993
|
+
ldr x7, [sp]
|
994
|
+
eor x1, x7, x14
|
995
|
+
mul x0, x1, x10
|
996
|
+
umulh x1, x1, x10
|
997
|
+
adds x4, x9, x0
|
998
|
+
adc x2, xzr, x1
|
999
|
+
ldr x8, [sp, #32]
|
1000
|
+
eor x1, x8, x15
|
1001
|
+
mul x0, x1, x11
|
1002
|
+
umulh x1, x1, x11
|
1003
|
+
adds x4, x4, x0
|
1004
|
+
adc x2, x2, x1
|
1005
|
+
eor x1, x7, x16
|
1006
|
+
mul x0, x1, x12
|
1007
|
+
umulh x1, x1, x12
|
1008
|
+
adds x5, x19, x0
|
1009
|
+
adc x3, xzr, x1
|
1010
|
+
eor x1, x8, x17
|
1011
|
+
mul x0, x1, x13
|
1012
|
+
umulh x1, x1, x13
|
1013
|
+
adds x5, x5, x0
|
1014
|
+
adc x3, x3, x1
|
1015
|
+
ldr x7, [sp, #8]
|
1016
|
+
eor x1, x7, x14
|
1017
|
+
mul x0, x1, x10
|
1018
|
+
umulh x1, x1, x10
|
1019
|
+
adds x2, x2, x0
|
1020
|
+
adc x6, xzr, x1
|
1021
|
+
ldr x8, [sp, #40]
|
1022
|
+
eor x1, x8, x15
|
1023
|
+
mul x0, x1, x11
|
1024
|
+
umulh x1, x1, x11
|
1025
|
+
adds x2, x2, x0
|
1026
|
+
adc x6, x6, x1
|
1027
|
+
extr x4, x2, x4, #59
|
1028
|
+
str x4, [sp]
|
1029
|
+
eor x1, x7, x16
|
1030
|
+
mul x0, x1, x12
|
1031
|
+
umulh x1, x1, x12
|
1032
|
+
adds x3, x3, x0
|
1033
|
+
adc x4, xzr, x1
|
1034
|
+
eor x1, x8, x17
|
1035
|
+
mul x0, x1, x13
|
1036
|
+
umulh x1, x1, x13
|
1037
|
+
adds x3, x3, x0
|
1038
|
+
adc x4, x4, x1
|
1039
|
+
extr x5, x3, x5, #59
|
1040
|
+
str x5, [sp, #32]
|
1041
|
+
ldr x7, [sp, #16]
|
1042
|
+
eor x1, x7, x14
|
1043
|
+
mul x0, x1, x10
|
1044
|
+
umulh x1, x1, x10
|
1045
|
+
adds x6, x6, x0
|
1046
|
+
adc x5, xzr, x1
|
1047
|
+
ldr x8, [sp, #48]
|
1048
|
+
eor x1, x8, x15
|
1049
|
+
mul x0, x1, x11
|
1050
|
+
umulh x1, x1, x11
|
1051
|
+
adds x6, x6, x0
|
1052
|
+
adc x5, x5, x1
|
1053
|
+
extr x2, x6, x2, #59
|
1054
|
+
str x2, [sp, #8]
|
1055
|
+
eor x1, x7, x16
|
1056
|
+
mul x0, x1, x12
|
1057
|
+
umulh x1, x1, x12
|
1058
|
+
adds x4, x4, x0
|
1059
|
+
adc x2, xzr, x1
|
1060
|
+
eor x1, x8, x17
|
1061
|
+
mul x0, x1, x13
|
1062
|
+
umulh x1, x1, x13
|
1063
|
+
adds x4, x4, x0
|
1064
|
+
adc x2, x2, x1
|
1065
|
+
extr x3, x4, x3, #59
|
1066
|
+
str x3, [sp, #40]
|
1067
|
+
ldr x7, [sp, #24]
|
1068
|
+
eor x1, x7, x14
|
1069
|
+
asr x3, x1, #63
|
1070
|
+
and x3, x3, x10
|
1071
|
+
neg x3, x3
|
1072
|
+
mul x0, x1, x10
|
1073
|
+
umulh x1, x1, x10
|
1074
|
+
adds x5, x5, x0
|
1075
|
+
adc x3, x3, x1
|
1076
|
+
ldr x8, [sp, #56]
|
1077
|
+
eor x1, x8, x15
|
1078
|
+
asr x0, x1, #63
|
1079
|
+
and x0, x0, x11
|
1080
|
+
sub x3, x3, x0
|
1081
|
+
mul x0, x1, x11
|
1082
|
+
umulh x1, x1, x11
|
1083
|
+
adds x5, x5, x0
|
1084
|
+
adc x3, x3, x1
|
1085
|
+
extr x6, x5, x6, #59
|
1086
|
+
str x6, [sp, #16]
|
1087
|
+
extr x5, x3, x5, #59
|
1088
|
+
str x5, [sp, #24]
|
1089
|
+
eor x1, x7, x16
|
1090
|
+
asr x5, x1, #63
|
1091
|
+
and x5, x5, x12
|
1092
|
+
neg x5, x5
|
1093
|
+
mul x0, x1, x12
|
1094
|
+
umulh x1, x1, x12
|
1095
|
+
adds x2, x2, x0
|
1096
|
+
adc x5, x5, x1
|
1097
|
+
eor x1, x8, x17
|
1098
|
+
asr x0, x1, #63
|
1099
|
+
and x0, x0, x13
|
1100
|
+
sub x5, x5, x0
|
1101
|
+
mul x0, x1, x13
|
1102
|
+
umulh x1, x1, x13
|
1103
|
+
adds x2, x2, x0
|
1104
|
+
adc x5, x5, x1
|
1105
|
+
extr x4, x2, x4, #59
|
1106
|
+
str x4, [sp, #48]
|
1107
|
+
extr x2, x5, x2, #59
|
1108
|
+
str x2, [sp, #56]
|
1109
|
+
ldr x7, [sp, #64]
|
1110
|
+
eor x1, x7, x14
|
1111
|
+
mul x0, x1, x10
|
1112
|
+
umulh x1, x1, x10
|
1113
|
+
adds x4, x9, x0
|
1114
|
+
adc x2, xzr, x1
|
1115
|
+
ldr x8, [sp, #96]
|
1116
|
+
eor x1, x8, x15
|
1117
|
+
mul x0, x1, x11
|
1118
|
+
umulh x1, x1, x11
|
1119
|
+
adds x4, x4, x0
|
1120
|
+
str x4, [sp, #64]
|
1121
|
+
adc x2, x2, x1
|
1122
|
+
eor x1, x7, x16
|
1123
|
+
mul x0, x1, x12
|
1124
|
+
umulh x1, x1, x12
|
1125
|
+
adds x5, x19, x0
|
1126
|
+
adc x3, xzr, x1
|
1127
|
+
eor x1, x8, x17
|
1128
|
+
mul x0, x1, x13
|
1129
|
+
umulh x1, x1, x13
|
1130
|
+
adds x5, x5, x0
|
1131
|
+
str x5, [sp, #96]
|
1132
|
+
adc x3, x3, x1
|
1133
|
+
ldr x7, [sp, #72]
|
1134
|
+
eor x1, x7, x14
|
1135
|
+
mul x0, x1, x10
|
1136
|
+
umulh x1, x1, x10
|
1137
|
+
adds x2, x2, x0
|
1138
|
+
adc x6, xzr, x1
|
1139
|
+
ldr x8, [sp, #104]
|
1140
|
+
eor x1, x8, x15
|
1141
|
+
mul x0, x1, x11
|
1142
|
+
umulh x1, x1, x11
|
1143
|
+
adds x2, x2, x0
|
1144
|
+
str x2, [sp, #72]
|
1145
|
+
adc x6, x6, x1
|
1146
|
+
eor x1, x7, x16
|
1147
|
+
mul x0, x1, x12
|
1148
|
+
umulh x1, x1, x12
|
1149
|
+
adds x3, x3, x0
|
1150
|
+
adc x4, xzr, x1
|
1151
|
+
eor x1, x8, x17
|
1152
|
+
mul x0, x1, x13
|
1153
|
+
umulh x1, x1, x13
|
1154
|
+
adds x3, x3, x0
|
1155
|
+
str x3, [sp, #104]
|
1156
|
+
adc x4, x4, x1
|
1157
|
+
ldr x7, [sp, #80]
|
1158
|
+
eor x1, x7, x14
|
1159
|
+
mul x0, x1, x10
|
1160
|
+
umulh x1, x1, x10
|
1161
|
+
adds x6, x6, x0
|
1162
|
+
adc x5, xzr, x1
|
1163
|
+
ldr x8, [sp, #112]
|
1164
|
+
eor x1, x8, x15
|
1165
|
+
mul x0, x1, x11
|
1166
|
+
umulh x1, x1, x11
|
1167
|
+
adds x6, x6, x0
|
1168
|
+
str x6, [sp, #80]
|
1169
|
+
adc x5, x5, x1
|
1170
|
+
eor x1, x7, x16
|
1171
|
+
mul x0, x1, x12
|
1172
|
+
umulh x1, x1, x12
|
1173
|
+
adds x4, x4, x0
|
1174
|
+
adc x2, xzr, x1
|
1175
|
+
eor x1, x8, x17
|
1176
|
+
mul x0, x1, x13
|
1177
|
+
umulh x1, x1, x13
|
1178
|
+
adds x4, x4, x0
|
1179
|
+
str x4, [sp, #112]
|
1180
|
+
adc x2, x2, x1
|
1181
|
+
ldr x7, [sp, #88]
|
1182
|
+
eor x1, x7, x14
|
1183
|
+
and x3, x14, x10
|
1184
|
+
neg x3, x3
|
1185
|
+
mul x0, x1, x10
|
1186
|
+
umulh x1, x1, x10
|
1187
|
+
adds x5, x5, x0
|
1188
|
+
adc x3, x3, x1
|
1189
|
+
ldr x8, [sp, #120]
|
1190
|
+
eor x1, x8, x15
|
1191
|
+
and x0, x15, x11
|
1192
|
+
sub x3, x3, x0
|
1193
|
+
mul x0, x1, x11
|
1194
|
+
umulh x1, x1, x11
|
1195
|
+
adds x5, x5, x0
|
1196
|
+
adc x3, x3, x1
|
1197
|
+
extr x6, x3, x5, #63
|
1198
|
+
ldp x0, x1, [sp, #64]
|
1199
|
+
add x6, x6, x3, asr #63
|
1200
|
+
mov x3, #0x13
|
1201
|
+
mul x4, x6, x3
|
1202
|
+
add x5, x5, x6, lsl #63
|
1203
|
+
smulh x3, x6, x3
|
1204
|
+
ldr x6, [sp, #80]
|
1205
|
+
adds x0, x0, x4
|
1206
|
+
adcs x1, x1, x3
|
1207
|
+
asr x3, x3, #63
|
1208
|
+
adcs x6, x6, x3
|
1209
|
+
adc x5, x5, x3
|
1210
|
+
stp x0, x1, [sp, #64]
|
1211
|
+
stp x6, x5, [sp, #80]
|
1212
|
+
eor x1, x7, x16
|
1213
|
+
and x5, x16, x12
|
1214
|
+
neg x5, x5
|
1215
|
+
mul x0, x1, x12
|
1216
|
+
umulh x1, x1, x12
|
1217
|
+
adds x2, x2, x0
|
1218
|
+
adc x5, x5, x1
|
1219
|
+
eor x1, x8, x17
|
1220
|
+
and x0, x17, x13
|
1221
|
+
sub x5, x5, x0
|
1222
|
+
mul x0, x1, x13
|
1223
|
+
umulh x1, x1, x13
|
1224
|
+
adds x2, x2, x0
|
1225
|
+
adc x5, x5, x1
|
1226
|
+
extr x6, x5, x2, #63
|
1227
|
+
ldp x0, x1, [sp, #96]
|
1228
|
+
add x6, x6, x5, asr #63
|
1229
|
+
mov x5, #0x13
|
1230
|
+
mul x4, x6, x5
|
1231
|
+
add x2, x2, x6, lsl #63
|
1232
|
+
smulh x5, x6, x5
|
1233
|
+
ldr x3, [sp, #112]
|
1234
|
+
adds x0, x0, x4
|
1235
|
+
adcs x1, x1, x5
|
1236
|
+
asr x5, x5, #63
|
1237
|
+
adcs x3, x3, x5
|
1238
|
+
adc x2, x2, x5
|
1239
|
+
stp x0, x1, [sp, #96]
|
1240
|
+
stp x3, x2, [sp, #112]
|
1241
|
+
curve25519_x25519base_invmidloop:
|
1242
|
+
mov x1, x22
|
1243
|
+
ldr x2, [sp]
|
1244
|
+
ldr x3, [sp, #32]
|
1245
|
+
and x4, x2, #0xfffff
|
1246
|
+
orr x4, x4, #0xfffffe0000000000
|
1247
|
+
and x5, x3, #0xfffff
|
1248
|
+
orr x5, x5, #0xc000000000000000
|
1249
|
+
tst x5, #0x1
|
1250
|
+
csel x6, x4, xzr, ne
|
1251
|
+
ccmp x1, xzr, #0x8, ne
|
1252
|
+
cneg x1, x1, ge
|
1253
|
+
cneg x6, x6, ge
|
1254
|
+
csel x4, x5, x4, ge
|
1255
|
+
add x5, x5, x6
|
1256
|
+
add x1, x1, #0x2
|
1257
|
+
tst x5, #0x2
|
1258
|
+
asr x5, x5, #1
|
1259
|
+
csel x6, x4, xzr, ne
|
1260
|
+
ccmp x1, xzr, #0x8, ne
|
1261
|
+
cneg x1, x1, ge
|
1262
|
+
cneg x6, x6, ge
|
1263
|
+
csel x4, x5, x4, ge
|
1264
|
+
add x5, x5, x6
|
1265
|
+
add x1, x1, #0x2
|
1266
|
+
tst x5, #0x2
|
1267
|
+
asr x5, x5, #1
|
1268
|
+
csel x6, x4, xzr, ne
|
1269
|
+
ccmp x1, xzr, #0x8, ne
|
1270
|
+
cneg x1, x1, ge
|
1271
|
+
cneg x6, x6, ge
|
1272
|
+
csel x4, x5, x4, ge
|
1273
|
+
add x5, x5, x6
|
1274
|
+
add x1, x1, #0x2
|
1275
|
+
tst x5, #0x2
|
1276
|
+
asr x5, x5, #1
|
1277
|
+
csel x6, x4, xzr, ne
|
1278
|
+
ccmp x1, xzr, #0x8, ne
|
1279
|
+
cneg x1, x1, ge
|
1280
|
+
cneg x6, x6, ge
|
1281
|
+
csel x4, x5, x4, ge
|
1282
|
+
add x5, x5, x6
|
1283
|
+
add x1, x1, #0x2
|
1284
|
+
tst x5, #0x2
|
1285
|
+
asr x5, x5, #1
|
1286
|
+
csel x6, x4, xzr, ne
|
1287
|
+
ccmp x1, xzr, #0x8, ne
|
1288
|
+
cneg x1, x1, ge
|
1289
|
+
cneg x6, x6, ge
|
1290
|
+
csel x4, x5, x4, ge
|
1291
|
+
add x5, x5, x6
|
1292
|
+
add x1, x1, #0x2
|
1293
|
+
tst x5, #0x2
|
1294
|
+
asr x5, x5, #1
|
1295
|
+
csel x6, x4, xzr, ne
|
1296
|
+
ccmp x1, xzr, #0x8, ne
|
1297
|
+
cneg x1, x1, ge
|
1298
|
+
cneg x6, x6, ge
|
1299
|
+
csel x4, x5, x4, ge
|
1300
|
+
add x5, x5, x6
|
1301
|
+
add x1, x1, #0x2
|
1302
|
+
tst x5, #0x2
|
1303
|
+
asr x5, x5, #1
|
1304
|
+
csel x6, x4, xzr, ne
|
1305
|
+
ccmp x1, xzr, #0x8, ne
|
1306
|
+
cneg x1, x1, ge
|
1307
|
+
cneg x6, x6, ge
|
1308
|
+
csel x4, x5, x4, ge
|
1309
|
+
add x5, x5, x6
|
1310
|
+
add x1, x1, #0x2
|
1311
|
+
tst x5, #0x2
|
1312
|
+
asr x5, x5, #1
|
1313
|
+
csel x6, x4, xzr, ne
|
1314
|
+
ccmp x1, xzr, #0x8, ne
|
1315
|
+
cneg x1, x1, ge
|
1316
|
+
cneg x6, x6, ge
|
1317
|
+
csel x4, x5, x4, ge
|
1318
|
+
add x5, x5, x6
|
1319
|
+
add x1, x1, #0x2
|
1320
|
+
tst x5, #0x2
|
1321
|
+
asr x5, x5, #1
|
1322
|
+
csel x6, x4, xzr, ne
|
1323
|
+
ccmp x1, xzr, #0x8, ne
|
1324
|
+
cneg x1, x1, ge
|
1325
|
+
cneg x6, x6, ge
|
1326
|
+
csel x4, x5, x4, ge
|
1327
|
+
add x5, x5, x6
|
1328
|
+
add x1, x1, #0x2
|
1329
|
+
tst x5, #0x2
|
1330
|
+
asr x5, x5, #1
|
1331
|
+
csel x6, x4, xzr, ne
|
1332
|
+
ccmp x1, xzr, #0x8, ne
|
1333
|
+
cneg x1, x1, ge
|
1334
|
+
cneg x6, x6, ge
|
1335
|
+
csel x4, x5, x4, ge
|
1336
|
+
add x5, x5, x6
|
1337
|
+
add x1, x1, #0x2
|
1338
|
+
tst x5, #0x2
|
1339
|
+
asr x5, x5, #1
|
1340
|
+
csel x6, x4, xzr, ne
|
1341
|
+
ccmp x1, xzr, #0x8, ne
|
1342
|
+
cneg x1, x1, ge
|
1343
|
+
cneg x6, x6, ge
|
1344
|
+
csel x4, x5, x4, ge
|
1345
|
+
add x5, x5, x6
|
1346
|
+
add x1, x1, #0x2
|
1347
|
+
tst x5, #0x2
|
1348
|
+
asr x5, x5, #1
|
1349
|
+
csel x6, x4, xzr, ne
|
1350
|
+
ccmp x1, xzr, #0x8, ne
|
1351
|
+
cneg x1, x1, ge
|
1352
|
+
cneg x6, x6, ge
|
1353
|
+
csel x4, x5, x4, ge
|
1354
|
+
add x5, x5, x6
|
1355
|
+
add x1, x1, #0x2
|
1356
|
+
tst x5, #0x2
|
1357
|
+
asr x5, x5, #1
|
1358
|
+
csel x6, x4, xzr, ne
|
1359
|
+
ccmp x1, xzr, #0x8, ne
|
1360
|
+
cneg x1, x1, ge
|
1361
|
+
cneg x6, x6, ge
|
1362
|
+
csel x4, x5, x4, ge
|
1363
|
+
add x5, x5, x6
|
1364
|
+
add x1, x1, #0x2
|
1365
|
+
tst x5, #0x2
|
1366
|
+
asr x5, x5, #1
|
1367
|
+
csel x6, x4, xzr, ne
|
1368
|
+
ccmp x1, xzr, #0x8, ne
|
1369
|
+
cneg x1, x1, ge
|
1370
|
+
cneg x6, x6, ge
|
1371
|
+
csel x4, x5, x4, ge
|
1372
|
+
add x5, x5, x6
|
1373
|
+
add x1, x1, #0x2
|
1374
|
+
tst x5, #0x2
|
1375
|
+
asr x5, x5, #1
|
1376
|
+
csel x6, x4, xzr, ne
|
1377
|
+
ccmp x1, xzr, #0x8, ne
|
1378
|
+
cneg x1, x1, ge
|
1379
|
+
cneg x6, x6, ge
|
1380
|
+
csel x4, x5, x4, ge
|
1381
|
+
add x5, x5, x6
|
1382
|
+
add x1, x1, #0x2
|
1383
|
+
tst x5, #0x2
|
1384
|
+
asr x5, x5, #1
|
1385
|
+
csel x6, x4, xzr, ne
|
1386
|
+
ccmp x1, xzr, #0x8, ne
|
1387
|
+
cneg x1, x1, ge
|
1388
|
+
cneg x6, x6, ge
|
1389
|
+
csel x4, x5, x4, ge
|
1390
|
+
add x5, x5, x6
|
1391
|
+
add x1, x1, #0x2
|
1392
|
+
tst x5, #0x2
|
1393
|
+
asr x5, x5, #1
|
1394
|
+
csel x6, x4, xzr, ne
|
1395
|
+
ccmp x1, xzr, #0x8, ne
|
1396
|
+
cneg x1, x1, ge
|
1397
|
+
cneg x6, x6, ge
|
1398
|
+
csel x4, x5, x4, ge
|
1399
|
+
add x5, x5, x6
|
1400
|
+
add x1, x1, #0x2
|
1401
|
+
tst x5, #0x2
|
1402
|
+
asr x5, x5, #1
|
1403
|
+
csel x6, x4, xzr, ne
|
1404
|
+
ccmp x1, xzr, #0x8, ne
|
1405
|
+
cneg x1, x1, ge
|
1406
|
+
cneg x6, x6, ge
|
1407
|
+
csel x4, x5, x4, ge
|
1408
|
+
add x5, x5, x6
|
1409
|
+
add x1, x1, #0x2
|
1410
|
+
tst x5, #0x2
|
1411
|
+
asr x5, x5, #1
|
1412
|
+
csel x6, x4, xzr, ne
|
1413
|
+
ccmp x1, xzr, #0x8, ne
|
1414
|
+
cneg x1, x1, ge
|
1415
|
+
cneg x6, x6, ge
|
1416
|
+
csel x4, x5, x4, ge
|
1417
|
+
add x5, x5, x6
|
1418
|
+
add x1, x1, #0x2
|
1419
|
+
tst x5, #0x2
|
1420
|
+
asr x5, x5, #1
|
1421
|
+
csel x6, x4, xzr, ne
|
1422
|
+
ccmp x1, xzr, #0x8, ne
|
1423
|
+
cneg x1, x1, ge
|
1424
|
+
cneg x6, x6, ge
|
1425
|
+
csel x4, x5, x4, ge
|
1426
|
+
add x5, x5, x6
|
1427
|
+
add x1, x1, #0x2
|
1428
|
+
asr x5, x5, #1
|
1429
|
+
add x8, x4, #0x100, lsl #12
|
1430
|
+
sbfx x8, x8, #21, #21
|
1431
|
+
mov x11, #0x100000
|
1432
|
+
add x11, x11, x11, lsl #21
|
1433
|
+
add x9, x4, x11
|
1434
|
+
asr x9, x9, #42
|
1435
|
+
add x10, x5, #0x100, lsl #12
|
1436
|
+
sbfx x10, x10, #21, #21
|
1437
|
+
add x11, x5, x11
|
1438
|
+
asr x11, x11, #42
|
1439
|
+
mul x6, x8, x2
|
1440
|
+
mul x7, x9, x3
|
1441
|
+
mul x2, x10, x2
|
1442
|
+
mul x3, x11, x3
|
1443
|
+
add x4, x6, x7
|
1444
|
+
add x5, x2, x3
|
1445
|
+
asr x2, x4, #20
|
1446
|
+
asr x3, x5, #20
|
1447
|
+
and x4, x2, #0xfffff
|
1448
|
+
orr x4, x4, #0xfffffe0000000000
|
1449
|
+
and x5, x3, #0xfffff
|
1450
|
+
orr x5, x5, #0xc000000000000000
|
1451
|
+
tst x5, #0x1
|
1452
|
+
csel x6, x4, xzr, ne
|
1453
|
+
ccmp x1, xzr, #0x8, ne
|
1454
|
+
cneg x1, x1, ge
|
1455
|
+
cneg x6, x6, ge
|
1456
|
+
csel x4, x5, x4, ge
|
1457
|
+
add x5, x5, x6
|
1458
|
+
add x1, x1, #0x2
|
1459
|
+
tst x5, #0x2
|
1460
|
+
asr x5, x5, #1
|
1461
|
+
csel x6, x4, xzr, ne
|
1462
|
+
ccmp x1, xzr, #0x8, ne
|
1463
|
+
cneg x1, x1, ge
|
1464
|
+
cneg x6, x6, ge
|
1465
|
+
csel x4, x5, x4, ge
|
1466
|
+
add x5, x5, x6
|
1467
|
+
add x1, x1, #0x2
|
1468
|
+
tst x5, #0x2
|
1469
|
+
asr x5, x5, #1
|
1470
|
+
csel x6, x4, xzr, ne
|
1471
|
+
ccmp x1, xzr, #0x8, ne
|
1472
|
+
cneg x1, x1, ge
|
1473
|
+
cneg x6, x6, ge
|
1474
|
+
csel x4, x5, x4, ge
|
1475
|
+
add x5, x5, x6
|
1476
|
+
add x1, x1, #0x2
|
1477
|
+
tst x5, #0x2
|
1478
|
+
asr x5, x5, #1
|
1479
|
+
csel x6, x4, xzr, ne
|
1480
|
+
ccmp x1, xzr, #0x8, ne
|
1481
|
+
cneg x1, x1, ge
|
1482
|
+
cneg x6, x6, ge
|
1483
|
+
csel x4, x5, x4, ge
|
1484
|
+
add x5, x5, x6
|
1485
|
+
add x1, x1, #0x2
|
1486
|
+
tst x5, #0x2
|
1487
|
+
asr x5, x5, #1
|
1488
|
+
csel x6, x4, xzr, ne
|
1489
|
+
ccmp x1, xzr, #0x8, ne
|
1490
|
+
cneg x1, x1, ge
|
1491
|
+
cneg x6, x6, ge
|
1492
|
+
csel x4, x5, x4, ge
|
1493
|
+
add x5, x5, x6
|
1494
|
+
add x1, x1, #0x2
|
1495
|
+
tst x5, #0x2
|
1496
|
+
asr x5, x5, #1
|
1497
|
+
csel x6, x4, xzr, ne
|
1498
|
+
ccmp x1, xzr, #0x8, ne
|
1499
|
+
cneg x1, x1, ge
|
1500
|
+
cneg x6, x6, ge
|
1501
|
+
csel x4, x5, x4, ge
|
1502
|
+
add x5, x5, x6
|
1503
|
+
add x1, x1, #0x2
|
1504
|
+
tst x5, #0x2
|
1505
|
+
asr x5, x5, #1
|
1506
|
+
csel x6, x4, xzr, ne
|
1507
|
+
ccmp x1, xzr, #0x8, ne
|
1508
|
+
cneg x1, x1, ge
|
1509
|
+
cneg x6, x6, ge
|
1510
|
+
csel x4, x5, x4, ge
|
1511
|
+
add x5, x5, x6
|
1512
|
+
add x1, x1, #0x2
|
1513
|
+
tst x5, #0x2
|
1514
|
+
asr x5, x5, #1
|
1515
|
+
csel x6, x4, xzr, ne
|
1516
|
+
ccmp x1, xzr, #0x8, ne
|
1517
|
+
cneg x1, x1, ge
|
1518
|
+
cneg x6, x6, ge
|
1519
|
+
csel x4, x5, x4, ge
|
1520
|
+
add x5, x5, x6
|
1521
|
+
add x1, x1, #0x2
|
1522
|
+
tst x5, #0x2
|
1523
|
+
asr x5, x5, #1
|
1524
|
+
csel x6, x4, xzr, ne
|
1525
|
+
ccmp x1, xzr, #0x8, ne
|
1526
|
+
cneg x1, x1, ge
|
1527
|
+
cneg x6, x6, ge
|
1528
|
+
csel x4, x5, x4, ge
|
1529
|
+
add x5, x5, x6
|
1530
|
+
add x1, x1, #0x2
|
1531
|
+
tst x5, #0x2
|
1532
|
+
asr x5, x5, #1
|
1533
|
+
csel x6, x4, xzr, ne
|
1534
|
+
ccmp x1, xzr, #0x8, ne
|
1535
|
+
cneg x1, x1, ge
|
1536
|
+
cneg x6, x6, ge
|
1537
|
+
csel x4, x5, x4, ge
|
1538
|
+
add x5, x5, x6
|
1539
|
+
add x1, x1, #0x2
|
1540
|
+
tst x5, #0x2
|
1541
|
+
asr x5, x5, #1
|
1542
|
+
csel x6, x4, xzr, ne
|
1543
|
+
ccmp x1, xzr, #0x8, ne
|
1544
|
+
cneg x1, x1, ge
|
1545
|
+
cneg x6, x6, ge
|
1546
|
+
csel x4, x5, x4, ge
|
1547
|
+
add x5, x5, x6
|
1548
|
+
add x1, x1, #0x2
|
1549
|
+
tst x5, #0x2
|
1550
|
+
asr x5, x5, #1
|
1551
|
+
csel x6, x4, xzr, ne
|
1552
|
+
ccmp x1, xzr, #0x8, ne
|
1553
|
+
cneg x1, x1, ge
|
1554
|
+
cneg x6, x6, ge
|
1555
|
+
csel x4, x5, x4, ge
|
1556
|
+
add x5, x5, x6
|
1557
|
+
add x1, x1, #0x2
|
1558
|
+
tst x5, #0x2
|
1559
|
+
asr x5, x5, #1
|
1560
|
+
csel x6, x4, xzr, ne
|
1561
|
+
ccmp x1, xzr, #0x8, ne
|
1562
|
+
cneg x1, x1, ge
|
1563
|
+
cneg x6, x6, ge
|
1564
|
+
csel x4, x5, x4, ge
|
1565
|
+
add x5, x5, x6
|
1566
|
+
add x1, x1, #0x2
|
1567
|
+
tst x5, #0x2
|
1568
|
+
asr x5, x5, #1
|
1569
|
+
csel x6, x4, xzr, ne
|
1570
|
+
ccmp x1, xzr, #0x8, ne
|
1571
|
+
cneg x1, x1, ge
|
1572
|
+
cneg x6, x6, ge
|
1573
|
+
csel x4, x5, x4, ge
|
1574
|
+
add x5, x5, x6
|
1575
|
+
add x1, x1, #0x2
|
1576
|
+
tst x5, #0x2
|
1577
|
+
asr x5, x5, #1
|
1578
|
+
csel x6, x4, xzr, ne
|
1579
|
+
ccmp x1, xzr, #0x8, ne
|
1580
|
+
cneg x1, x1, ge
|
1581
|
+
cneg x6, x6, ge
|
1582
|
+
csel x4, x5, x4, ge
|
1583
|
+
add x5, x5, x6
|
1584
|
+
add x1, x1, #0x2
|
1585
|
+
tst x5, #0x2
|
1586
|
+
asr x5, x5, #1
|
1587
|
+
csel x6, x4, xzr, ne
|
1588
|
+
ccmp x1, xzr, #0x8, ne
|
1589
|
+
cneg x1, x1, ge
|
1590
|
+
cneg x6, x6, ge
|
1591
|
+
csel x4, x5, x4, ge
|
1592
|
+
add x5, x5, x6
|
1593
|
+
add x1, x1, #0x2
|
1594
|
+
tst x5, #0x2
|
1595
|
+
asr x5, x5, #1
|
1596
|
+
csel x6, x4, xzr, ne
|
1597
|
+
ccmp x1, xzr, #0x8, ne
|
1598
|
+
cneg x1, x1, ge
|
1599
|
+
cneg x6, x6, ge
|
1600
|
+
csel x4, x5, x4, ge
|
1601
|
+
add x5, x5, x6
|
1602
|
+
add x1, x1, #0x2
|
1603
|
+
tst x5, #0x2
|
1604
|
+
asr x5, x5, #1
|
1605
|
+
csel x6, x4, xzr, ne
|
1606
|
+
ccmp x1, xzr, #0x8, ne
|
1607
|
+
cneg x1, x1, ge
|
1608
|
+
cneg x6, x6, ge
|
1609
|
+
csel x4, x5, x4, ge
|
1610
|
+
add x5, x5, x6
|
1611
|
+
add x1, x1, #0x2
|
1612
|
+
tst x5, #0x2
|
1613
|
+
asr x5, x5, #1
|
1614
|
+
csel x6, x4, xzr, ne
|
1615
|
+
ccmp x1, xzr, #0x8, ne
|
1616
|
+
cneg x1, x1, ge
|
1617
|
+
cneg x6, x6, ge
|
1618
|
+
csel x4, x5, x4, ge
|
1619
|
+
add x5, x5, x6
|
1620
|
+
add x1, x1, #0x2
|
1621
|
+
tst x5, #0x2
|
1622
|
+
asr x5, x5, #1
|
1623
|
+
csel x6, x4, xzr, ne
|
1624
|
+
ccmp x1, xzr, #0x8, ne
|
1625
|
+
cneg x1, x1, ge
|
1626
|
+
cneg x6, x6, ge
|
1627
|
+
csel x4, x5, x4, ge
|
1628
|
+
add x5, x5, x6
|
1629
|
+
add x1, x1, #0x2
|
1630
|
+
asr x5, x5, #1
|
1631
|
+
add x12, x4, #0x100, lsl #12
|
1632
|
+
sbfx x12, x12, #21, #21
|
1633
|
+
mov x15, #0x100000
|
1634
|
+
add x15, x15, x15, lsl #21
|
1635
|
+
add x13, x4, x15
|
1636
|
+
asr x13, x13, #42
|
1637
|
+
add x14, x5, #0x100, lsl #12
|
1638
|
+
sbfx x14, x14, #21, #21
|
1639
|
+
add x15, x5, x15
|
1640
|
+
asr x15, x15, #42
|
1641
|
+
mul x6, x12, x2
|
1642
|
+
mul x7, x13, x3
|
1643
|
+
mul x2, x14, x2
|
1644
|
+
mul x3, x15, x3
|
1645
|
+
add x4, x6, x7
|
1646
|
+
add x5, x2, x3
|
1647
|
+
asr x2, x4, #20
|
1648
|
+
asr x3, x5, #20
|
1649
|
+
and x4, x2, #0xfffff
|
1650
|
+
orr x4, x4, #0xfffffe0000000000
|
1651
|
+
and x5, x3, #0xfffff
|
1652
|
+
orr x5, x5, #0xc000000000000000
|
1653
|
+
tst x5, #0x1
|
1654
|
+
csel x6, x4, xzr, ne
|
1655
|
+
ccmp x1, xzr, #0x8, ne
|
1656
|
+
cneg x1, x1, ge
|
1657
|
+
cneg x6, x6, ge
|
1658
|
+
csel x4, x5, x4, ge
|
1659
|
+
add x5, x5, x6
|
1660
|
+
add x1, x1, #0x2
|
1661
|
+
tst x5, #0x2
|
1662
|
+
asr x5, x5, #1
|
1663
|
+
csel x6, x4, xzr, ne
|
1664
|
+
ccmp x1, xzr, #0x8, ne
|
1665
|
+
cneg x1, x1, ge
|
1666
|
+
cneg x6, x6, ge
|
1667
|
+
csel x4, x5, x4, ge
|
1668
|
+
add x5, x5, x6
|
1669
|
+
add x1, x1, #0x2
|
1670
|
+
tst x5, #0x2
|
1671
|
+
asr x5, x5, #1
|
1672
|
+
csel x6, x4, xzr, ne
|
1673
|
+
ccmp x1, xzr, #0x8, ne
|
1674
|
+
cneg x1, x1, ge
|
1675
|
+
cneg x6, x6, ge
|
1676
|
+
csel x4, x5, x4, ge
|
1677
|
+
add x5, x5, x6
|
1678
|
+
add x1, x1, #0x2
|
1679
|
+
tst x5, #0x2
|
1680
|
+
asr x5, x5, #1
|
1681
|
+
csel x6, x4, xzr, ne
|
1682
|
+
ccmp x1, xzr, #0x8, ne
|
1683
|
+
cneg x1, x1, ge
|
1684
|
+
cneg x6, x6, ge
|
1685
|
+
csel x4, x5, x4, ge
|
1686
|
+
add x5, x5, x6
|
1687
|
+
add x1, x1, #0x2
|
1688
|
+
tst x5, #0x2
|
1689
|
+
asr x5, x5, #1
|
1690
|
+
csel x6, x4, xzr, ne
|
1691
|
+
ccmp x1, xzr, #0x8, ne
|
1692
|
+
cneg x1, x1, ge
|
1693
|
+
cneg x6, x6, ge
|
1694
|
+
csel x4, x5, x4, ge
|
1695
|
+
add x5, x5, x6
|
1696
|
+
add x1, x1, #0x2
|
1697
|
+
tst x5, #0x2
|
1698
|
+
asr x5, x5, #1
|
1699
|
+
csel x6, x4, xzr, ne
|
1700
|
+
ccmp x1, xzr, #0x8, ne
|
1701
|
+
cneg x1, x1, ge
|
1702
|
+
cneg x6, x6, ge
|
1703
|
+
csel x4, x5, x4, ge
|
1704
|
+
add x5, x5, x6
|
1705
|
+
add x1, x1, #0x2
|
1706
|
+
tst x5, #0x2
|
1707
|
+
asr x5, x5, #1
|
1708
|
+
csel x6, x4, xzr, ne
|
1709
|
+
ccmp x1, xzr, #0x8, ne
|
1710
|
+
cneg x1, x1, ge
|
1711
|
+
cneg x6, x6, ge
|
1712
|
+
csel x4, x5, x4, ge
|
1713
|
+
add x5, x5, x6
|
1714
|
+
add x1, x1, #0x2
|
1715
|
+
tst x5, #0x2
|
1716
|
+
asr x5, x5, #1
|
1717
|
+
csel x6, x4, xzr, ne
|
1718
|
+
ccmp x1, xzr, #0x8, ne
|
1719
|
+
cneg x1, x1, ge
|
1720
|
+
cneg x6, x6, ge
|
1721
|
+
csel x4, x5, x4, ge
|
1722
|
+
add x5, x5, x6
|
1723
|
+
add x1, x1, #0x2
|
1724
|
+
tst x5, #0x2
|
1725
|
+
asr x5, x5, #1
|
1726
|
+
csel x6, x4, xzr, ne
|
1727
|
+
ccmp x1, xzr, #0x8, ne
|
1728
|
+
cneg x1, x1, ge
|
1729
|
+
cneg x6, x6, ge
|
1730
|
+
csel x4, x5, x4, ge
|
1731
|
+
add x5, x5, x6
|
1732
|
+
add x1, x1, #0x2
|
1733
|
+
tst x5, #0x2
|
1734
|
+
asr x5, x5, #1
|
1735
|
+
csel x6, x4, xzr, ne
|
1736
|
+
ccmp x1, xzr, #0x8, ne
|
1737
|
+
cneg x1, x1, ge
|
1738
|
+
cneg x6, x6, ge
|
1739
|
+
csel x4, x5, x4, ge
|
1740
|
+
add x5, x5, x6
|
1741
|
+
add x1, x1, #0x2
|
1742
|
+
tst x5, #0x2
|
1743
|
+
asr x5, x5, #1
|
1744
|
+
mul x2, x12, x8
|
1745
|
+
mul x3, x12, x9
|
1746
|
+
mul x6, x14, x8
|
1747
|
+
mul x7, x14, x9
|
1748
|
+
madd x8, x13, x10, x2
|
1749
|
+
madd x9, x13, x11, x3
|
1750
|
+
madd x16, x15, x10, x6
|
1751
|
+
madd x17, x15, x11, x7
|
1752
|
+
csel x6, x4, xzr, ne
|
1753
|
+
ccmp x1, xzr, #0x8, ne
|
1754
|
+
cneg x1, x1, ge
|
1755
|
+
cneg x6, x6, ge
|
1756
|
+
csel x4, x5, x4, ge
|
1757
|
+
add x5, x5, x6
|
1758
|
+
add x1, x1, #0x2
|
1759
|
+
tst x5, #0x2
|
1760
|
+
asr x5, x5, #1
|
1761
|
+
csel x6, x4, xzr, ne
|
1762
|
+
ccmp x1, xzr, #0x8, ne
|
1763
|
+
cneg x1, x1, ge
|
1764
|
+
cneg x6, x6, ge
|
1765
|
+
csel x4, x5, x4, ge
|
1766
|
+
add x5, x5, x6
|
1767
|
+
add x1, x1, #0x2
|
1768
|
+
tst x5, #0x2
|
1769
|
+
asr x5, x5, #1
|
1770
|
+
csel x6, x4, xzr, ne
|
1771
|
+
ccmp x1, xzr, #0x8, ne
|
1772
|
+
cneg x1, x1, ge
|
1773
|
+
cneg x6, x6, ge
|
1774
|
+
csel x4, x5, x4, ge
|
1775
|
+
add x5, x5, x6
|
1776
|
+
add x1, x1, #0x2
|
1777
|
+
tst x5, #0x2
|
1778
|
+
asr x5, x5, #1
|
1779
|
+
csel x6, x4, xzr, ne
|
1780
|
+
ccmp x1, xzr, #0x8, ne
|
1781
|
+
cneg x1, x1, ge
|
1782
|
+
cneg x6, x6, ge
|
1783
|
+
csel x4, x5, x4, ge
|
1784
|
+
add x5, x5, x6
|
1785
|
+
add x1, x1, #0x2
|
1786
|
+
tst x5, #0x2
|
1787
|
+
asr x5, x5, #1
|
1788
|
+
csel x6, x4, xzr, ne
|
1789
|
+
ccmp x1, xzr, #0x8, ne
|
1790
|
+
cneg x1, x1, ge
|
1791
|
+
cneg x6, x6, ge
|
1792
|
+
csel x4, x5, x4, ge
|
1793
|
+
add x5, x5, x6
|
1794
|
+
add x1, x1, #0x2
|
1795
|
+
tst x5, #0x2
|
1796
|
+
asr x5, x5, #1
|
1797
|
+
csel x6, x4, xzr, ne
|
1798
|
+
ccmp x1, xzr, #0x8, ne
|
1799
|
+
cneg x1, x1, ge
|
1800
|
+
cneg x6, x6, ge
|
1801
|
+
csel x4, x5, x4, ge
|
1802
|
+
add x5, x5, x6
|
1803
|
+
add x1, x1, #0x2
|
1804
|
+
tst x5, #0x2
|
1805
|
+
asr x5, x5, #1
|
1806
|
+
csel x6, x4, xzr, ne
|
1807
|
+
ccmp x1, xzr, #0x8, ne
|
1808
|
+
cneg x1, x1, ge
|
1809
|
+
cneg x6, x6, ge
|
1810
|
+
csel x4, x5, x4, ge
|
1811
|
+
add x5, x5, x6
|
1812
|
+
add x1, x1, #0x2
|
1813
|
+
tst x5, #0x2
|
1814
|
+
asr x5, x5, #1
|
1815
|
+
csel x6, x4, xzr, ne
|
1816
|
+
ccmp x1, xzr, #0x8, ne
|
1817
|
+
cneg x1, x1, ge
|
1818
|
+
cneg x6, x6, ge
|
1819
|
+
csel x4, x5, x4, ge
|
1820
|
+
add x5, x5, x6
|
1821
|
+
add x1, x1, #0x2
|
1822
|
+
tst x5, #0x2
|
1823
|
+
asr x5, x5, #1
|
1824
|
+
csel x6, x4, xzr, ne
|
1825
|
+
ccmp x1, xzr, #0x8, ne
|
1826
|
+
cneg x1, x1, ge
|
1827
|
+
cneg x6, x6, ge
|
1828
|
+
csel x4, x5, x4, ge
|
1829
|
+
add x5, x5, x6
|
1830
|
+
add x1, x1, #0x2
|
1831
|
+
asr x5, x5, #1
|
1832
|
+
add x12, x4, #0x100, lsl #12
|
1833
|
+
sbfx x12, x12, #22, #21
|
1834
|
+
mov x15, #0x100000
|
1835
|
+
add x15, x15, x15, lsl #21
|
1836
|
+
add x13, x4, x15
|
1837
|
+
asr x13, x13, #43
|
1838
|
+
add x14, x5, #0x100, lsl #12
|
1839
|
+
sbfx x14, x14, #22, #21
|
1840
|
+
add x15, x5, x15
|
1841
|
+
asr x15, x15, #43
|
1842
|
+
mneg x2, x12, x8
|
1843
|
+
mneg x3, x12, x9
|
1844
|
+
mneg x4, x14, x8
|
1845
|
+
mneg x5, x14, x9
|
1846
|
+
msub x10, x13, x16, x2
|
1847
|
+
msub x11, x13, x17, x3
|
1848
|
+
msub x12, x15, x16, x4
|
1849
|
+
msub x13, x15, x17, x5
|
1850
|
+
mov x22, x1
|
1851
|
+
subs x21, x21, #0x1
|
1852
|
+
b.ne curve25519_x25519base_invloop
|
1853
|
+
ldr x0, [sp]
|
1854
|
+
ldr x1, [sp, #32]
|
1855
|
+
mul x0, x0, x10
|
1856
|
+
madd x1, x1, x11, x0
|
1857
|
+
asr x0, x1, #63
|
1858
|
+
cmp x10, xzr
|
1859
|
+
csetm x14, mi
|
1860
|
+
cneg x10, x10, mi
|
1861
|
+
eor x14, x14, x0
|
1862
|
+
cmp x11, xzr
|
1863
|
+
csetm x15, mi
|
1864
|
+
cneg x11, x11, mi
|
1865
|
+
eor x15, x15, x0
|
1866
|
+
cmp x12, xzr
|
1867
|
+
csetm x16, mi
|
1868
|
+
cneg x12, x12, mi
|
1869
|
+
eor x16, x16, x0
|
1870
|
+
cmp x13, xzr
|
1871
|
+
csetm x17, mi
|
1872
|
+
cneg x13, x13, mi
|
1873
|
+
eor x17, x17, x0
|
1874
|
+
and x0, x10, x14
|
1875
|
+
and x1, x11, x15
|
1876
|
+
add x9, x0, x1
|
1877
|
+
ldr x7, [sp, #64]
|
1878
|
+
eor x1, x7, x14
|
1879
|
+
mul x0, x1, x10
|
1880
|
+
umulh x1, x1, x10
|
1881
|
+
adds x4, x9, x0
|
1882
|
+
adc x2, xzr, x1
|
1883
|
+
ldr x8, [sp, #96]
|
1884
|
+
eor x1, x8, x15
|
1885
|
+
mul x0, x1, x11
|
1886
|
+
umulh x1, x1, x11
|
1887
|
+
adds x4, x4, x0
|
1888
|
+
str x4, [sp, #64]
|
1889
|
+
adc x2, x2, x1
|
1890
|
+
ldr x7, [sp, #72]
|
1891
|
+
eor x1, x7, x14
|
1892
|
+
mul x0, x1, x10
|
1893
|
+
umulh x1, x1, x10
|
1894
|
+
adds x2, x2, x0
|
1895
|
+
adc x6, xzr, x1
|
1896
|
+
ldr x8, [sp, #104]
|
1897
|
+
eor x1, x8, x15
|
1898
|
+
mul x0, x1, x11
|
1899
|
+
umulh x1, x1, x11
|
1900
|
+
adds x2, x2, x0
|
1901
|
+
str x2, [sp, #72]
|
1902
|
+
adc x6, x6, x1
|
1903
|
+
ldr x7, [sp, #80]
|
1904
|
+
eor x1, x7, x14
|
1905
|
+
mul x0, x1, x10
|
1906
|
+
umulh x1, x1, x10
|
1907
|
+
adds x6, x6, x0
|
1908
|
+
adc x5, xzr, x1
|
1909
|
+
ldr x8, [sp, #112]
|
1910
|
+
eor x1, x8, x15
|
1911
|
+
mul x0, x1, x11
|
1912
|
+
umulh x1, x1, x11
|
1913
|
+
adds x6, x6, x0
|
1914
|
+
str x6, [sp, #80]
|
1915
|
+
adc x5, x5, x1
|
1916
|
+
ldr x7, [sp, #88]
|
1917
|
+
eor x1, x7, x14
|
1918
|
+
and x3, x14, x10
|
1919
|
+
neg x3, x3
|
1920
|
+
mul x0, x1, x10
|
1921
|
+
umulh x1, x1, x10
|
1922
|
+
adds x5, x5, x0
|
1923
|
+
adc x3, x3, x1
|
1924
|
+
ldr x8, [sp, #120]
|
1925
|
+
eor x1, x8, x15
|
1926
|
+
and x0, x15, x11
|
1927
|
+
sub x3, x3, x0
|
1928
|
+
mul x0, x1, x11
|
1929
|
+
umulh x1, x1, x11
|
1930
|
+
adds x5, x5, x0
|
1931
|
+
adc x3, x3, x1
|
1932
|
+
extr x6, x3, x5, #63
|
1933
|
+
ldp x0, x1, [sp, #64]
|
1934
|
+
tst x3, x3
|
1935
|
+
cinc x6, x6, pl
|
1936
|
+
mov x3, #0x13
|
1937
|
+
mul x4, x6, x3
|
1938
|
+
add x5, x5, x6, lsl #63
|
1939
|
+
smulh x6, x6, x3
|
1940
|
+
ldr x2, [sp, #80]
|
1941
|
+
adds x0, x0, x4
|
1942
|
+
adcs x1, x1, x6
|
1943
|
+
asr x6, x6, #63
|
1944
|
+
adcs x2, x2, x6
|
1945
|
+
adcs x5, x5, x6
|
1946
|
+
csel x3, x3, xzr, mi
|
1947
|
+
subs x0, x0, x3
|
1948
|
+
sbcs x1, x1, xzr
|
1949
|
+
sbcs x2, x2, xzr
|
1950
|
+
sbc x5, x5, xzr
|
1951
|
+
and x5, x5, #0x7fffffffffffffff
|
1952
|
+
mov x4, x20
|
1953
|
+
stp x0, x1, [x4]
|
1954
|
+
stp x2, x5, [x4, #16]
|
1257
1955
|
|
1258
1956
|
// The final result is (X + T) / (X - T)
|
1259
1957
|
// This is the only operation in the whole computation that
|
1260
1958
|
// fully reduces modulo p_25519 since now we want the canonical
|
1261
1959
|
// answer as output.
|
1262
1960
|
|
1263
|
-
mul_p25519(resx,
|
1961
|
+
mul_p25519(resx,t1,t0)
|
1264
1962
|
|
1265
1963
|
// Restore stack and registers
|
1266
1964
|
|
@@ -1279,14 +1977,6 @@ curve25519_x25519base_zfliploop:
|
|
1279
1977
|
// .section .rodata
|
1280
1978
|
// ****************************************************************************
|
1281
1979
|
|
1282
|
-
// The modulus p_25519 = 2^255 - 19, for the modular inverse
|
1283
|
-
|
1284
|
-
curve25519_x25519base_p_25519:
|
1285
|
-
.quad 0xffffffffffffffed
|
1286
|
-
.quad 0xffffffffffffffff
|
1287
|
-
.quad 0xffffffffffffffff
|
1288
|
-
.quad 0x7fffffffffffffff
|
1289
|
-
|
1290
1980
|
// 2^254 * G and (2^254 + 8) * G in extended-projective coordinates
|
1291
1981
|
// but with Z = 1 assumed and hence left out, so they are (X,Y,T) only.
|
1292
1982
|
|