示例#1
0
 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);
示例#2
0
 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);
示例#3
0
 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));
     }
 }
示例#4
0
 private static extern int RsaPrivateDecrypt(
     int flen,
     ref byte from,
     ref byte to,
     SafeRsaHandle rsa,
     RsaPadding padding);
示例#5
0
 private extern static int RsaPublicEncrypt(
     int flen,
     ref byte from,
     ref byte to,
     SafeRsaHandle rsa,
     RsaPadding padding);
示例#6
0
 internal extern static int RsaPrivateDecrypt(
     int flen,
     byte[] from,
     byte[] to,
     SafeRsaHandle rsa,
     RsaPadding padding);
示例#7
0
 private static partial int RsaPublicEncrypt(
     int flen,
     ref byte from,
     ref byte to,
     SafeRsaHandle rsa,
     RsaPadding padding);
示例#8
0
 internal extern static int RsaPrivateDecrypt(
     int flen,
     byte[] from,
     byte[] to,
     SafeRsaHandle rsa,
     RsaPadding padding);
示例#9
0
 private extern static unsafe int RsaPrivateDecrypt(
     int flen,
     byte *from,
     byte *to,
     SafeRsaHandle rsa,
     RsaPadding padding);