C# Class Library.Security.EcDsaP521_Sha256

显示文件 Open project: Alliance-Network/Library Class Usage Examples

Public Methods

Method Description
CreateKeys ( byte &publicKey, byte &privateKey ) : void

公開鍵と秘密鍵を作成して返す

Sign ( byte privateKey, Stream stream ) : byte[]
Verify ( byte publicKey, byte signature, Stream stream ) : bool

Method Details

CreateKeys() public static method

公開鍵と秘密鍵を作成して返す
public static CreateKeys ( byte &publicKey, byte &privateKey ) : void
publicKey byte 作成された公開鍵
privateKey byte 作成された秘密鍵
return void

Sign() public static method

public static Sign ( byte privateKey, Stream stream ) : byte[]
privateKey byte
stream Stream
return byte[]

Verify() public static method

public static Verify ( byte publicKey, byte signature, Stream stream ) : bool
publicKey byte
signature byte
stream Stream
return bool