-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Base64url encoding/decoding (#102364)
* Base64Url encoding, validation impelementation * Validation related updates * Try fix perf regression in vectorized methods * Add decoder implementation and unit tests * Share code in place decoding code * Add span<char> oveloads with vectorization * Generalize Span char/byte implementations * Move ref update to runtime and other cleanup * Generalize the AdvSimd.Arm64 vectorization added recently * Apply suggestions from code review Co-authored-by: Günther Foidl <[email protected]> * Apply some feedback * Try fix ARM failure * Use array pool whenever applicable * Handle '%' as url padding, add more tests and fix findings * Fix assertion failure, apply some feedback, try fix ARM failure * Update docs, small clean ups * Try fix ARM failure * Update src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Base64Url/Base64UrlEncoder.cs Co-authored-by: Günther Foidl <[email protected]> * Rename StoreToDetionation overloads, reuse some duplicate code * Improve perf for Base.IsValid() oveerloads, exclude ARM vectorization for char(ushort) overload * Apply feedbacks * Revert Assert * Fix ARM vectorization failure for char overload * Apply suggestions from code review Co-authored-by: Jeremy Barton <[email protected]> * Apply suggestions from code review Co-authored-by: Günther Foidl <[email protected]> * Apply more feedback * Apply suggestions from code review Co-authored-by: Günther Foidl <[email protected]> * Apply review comment left overs * Apply suggestions from code review Co-authored-by: Miha Zupan <[email protected]> * Apply remaining feedback * Apply suggestions from code review Co-authored-by: Jeremy Barton <[email protected]> * Apply the doc feedback for other API docs * Fix Base64Url fuzzer findings * Apply suggestions from code review Co-authored-by: Jeremy Barton <[email protected]> * Rename utf8 -> source/destintion * Apply feedbacks * Apply feedback * Apply left out feedbacks --------- Co-authored-by: Günther Foidl <[email protected]> Co-authored-by: Jeremy Barton <[email protected]> Co-authored-by: Miha Zupan <[email protected]>
- Loading branch information
1 parent
39c4905
commit 48c8805
Showing
19 changed files
with
4,443 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.