342 {
343 for (
int i = 0;
i <= 1;
i++)
344 {
348 {
349 case global::Interop.NCrypt.ErrorCode.ERROR_SUCCESS:
351 return true;
352 case global::Interop.NCrypt.ErrorCode.NTE_BUFFER_TOO_SMALL:
354 return false;
355 default:
356 throw errorCode.ToCryptographicException();
357 case global::Interop.NCrypt.ErrorCode.STATUS_UNSUCCESSFUL:
358 break;
359 }
360 }
361 throw global::Interop.NCrypt.ErrorCode.STATUS_UNSUCCESSFUL.ToCryptographicException();
362 }
unsafe byte[] EncryptOrDecrypt(byte[] data, RSAEncryptionPadding padding, bool encrypt)