C# 클래스 Renci.SshNet.Security.Cryptography.Ciphers.RsaCipher

Implements RSA cipher algorithm.
상속: AsymmetricCipher
파일 보기 프로젝트 열기: sshnet/SSH.NET 1 사용 예제들

공개 메소드들

메소드 설명
Decrypt ( byte data ) : byte[]

Decrypts the specified data.

Decrypt ( byte data, int offset, int length ) : byte[]

Decrypts the specified input.

Encrypt ( byte data, int offset, int length ) : byte[]

Encrypts the specified data.

RsaCipher ( RsaKey key ) : System

Initializes a new instance of the RsaCipher class.

비공개 메소드들

메소드 설명
Transform ( byte data ) : byte[]
Transform ( byte data, int offset, int length ) : byte[]

메소드 상세

Decrypt() 공개 메소드

Decrypts the specified data.
Only block type 01 or 02 are supported. Thrown when decrypted block type is not supported.
public Decrypt ( byte data ) : byte[]
data byte The data.
리턴 byte[]

Decrypt() 공개 메소드

Decrypts the specified input.
Only block type 01 or 02 are supported. Thrown when decrypted block type is not supported.
public Decrypt ( byte data, int offset, int length ) : byte[]
data byte The input.
offset int The zero-based offset in at which to begin decrypting.
length int The number of bytes to decrypt from .
리턴 byte[]

Encrypt() 공개 메소드

Encrypts the specified data.
public Encrypt ( byte data, int offset, int length ) : byte[]
data byte The data.
offset int The zero-based offset in at which to begin encrypting.
length int The number of bytes to encrypt from .
리턴 byte[]

RsaCipher() 공개 메소드

Initializes a new instance of the RsaCipher class.
public RsaCipher ( RsaKey key ) : System
key RsaKey The RSA key.
리턴 System