프로퍼티 | 타입 | 설명 | |
---|---|---|---|
DefaultKeyPair | |||
DoOAEPPadding | bool | ||
KeyLength | RsaKeyLengths |
메소드 | 설명 | |
---|---|---|
Authenticate ( byte dataToSign, RSAParameters privateKey, string hashAlgorithm = "SHA512", RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
CreatePrivateKeyParams ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : RSAParameters | ||
CreatePublicAndPrivateKeyPair ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : |
||
Decrypt ( byte encryptedBytes, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
Decrypt ( byte encryptedBytes, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
Decrypt ( string encryptedText, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
Decrypt ( string encryptedText, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
Decrypt ( this text ) : string | ||
Encrypt ( byte bytes, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
Encrypt ( byte bytes, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
Encrypt ( string text, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
Encrypt ( string text, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
Encrypt ( this text ) : string | ||
FromPrivateRSAParameters ( this privateKey ) : string | ||
FromPublicRSAParameters ( this publicKey ) : string | ||
ToPrivateKeyXml ( this privateKey ) : string | ||
ToPrivateRSAParameters ( this privateKeyXml ) : RSAParameters | ||
ToPublicKeyXml ( this publicKey ) : string | ||
ToPublicRSAParameters ( this publicKeyXml ) : RSAParameters | ||
ToPublicRsaParameters ( this privateKey ) : RSAParameters | ||
Verify ( byte dataToVerify, byte signature, RSAParameters publicKey, string hashAlgorithm = "SHA512", RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : bool |
메소드 | 설명 | |
---|---|---|
CreateRsa ( RsaKeyLengths rsaKeyLength ) : |
public static Authenticate ( byte dataToSign, RSAParameters privateKey, string hashAlgorithm = "SHA512", RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
dataToSign | byte | |
privateKey | RSAParameters | |
hashAlgorithm | string | |
rsaKeyLength | RsaKeyLengths | |
리턴 | byte[] |
public static CreatePrivateKeyParams ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : RSAParameters | ||
rsaKeyLength | RsaKeyLengths | |
리턴 | RSAParameters |
public static CreatePublicAndPrivateKeyPair ( RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : |
||
rsaKeyLength | RsaKeyLengths | |
리턴 |
public static Decrypt ( byte encryptedBytes, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
encryptedBytes | byte | |
privateKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
리턴 | byte[] |
public static Decrypt ( byte encryptedBytes, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
encryptedBytes | byte | |
privateKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
리턴 | byte[] |
public static Decrypt ( string encryptedText, RSAParameters privateKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
encryptedText | string | |
privateKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
리턴 | string |
public static Decrypt ( string encryptedText, string privateKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
encryptedText | string | |
privateKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
리턴 | string |
public static Encrypt ( byte bytes, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
bytes | byte | |
publicKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
리턴 | byte[] |
public static Encrypt ( byte bytes, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : byte[] | ||
bytes | byte | |
publicKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
리턴 | byte[] |
public static Encrypt ( string text, RSAParameters publicKey, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
text | string | |
publicKey | RSAParameters | |
rsaKeyLength | RsaKeyLengths | |
리턴 | string |
public static Encrypt ( string text, string publicKeyXml, RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : string | ||
text | string | |
publicKeyXml | string | |
rsaKeyLength | RsaKeyLengths | |
리턴 | string |
public static FromPrivateRSAParameters ( this privateKey ) : string | ||
privateKey | this | |
리턴 | string |
public static FromPublicRSAParameters ( this publicKey ) : string | ||
publicKey | this | |
리턴 | string |
public static ToPrivateKeyXml ( this privateKey ) : string | ||
privateKey | this | |
리턴 | string |
public static ToPrivateRSAParameters ( this privateKeyXml ) : RSAParameters | ||
privateKeyXml | this | |
리턴 | RSAParameters |
public static ToPublicKeyXml ( this publicKey ) : string | ||
publicKey | this | |
리턴 | string |
public static ToPublicRSAParameters ( this publicKeyXml ) : RSAParameters | ||
publicKeyXml | this | |
리턴 | RSAParameters |
public static ToPublicRsaParameters ( this privateKey ) : RSAParameters | ||
privateKey | this | |
리턴 | RSAParameters |
public static Verify ( byte dataToVerify, byte signature, RSAParameters publicKey, string hashAlgorithm = "SHA512", RsaKeyLengths rsaKeyLength = RsaKeyLengths.Bit2048 ) : bool | ||
dataToVerify | byte | |
signature | byte | |
publicKey | RSAParameters | |
hashAlgorithm | string | |
rsaKeyLength | RsaKeyLengths | |
리턴 | bool |