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