Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsslsocket_qt.cpp File Reference

(adb18ad479d0fbdfed1399740d01314119ce9e36)

#include "qasn1element_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qdatastream.h>
#include <QtCore/qmessageauthenticationcode.h>
#include <QtCore/qrandom.h>
#include <QtNetwork/private/qsslsocket_p.h>
#include <QtNetwork/private/qsslkey_p.h>
Include dependency graph for qsslsocket_qt.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE QAsn1Element wrap (quint8 type, const QAsn1Element &child)
static QAsn1Element _q_PKCS7_data (const QByteArray &data)
static QByteArray _q_PKCS12_keygen (char id, const QByteArray &salt, const QString &passPhrase, int n, int r)
 PKCS #12 key derivation.
static QByteArray _q_PKCS12_salt ()
static QByteArray _q_PKCS12_certBag (const QSslCertificate &cert)
QAsn1Element _q_PKCS12_key (const QSslKey &key)
static QByteArray _q_PKCS12_shroudedKeyBag (const QSslKey &key, const QString &passPhrase, const QByteArray &localKeyId)
static QByteArray _q_PKCS12_bag (const QList< QSslCertificate > &certs, const QSslKey &key, const QString &passPhrase)
static QAsn1Element _q_PKCS12_mac (const QByteArray &data, const QString &passPhrase)
QByteArray _q_makePkcs12 (const QList< QSslCertificate > &certs, const QSslKey &key, const QString &passPhrase)

Function Documentation

◆ _q_makePkcs12()

QByteArray _q_makePkcs12 ( const QList< QSslCertificate > & certs,
const QSslKey & key,
const QString & passPhrase )

Definition at line 250 of file qsslsocket_qt.cpp.

References QAsn1Element::fromInteger().

Here is the call graph for this function:

◆ _q_PKCS12_bag()

QByteArray _q_PKCS12_bag ( const QList< QSslCertificate > & certs,
const QSslKey & key,
const QString & passPhrase )
static

Definition at line 201 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_certBag()

QByteArray _q_PKCS12_certBag ( const QSslCertificate & cert)
static

Definition at line 109 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_key()

QAsn1Element _q_PKCS12_key ( const QSslKey & key)

Definition at line 138 of file qsslsocket_qt.cpp.

References QAsn1Element::fromInteger(), QAsn1Element::NullType, and QAsn1Element::OctetStringType.

Here is the call graph for this function:

◆ _q_PKCS12_keygen()

QByteArray _q_PKCS12_keygen ( char id,
const QByteArray & salt,
const QString & passPhrase,
int n,
int r )
static

PKCS #12 key derivation.

Some test vectors: http://www.drh-consultancy.demon.co.uk/test.txt

Definition at line 45 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_mac()

QAsn1Element _q_PKCS12_mac ( const QByteArray & data,
const QString & passPhrase )
static

Definition at line 223 of file qsslsocket_qt.cpp.

References QAsn1Element::fromInteger(), QAsn1Element::NullType, and QAsn1Element::OctetStringType.

Here is the call graph for this function:

◆ _q_PKCS12_salt()

QByteArray _q_PKCS12_salt ( )
static

Definition at line 100 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_shroudedKeyBag()

QByteArray _q_PKCS12_shroudedKeyBag ( const QSslKey & key,
const QString & passPhrase,
const QByteArray & localKeyId )
static

Definition at line 155 of file qsslsocket_qt.cpp.

References QAsn1Element::fromInteger(), and QAsn1Element::OctetStringType.

Here is the call graph for this function:

◆ _q_PKCS7_data()

QAsn1Element _q_PKCS7_data ( const QByteArray & data)
static

Definition at line 29 of file qsslsocket_qt.cpp.

◆ wrap()

QT_BEGIN_NAMESPACE QAsn1Element wrap ( quint8 type,
const QAsn1Element & child )
static

Definition at line 21 of file qsslsocket_qt.cpp.