forked from planetarium/libplanet
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify GenerateKeyParam to return a new value when .D.ToByteArrayUnsigned().Length != 32 Repeat until == 32
- Loading branch information
Showing
3 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Libplanet.Crypto | ||
{ | ||
[Serializable] | ||
public class GenerateKeyParamTriesExceedException : Exception | ||
{ | ||
public GenerateKeyParamTriesExceedException() | ||
{ | ||
} | ||
|
||
public GenerateKeyParamTriesExceedException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
public GenerateKeyParamTriesExceedException(string message, Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
|
||
protected GenerateKeyParamTriesExceedException( | ||
SerializationInfo info, StreamingContext context | ||
) | ||
: base(info, context) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters