Документация
ОС Аврора 5.0.1

Класс DSAPublicKey

Публичные функции

DLGroup domain () const
DSAPublicKey ()
DSAPublicKey (const DLGroup &domain, const BigInteger &y, const QString &provider=QString())
DSAPublicKey (const DSAPrivateKey &k)
BigInteger y () const

Публичные функции, унаследованные от QCA::PublicKey

bool canDecrypt () const
bool canEncrypt () const
bool canVerify () const
bool decrypt (const SecureArray &in, SecureArray *out, EncryptionAlgorithm alg)
SecureArray encrypt (const SecureArray &a, EncryptionAlgorithm alg)
int maximumEncryptSize (EncryptionAlgorithm alg) const
PublicKey & operator= (const PublicKey &from)
PublicKey ()
PublicKey (const PrivateKey &k)
PublicKey (const PublicKey &from)
PublicKey (const QString &fileName)
void startVerify (SignatureAlgorithm alg, SignatureFormat format=DefaultFormat)
QByteArray toDER () const
DHPublicKey toDH () const
DSAPublicKey toDSA () const
ECPublicKey toEC () const
GOSTPublicKey toGOST () const
QString toPEM () const
bool toPEMFile (const QString &fileName) const
RSAPublicKey toRSA () const
void update (const MemoryRegion &a)
bool validSignature (const QByteArray &sig)
bool verifyMessage (const MemoryRegion &a, const QByteArray &sig, SignatureAlgorithm alg, SignatureFormat format=DefaultFormat)

Публичные функции, унаследованные от QCA::PKey

int bitSize () const
bool canExport () const
bool canKeyAgree () const
bool isDH () const
bool isDSA () const
bool isEC () const
bool isGOST () const
bool isNull () const
bool isPrivate () const
bool isPublic () const
bool isRSA () const
bool operator!= (const PKey &a) const
PKey & operator= (const PKey &from)
bool operator== (const PKey &a) const
PKey ()
PKey (const PKey &from)
PrivateKey toPrivateKey () const
PublicKey toPublicKey () const
Type type () const

Публичные функции, унаследованные от QCA::Algorithm

Algorithm (const Algorithm &from)
void change (const QString &type, const QString &provider)
void change (Provider::Context *c)
Provider::Context * context ()
const Provider::Context * context () const
Algorithm & operator= (const Algorithm &from)
Provider * provider () const
Provider::Context * takeContext ()
QString type () const

Дополнительные унаследованные члены

Публичные типы, унаследованные от QCA::PKey

enum Type { RSA , DSA , DH , EC , GOST , UNKNOWN }

Статические публичные функции, унаследованные от QCA::PublicKey

static PublicKey fromDER (const QByteArray &a, ConvertResult *result=nullptr, const QString &provider=QString())
static PublicKey fromPEM (const QString &s, ConvertResult *result=nullptr, const QString &provider=QString())
static PublicKey fromPEMFile (const QString &fileName, ConvertResult *result=nullptr, const QString &provider=QString())

Статические публичные функции, унаследованные от QCA::PKey

static QList<Type> supportedIOTypes (const QString &provider=QString())
static QList<Type> supportedTypes (const QString &provider=QString())

Защищённые функции, унаследованные от QCA::PublicKey

PublicKey (const QString &type, const QString &provider)

Защищённые функции, унаследованные от QCA::PKey

PKey (const QString &type, const QString &provider)
void set (const PKey &k)
DHPrivateKey toDHPrivateKey () const
DHPublicKey toDHPublicKey () const
DSAPrivateKey toDSAPrivateKey () const
DSAPublicKey toDSAPublicKey () const
ECPrivateKey toECPrivateKey () const
ECPublicKey toECPublicKey () const
GOSTPrivateKey toGOSTPrivateKey () const
GOSTPublicKey toGOSTPublicKey () const
RSAPrivateKey toRSAPrivateKey () const
RSAPublicKey toRSAPublicKey () const

Защищённые функции, унаследованные от QCA::Algorithm

Algorithm ()
Algorithm (const QString &type, const QString &provider)

Подробное описание

Открытый ключ алгоритма цифровой подписи.

Описание конструкторов и деструктора

DSAPublicKey() [1/3]

QCA::DSAPublicKey::DSAPublicKey ()

Создаёт пустой открытый ключ DSA.

DSAPublicKey() [2/3]

QCA::DSAPublicKey::DSAPublicKey (const DLGroup & domain, const BigInteger & y, const QString & provider = QString() )

Создаёт открытый ключ DSA.

Параметры

domain Группа дискретного логарифма для использования
y Публичное случайное значение.
provider Криптопровайдер, который будет использоваться, если требуется конкретный криптопровайдер

DSAPublicKey() [3/3]

QCA::DSAPublicKey::DSAPublicKey (const DSAPrivateKey & k)

Создаёт открытый ключ DSA из указанного закрытого ключа.

Параметры

k Закрытый ключ DSA для использования в качестве источника

Описание методов

domain()

DLGroup QCA::DSAPublicKey::domain () const

Используемая группа дискретных логарифмов.

y()

BigInteger QCA::DSAPublicKey::y () const

Открытое случайное значение, связанное с этим ключом.

Мы используем cookies для персонализации сайта и его более удобного использования. Вы можете запретить cookies в настройках браузера.

Пожалуйста ознакомьтесь с политикой использования cookies.