You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Repository navigation
Commit dc680d0
Browse filesBrowse the repository at this point in the historyBrowse files
[Java.Interop.Tools.JavaCallableWrappers] remove all usage of MD5 (#510)
Context: dotnet/android#3844
Context: dotnet/android@88a1d6c
Entirely remove support for MD5 output, so that we can reliably use
Xamarin.Android on machines with FIPS enalbed.
This adds `[Obsolete (..., error:true)]` to:
* `PackageNamingPolicy.LowercaseHash`
* `PackageNamingPolicy.LowercaseMD5`
If these values are encountered at runtime a `NotSupportedException`
will be thrown.
Most of the remaining changes were updates to tests. Upstream in
xamarin/xamarin-android, we will likely need to emit a new build
error with an error code.
Other changes:
* I removed a place `BaseGeneratorTest.cs` was using `MD5.Create()`.
* This exposed a place we need to reset the initial state of `Crc64`
when an instance is reused for hashing.
Copy file name to clipboardExpand all lines: src/Java.Interop.Tools.JavaCallableWrappers/Test/Java.Interop.Tools.JavaCallableWrappers/JavaCallableWrapperGeneratorTests.cs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ public void GenerateIndirectApplication (
Copy file name to clipboardExpand all lines: src/Java.Interop.Tools.JavaCallableWrappers/Test/Java.Interop.Tools.JavaCallableWrappers/JavaNativeTypeManagerTests.cs
Copy file name to clipboardExpand all lines: src/Java.Interop.Tools.JavaCallableWrappers/Test/Java.Interop.Tools.JavaCallableWrappers/TypeNameMapGeneratorTests.cs
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
usingSystem;
1
+
usingSystem;
2
2
usingSystem.Collections.Generic;
3
3
usingSystem.Diagnostics;
4
4
usingSystem.IO;
@@ -50,22 +50,22 @@ public void WriteJavaToManaged ()
0 commit comments