12 references to ToByteArray
System.Formats.Cbor (1)
System\Formats\Cbor\CborHelpers.netcoreapp.cs (1)
35=> value.ToByteArray(isUnsigned: true, isBigEndian: true);
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
1219public byte[] ToByteArray() => ToByteArray(isUnsigned: false, isBigEndian: false); 1291/// <summary>Gets the number of bytes that will be output by <see cref="ToByteArray(bool, bool)"/> and <see cref="TryWriteBytes(Span{byte}, out int, bool, bool)"/>.</summary> 1310/// <summary>Shared logic for <see cref="ToByteArray(bool, bool)"/>, <see cref="TryWriteBytes(Span{byte}, out int, bool, bool)"/>, and <see cref="GetByteCount"/>.</summary>
System.Security.Cryptography (8)
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (4)
72P = parms.P.ToByteArray(isUnsigned: true, isBigEndian: true), 73Q = parms.Q.ToByteArray(isUnsigned: true, isBigEndian: true), 135P = parms.P.ToByteArray(isUnsigned: true, isBigEndian: true), 136Q = parms.Q.ToByteArray(isUnsigned: true, isBigEndian: true),
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (4)
42byte[] n = key.Modulus.ToByteArray(isUnsigned: true, isBigEndian: true); 48Exponent = key.PublicExponent.ToByteArray(isUnsigned: true, isBigEndian: true), 67Modulus = key.Modulus.ToByteArray(isUnsigned: true, isBigEndian: true), 68Exponent = key.PublicExponent.ToByteArray(isUnsigned: true, isBigEndian: true),