* Change the default Nullable to enabled for src projects
* Set Nullable=enable as the default for ref projects
* Fixup merge conflicts
* Disable nullable on shim projects and EventLog.Messages
* Set Nullable to blank on EventLog.Messages
This way no CodeAnalysis attributes are emitted into the assembly.
* Remove usage of !! from dotnet/runtime
- Use ArgumentNullException.ThrowIfNull instead where possible. It's only usable for projects that only target .NET 6+, and it can't be used in places like this(...) or base(...).
- In other cases, if the project already has a ThrowHelper, augment it for null as needed and use that.
- For most of the extensions projects, add a ThrowHelper.ThrowIfNull that replicates ArgumentNullException.ThrowIfNull.
- For everything else, just use "throw new".
* Address PR feedback
* Address PR feedback
* Remove false positives from searches
* Address PR feedback
* Use ROS<byte> instead of byte[] on S.S.C.Cose
* Add TrySign and improve Sign implementation to use less byte[]
* Add TrySign tests
* Address using scope feedback
* Address src feedback
* Refactor tests to avoid duplicated ones
* Remove invalid asserts in Crypto code
* Fix 'new()' without the type on the left-hand side
* Fix ThreadStatic issues in tests
* * Don't use ArrayPool in SignCore
* Add comment describing reusability of encoded protected headers
* Cache toBeSigned
* Don't cache toBeSigned for detached content
* Address nits in tests
* Update coding-style to include target-typed new guideline
Similar to `var` usage, `new()` usage is only allowed when the Type can be understood from the same line.
Fix#53369
* Fix coding style violations
* Fix slngen.proj
The SolutionName property is defined by the SDK and hence the condition was always true. Also the star (*) didn't expand when using the ValurOrDefault msbuild function. Fixing this by using a different name `SolutionNameOverride` and avoiding the ValueOrDefault msbuild function.
* Update solution files
Updating the solution files as those changed because of
microsoft/slngen@cb57e28 and apparently the solution files never were
updated.
* Add S.S.C.Cose
* Override Equals in CoseHeaderLabel
* Add SystemFormatsCborVersion to eng/Versions.props
* Address PR feedback
* Remove commented Debugger.Launch from test
* Src:
* Support signing with empty header maps
* Add HashAlgorithmName argument to the granular APIs
Tests:
* Make crypto keys ThreadStatic to avoid race conditions
* Exclude CoseMessage and CoseSign1Message from browser
* Define DefaultKey and DefaultHash to simplify tests
* Overall clean-up
* Use explicit type instead of var
* Tests: Add logic to verify expected headers
* Do not mutate the protectected map when alg header was not specified
* src: Address suggestions
* tests:
* Fix ThreadStatic properties
* Switch from SkipOnPlatformAttribute to IgnoreForCI in csproj
* src: Address style suggestions
* Use ProjectRef instead of PackageRef
* RequiresPreviewFeaturesAttribute must be internal in non-netcoreapp
* Address feedback on CoseHeaderLabel
* src: use RequiresPreviewFeatures as assembly level attribute
tests: add test project to exclusion list of local browser runs