We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aabaee commit a19f2a5Copy full SHA for a19f2a5
EccSDK/SessionKeyGenerator.cs
@@ -1,11 +1,15 @@
1
+using EccSDK.models;
2
using Org.BouncyCastle.Math;
3
4
namespace EccSDK;
5
6
public class SessionKeyGenerator
7
{
- public static BigInteger GenerateSessionKey()
8
+ public static SessionKey GenerateSessionKey()
9
- return new BigInteger(256, new Random());
10
+ return new SessionKey()
11
+ {
12
+ Key = new BigInteger(256, new Random())
13
+ };
14
}
15
EccSDK/models/SessionKey.cs
@@ -0,0 +1,8 @@
+using Org.BouncyCastle.Math;
+
+namespace EccSDK.models;
+public class SessionKey
+{
+ public BigInteger Key { get; set; }
+}
0 commit comments