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

(05fc3aef53348fb58be6308076e000825b704e58)

#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)
 
static 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 249 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_bag()

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

Definition at line 200 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_certBag()

static QByteArray _q_PKCS12_certBag ( const QSslCertificate & cert)
static

Definition at line 108 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_key()

static QAsn1Element _q_PKCS12_key ( const QSslKey & key)
static

Definition at line 137 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_keygen()

static 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 44 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_mac()

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

Definition at line 222 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_salt()

static QByteArray _q_PKCS12_salt ( )
static

Definition at line 99 of file qsslsocket_qt.cpp.

◆ _q_PKCS12_shroudedKeyBag()

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

Definition at line 154 of file qsslsocket_qt.cpp.

◆ _q_PKCS7_data()

static QAsn1Element _q_PKCS7_data ( const QByteArray & data)
static

Definition at line 28 of file qsslsocket_qt.cpp.

◆ wrap()

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

Definition at line 20 of file qsslsocket_qt.cpp.