C# Класс Renci.SshNet.Security.Cryptography.Ciphers.RsaCipher

Implements RSA cipher algorithm.
Наследование: AsymmetricCipher
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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