internal static int RsaPrivateDecrypt( int flen, ReadOnlySpan <byte> from, Span <byte> to, SafeRsaHandle rsa, RsaPadding padding) => RsaPrivateDecrypt(flen, ref MemoryMarshal.GetReference(from), ref MemoryMarshal.GetReference(to), rsa, padding);
internal static int RsaPrivateDecrypt( int flen, ReadOnlySpan <byte> from, Span <byte> to, SafeRsaHandle rsa, RsaPadding padding) => RsaPrivateDecrypt(flen, ref from.DangerousGetPinnableReference(), ref to.DangerousGetPinnableReference(), rsa, padding);
internal static unsafe int RsaPrivateDecrypt( int flen, ReadOnlySpan <byte> from, Span <byte> to, SafeRsaHandle rsa, RsaPadding padding) { fixed(byte *fromPtr = &from.DangerousGetPinnableReference()) fixed(byte *toPtr = &to.DangerousGetPinnableReference()) { return(RsaPrivateDecrypt(flen, fromPtr, toPtr, rsa, padding)); } }
private static extern int RsaPrivateDecrypt( int flen, ref byte from, ref byte to, SafeRsaHandle rsa, RsaPadding padding);
private extern static int RsaPublicEncrypt( int flen, ref byte from, ref byte to, SafeRsaHandle rsa, RsaPadding padding);
internal extern static int RsaPrivateDecrypt( int flen, byte[] from, byte[] to, SafeRsaHandle rsa, RsaPadding padding);
private static partial int RsaPublicEncrypt( int flen, ref byte from, ref byte to, SafeRsaHandle rsa, RsaPadding padding);
private extern static unsafe int RsaPrivateDecrypt( int flen, byte *from, byte *to, SafeRsaHandle rsa, RsaPadding padding);