Skip to content

Commit fa5175f

Browse files
EgorBojkotas
andauthored
Update src/libraries/Common/src/Interop/Android/System.Security.Cryptography.Native.Android/Interop.Cipher.cs
Co-authored-by: Jan Kotas <[email protected]>
1 parent 122323c commit fa5175f

File tree

1 file changed

+2
-2
lines changed
  • src/libraries/Common/src/Interop/Android/System.Security.Cryptography.Native.Android

1 file changed

+2
-2
lines changed

src/libraries/Common/src/Interop/Android/System.Security.Cryptography.Native.Android/Interop.Cipher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ internal static unsafe bool EvpAeadCipherFinalEx(
151151
out bool authTagMismatch)
152152
{
153153
// We can't pass null down to the native shim, so create a valid pointer if we have an empty span,
154-
// thus, we use MemoryMarshal.GetNonNullPinnableReference
155-
fixed (byte* pOutput = &MemoryMarshal.GetNonNullPinnableReference(output))
154+
// thus, we use Helpers.GetNonNullPinnableReference
155+
fixed (byte* pOutput = &Helpers.GetNonNullPinnableReference(output))
156156
{
157157
return EvpAeadCipherFinalEx(ctx, pOutput, out bytesWritten, out authTagMismatch);
158158
}

0 commit comments

Comments
 (0)