Initial Commit

This commit is contained in:
2023-06-21 12:46:23 -04:00
commit c70248a520
1352 changed files with 336780 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using System;
using Org.BouncyCastle.Math;
namespace Org.BouncyCastle.Utilities
{
/**
* BigInteger utilities.
*/
public sealed class BigIntegers
{
private BigIntegers()
{
}
/**
* Return the passed in value as an unsigned byte array.
*
* @param value value to be converted.
* @return a byte array without a leading zero byte if present in the signed encoding.
*/
public static byte[] AsUnsignedByteArray(
BigInteger n)
{
return n.ToByteArrayUnsigned();
}
}
}