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