Brian Smith
78b0af8531
Take BoringSSL 'a43c76d': Work around nasm bug with empty assembly files
2023-09-27 22:48:05 -07:00
Brian Smith
6452e740f6
Ignore BoringSSL '70690f7'..'4a264b2'.
2023-09-27 22:47:33 -07:00
Brian Smith
f1668276c8
Merge BoringSSL '0d5b608': Maintain a frame pointer in aesni-gcm-x86_64.pl and add SEH unwind codes
2023-09-27 22:46:28 -07:00
Brian Smith
70bdc19072
Ignore BoringSSL '1c9d183'.
2023-09-27 22:44:13 -07:00
Brian Smith
2653466c80
Take BoringSSL 'ae1546b': Convert ghash-x86_64.pl to new directives.
2023-09-27 22:43:45 -07:00
Brian Smith
2eccbdf001
Merge BoringSSL 'c556ee9': Add initial support for SEH directives in x86_64 perlasm.
2023-09-27 22:43:26 -07:00
Brian Smith
9a762139a5
Ignore BoringSSL '45b8d7b'..'ba68ca0'.
2023-09-27 22:42:21 -07:00
Brian Smith
29ae0f1806
Merge BoringSSL 'aa18fe2': Indent DB lines in x86_64 NASM output.
2023-09-27 22:41:37 -07:00
Brian Smith
aeee2d5823
Ignore BoringSSL 'fc07738'..'114fa72'.
2023-09-27 22:41:00 -07:00
Brian Smith
b0afb00eb8
Partial merge of BoringSSL 'c6e3780': Add optimised Aarch64 GCM.
...
Bring in the new assembly language code but do not start using it yet.
The changes to enable it will be done later.
2023-09-27 22:40:18 -07:00
Brian Smith
35e1748119
Ignore BoringSSL '5f6d57a'..'1f2529d'.
2023-09-27 21:23:28 -07:00
Brian Smith
a6ff12be89
Take BoringSSL '90e3b6e': Add prefetch to aesni_ctr32_ghash_6x.
2023-09-27 21:17:23 -07:00
Brian Smith
dc3bdd8c34
Ignore BoringSSL 'c3197fc'..'837ade7'.
2023-09-27 21:16:50 -07:00
Brian Smith
c82566dea0
Merge BoringSSL 'cdccbe1': Fully condition all assembly files.
2023-09-27 21:15:24 -07:00
Brian Smith
21289d3dcd
Ignore BoringSSL 'e0d601a'..'7cb90e0'
2023-09-27 21:04:15 -07:00
Brian Smith
4c6fe71650
No-op merge of BoringSSL 'db10ae5': Cap Montgomery moduli to 8 KiB.
...
This is the same limit we already implement.
2023-09-27 21:02:10 -07:00
Alexis (Poliorcetics) Bourget
7bbc307f57
deps: Move from winapi
to windows-sys
...
`winapi` is in maintenance mode and the new blessed way to access Windows APIs are the `windows`
and `windows-sys` crates. I don't think any types of `winapi` were exposed in the public API so
I used `windows-sys` since it has much faster compile times.
2023-09-26 19:40:45 -07:00
Brian Smith
cfbd46b774
32-bit ARM AES-GCM: Fix use of BSAES.
...
The slice indexing was wrong. CI did not catch this because it only
uses the implementations that the feature detection logic chooses,
and in CI it uses the emulator that always chooses the hardware AES
implementation.
The consequence is that on 32-bit ARM targets with NEON but without
hardware AES, the encryption/decryption is done incorrectly.
The change that introduced this problem was
74aa79b650f8a1f751993a56046ca43166ae9934. I checked (and tested) the
latest release (0.16.20) to verify that it is correct. So this only
affects 0.17, which wasn't been released yet.
The fix mirrors what we were doing before in 0.16.20.
2023-09-26 19:39:52 -07:00
Brian Smith
38409e109b
NFC: Minimize visibility of aes::Key
.
2023-09-26 19:39:52 -07:00
Brian Smith
8020c1b634
Tests: Move bigint
tests to where BoringSSL puts them.
...
BoringSSL split up there bn_tests.txt into multiple files, which we had
done previously. Prepare to merge that BoringSSL change by putting the
test input files in the same places.
2023-09-26 19:39:52 -07:00
Bob Beck
d24a38200f
Sync pki to chromium eddbcb143c7462e0b8d60e859b96d678ca0c013c
...
This removes one more patch, and adapts import to deal with gmock from chrome
which is now included in boring.
Bug: chromium:1322914
Change-Id: I2a5957f741252941fea76205a21e98fd655f8cae
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/63225
Commit-Queue: Adam Langley <agl@google.com>
Auto-Submit: Bob Beck <bbe@google.com>
Reviewed-by: Adam Langley <agl@google.com>
2023-09-27 02:13:00 +00:00
Brian Smith
f9378e8ed5
NFC: Move low-level Montgomery arithmetic out of bigint
.
...
When the `alloc` feature is disabled, on lesser-used targets we don't
build `bigint` but we still need some of the Montgomery arithmetic.
```
git diff \
HEAD^1:src/arithmetic/bigint/bn_mul_mont_fallback.rs \
src/arithmetic/montgomery.rs
```
```
git diff \
HEAD^1:src/arithmetic/bigint.rs \
src/arithmetic/montgomery.rs
```
2023-09-26 17:45:59 -07:00
David Benjamin
764e6a319b
Stop rewriting ret to repz ret on x86_64
...
This is an old workaround from the AMD K8 days. GCC stopped doing it for
their generic output in 2017.
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=4ca47ced33cc0d6f9e336930d628a6fdbf22f6e2
b/65150507#comment2 says LLVM has never done it.
We can retire this now and recover a small handful of bytes.
Change-Id: I37ef47038b6b3a1a7500bcea8cbd1beefc83121c
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/63205
Auto-Submit: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
2023-09-26 19:51:28 +00:00
Brian Smith
b04bed15be
Merge pull request #1651 from briansmith/b/merge-boringssl-11
...
Merge BoringSSL through 27e45c43420125ed293d4646ddf8ff2c321f01b9
2023-09-26 08:39:48 -07:00
Alice Wang
cfcb954901
Make bssl-crypto no_std compatible
...
Bug: 649
Change-Id: Ib47e843496e58a5cdb3cd04b3929e0a08ba09744
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/63145
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
2023-09-25 18:20:34 +00:00
Brian Smith
0ae93f0b15
No-op merge of BoringSSL '27e45c4'.
2023-09-24 16:01:45 -07:00
Brian Smith
62655ad141
Merge BoringSSL '7ab49bf': Fix comments now BN_mod_exp_mont_consttime is not cache-line-sensitive.
2023-09-24 16:01:13 -07:00
Brian Smith
4a8ea2a832
Skip BoringSSL 'a880d2a'.
2023-09-24 15:53:00 -07:00
Brian Smith
9e93637357
Merge BoringSSL 'e0bb21b': Update x86_64-mont5.pl and RSAZ comments a bit.
2023-09-24 15:49:52 -07:00
Brian Smith
6c90cce7b8
Ignore BoringSSL 'a1dffbf'..'e5c86b7'.
2023-09-24 15:46:46 -07:00
Brian Smith
6678808009
Merge BoringSSL '7ac94aa': More -Wshorten-64-to-32 fixes.
2023-09-24 15:43:35 -07:00
Brian Smith
ba1c0f5934
Ignore BoringSSL '41eb357'..'dd81bf7'.
2023-09-24 15:42:15 -07:00
Brian Smith
20b1810a3b
Merge BoringSSL '0faffc7': Fix the comment in ecp_nistz256_ord_sqr_mont to match code and prototype.
2023-09-24 15:40:07 -07:00
Brian Smith
6874e555a5
Ignore BoringSSL '361e3e0'..'6b785f6'.
2023-09-24 15:36:50 -07:00
Brian Smith
00401a0afe
Skip BoringSSL '91e0b11'.
2023-09-24 15:33:18 -07:00
Brian Smith
97a526c010
Merge BoringSSL '1b2b7b2': Various -Wshorten-64-to-32 fixes.
2023-09-24 15:31:41 -07:00
Brian Smith
b08f7da343
Ignore BoringSSL 'fd52296'..'bbd9f18'
2023-09-24 15:27:42 -07:00
Brian Smith
75d34bc1a8
Merge BoringSSL 7b2795a: Replace even more ad-hoc bytes/integer conversions.
2023-09-24 15:26:51 -07:00
Brian Smith
946731e6d0
Ignore BoringSSL 'f4cdf91..9f426b6'.
2023-09-24 15:05:18 -07:00
Brian Smith
7e7d44c0ec
No=op merge of BoringSSL '5c2ef10'.
2023-09-24 15:00:04 -07:00
Brian Smith
6afe1dd20a
Ignore BoringSSL 28883d4..2cc2aa9.
2023-09-24 14:54:18 -07:00
Brian Smith
ad59665506
Merge pull request #1650 from briansmith/b/merge-boringssl-10
...
Merge BoringSSL through 4d7b383e989eff619a60eb1da1b18f613af65daf
2023-09-23 20:28:49 -07:00
Brian Smith
65fb8b80f9
Ignore BoringSSL 'fdeb4aa..4d7b383'.
2023-09-23 15:50:16 -07:00
Brian Smith
5233928eb9
Take BoringSSL '0378578': Dedup a few more load/store implementations.
2023-09-23 15:48:18 -07:00
Brian Smith
6ccdf7bd12
Merge BoringSSL '6c2af68': Remove a few more unions.
2023-09-23 15:12:24 -07:00
David Benjamin
584f1e1016
Cherry-pick BoringSSL ca45987: Move load/store helpers to crypto/internal.h.
...
These are needed for the next merge from BoringSSL.
2023-09-23 15:03:59 -07:00
Brian Smith
6e9f1b7d8a
Merge pull request #1648 from briansmith/b/merge-boringssl-9
...
Merge BoringSSL through 0f2c55cb748651833af247bbed43e.
2023-09-21 09:54:42 -07:00
printfn
20ba41d67e
Fix broken URL in PKCS#8 docs
2023-09-19 10:19:14 -07:00
Brian Smith
c9fd0ba48f
NFC: Remove unneeded #cfg(...)
in digest_tests.rs
...
The code is always enabled since "wasm32" was spelled wrongly. Apparently
the wasm-bindgen compatibility issue is no longer an issue.
2023-09-19 10:16:01 -07:00
Nikolay Arhipov
4983338b68
PS Vita support
2023-09-19 08:35:58 -07:00