• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

qca

QCA Namespace Reference


Detailed Description

QCA - the Qt Cryptographic Architecture.


Classes

class  AbstractLogDevice
 An abstract log device. More...
class  Algorithm
 General superclass for an algorithm. More...
class  Base64
 Base64 encoding / decoding More...
class  BasicContext
 Base class to use for primitive provider contexts. More...
class  BigInteger
 Arbitrary precision integer. More...
class  BufferedComputation
 General superclass for buffered computation algorithms. More...
class  CAContext
 X.509 certificate authority provider. More...
class  CertBase
 X.509 certificate and certificate request provider base. More...
class  CertCollectionContext
 X.509 certificate collection provider. More...
class  CertContext
 X.509 certificate provider. More...
class  CertContextProps
 X.509 certificate or certificate request properties. More...
class  Certificate
 Public Key (X.509) certificate. More...
class  CertificateAuthority
 A Certificate Authority is used to generate Certificates and Certificate Revocation Lists (CRLs). More...
class  CertificateChain
 A chain of related Certificates. More...
class  CertificateCollection
 Bundle of Certificates and CRLs. More...
class  CertificateInfoOrdered
 Ordered certificate properties type. More...
class  CertificateInfoPair
 One entry in a certificate information list. More...
class  CertificateInfoType
 Certificate information type. More...
class  CertificateOptions
 Certificate options More...
class  CertificateRequest
 Certificate Request More...
class  Cipher
 General class for cipher (encryption / decryption) algorithms. More...
class  CipherContext
 Cipher provider. More...
class  CMS
 Cryptographic Message Syntax messaging system. More...
class  Console
 QCA Console system More...
class  ConsolePrompt
 Console prompt handler. More...
class  ConsoleReference
 Manager for a Console. More...
class  ConstraintType
 Certificate constraint. More...
class  CRL
 Certificate Revocation List More...
class  CRLContext
 X.509 certificate revocation list provider. More...
class  CRLContextProps
 X.509 certificate revocation list properties. More...
class  CRLEntry
 Part of a CRL representing a single certificate. More...
class  CSRContext
 X.509 certificate request provider. More...
class  DHContext
 Diffie-Hellman provider. More...
class  DHPrivateKey
 Diffie-Hellman Private Key. More...
class  DHPublicKey
 Diffie-Hellman Public Key. More...
class  DirWatch
 Support class to monitor a directory for activity. More...
class  DLGroup
 A discrete logarithm group. More...
class  DLGroupContext
 Discrete logarithm provider. More...
class  DSAContext
 DSA provider. More...
class  DSAPrivateKey
 Digital Signature Algorithm Private Key. More...
class  DSAPublicKey
 Digital Signature Algorithm Public Key. More...
class  Event
 An asynchronous event. More...
class  EventHandler
 Interface class for password / passphrase / PIN and token handlers. More...
class  FileWatch
 Support class to monitor a file for activity. More...
class  Filter
 General superclass for filtering transformation algorithms. More...
class  Hash
 General class for hashing algorithms. More...
class  HashContext
 Hash provider. More...
class  Hex
 Hexadecimal encoding / decoding. More...
class  InfoContext
 Extended provider information. More...
class  InitializationVector
 Container for initialisation vectors and nonces. More...
class  Initializer
 Convenience method for initialising and cleaning up QCA. More...
class  KDFContext
 Key derivation function provider. More...
class  KeyBundle
 Certificate chain and private key pair. More...
class  KeyDerivationFunction
 General superclass for key derivation algorithms. More...
class  KeyGenerator
 Class for generating asymmetric key pairs. More...
class  KeyLength
 Simple container for acceptable key lengths. More...
class  KeyLoader
 Asynchronous private key loader. More...
class  KeyStore
 General purpose key storage object. More...
class  KeyStoreEntry
 Single entry in a KeyStore. More...
class  KeyStoreEntryContext
 KeyStoreEntry provider. More...
class  KeyStoreEntryWatcher
 Class to monitor the availability of a KeyStoreEntry. More...
class  KeyStoreInfo
 Key store information, outside of a KeyStore object. More...
class  KeyStoreListContext
 KeyStore provider. More...
class  KeyStoreManager
 Access keystores, and monitor keystores for changes. More...
class  Logger
 A simple logging system. More...
class  MACContext
 Message authentication code provider. More...
class  MemoryRegion
 Array of bytes that may be optionally secured. More...
class  MessageAuthenticationCode
 General class for message authentication code (MAC) algorithms. More...
class  MessageContext
 SecureMessage provider. More...
class  OpenPGP
 Pretty Good Privacy messaging system. More...
class  PasswordAsker
 User password / passphrase / PIN handler. More...
class  PBKDF1
 Password based key derivation function version 1. More...
class  PBKDF2
 Password based key derivation function version 2. More...
class  PGPKey
 Pretty Good Privacy key. More...
class  PGPKeyContext
 OpenPGP key provider. More...
class  PGPKeyContextProps
 OpenPGP key properties. More...
class  PKCS12Context
 PKCS#12 provider. More...
class  PKey
 General superclass for public (PublicKey) and private (PrivateKey) keys used with asymmetric encryption techniques. More...
class  PKeyBase
 Public key implementation provider base. More...
class  PKeyContext
 Public key container provider. More...
class  PrivateKey
 Generic private key. More...
class  Provider
 Algorithm provider. More...
class  ProviderManager
class  PublicKey
 Generic public key. More...
class  QPipe
 A FIFO buffer (named pipe) abstraction. More...
class  QPipeDevice
 Unbuffered direct pipe. More...
class  QPipeEnd
 A buffered higher-level pipe end. More...
class  Random
 Source of random numbers. More...
class  RandomContext
 Random provider. More...
class  RSAContext
 RSA provider. More...
class  RSAPrivateKey
 RSA Private Key. More...
class  RSAPublicKey
 RSA Public Key. More...
class  SafeSocketNotifier
class  SafeTimer
class  SASL
 Simple Authentication and Security Layer protocol implementation. More...
class  SASLContext
 SASL provider. More...
class  SecureArray
 Secure array of bytes. More...
class  SecureLayer
 Abstract interface to a security layer. More...
class  SecureMessage
 Class representing a secure message. More...
class  SecureMessageKey
 Key for SecureMessage system. More...
class  SecureMessageSignature
 SecureMessage signature. More...
class  SecureMessageSystem
 Abstract superclass for secure messaging systems. More...
class  SMSContext
 SecureMessageSystem provider. More...
class  SymmetricKey
 Container for keys for symmetric encryption algorithms. More...
class  Synchronizer
 Enable synchronization between two threads. More...
class  SyncThread
 Convenience class to run a thread and interact with it synchronously. More...
class  TextFilter
 Superclass for text based filtering algorithms. More...
class  TLS
 Transport Layer Security / Secure Socket Layer. More...
class  TLSContext
 TLS provider. More...
class  TLSSession
 Session token, used for TLS resuming. More...
class  TLSSessionContext
 TLS "session" provider. More...
class  TokenAsker
 User token handler. More...

Namespaces

namespace  Botan
namespace  Botan_types

Typedefs

typedef QMultiMap
< CertificateInfoType, QString > 
CertificateInfo
typedef QList< ConstraintType > Constraints
typedef quint8 md5_byte_t
typedef quint32 md5_word_t
typedef QList< Provider * > ProviderList
typedef QList< SecureMessageKey > SecureMessageKeyList
typedef QList
< SecureMessageSignature > 
SecureMessageSignatureList

Enumerations

enum  CertificateInfoTypeKnown {
  CommonName, Email, EmailLegacy, Organization,
  OrganizationalUnit, Locality, IncorporationLocality, State,
  IncorporationState, Country, IncorporationCountry, URI,
  DNS, IPAddress, XMPP
}
enum  CertificateRequestFormat { PKCS10, SPKAC }
enum  ConstraintTypeKnown {
  DigitalSignature, NonRepudiation, KeyEncipherment, DataEncipherment,
  KeyAgreement, KeyCertificateSign, CRLSign, EncipherOnly,
  DecipherOnly, ServerAuth, ClientAuth, CodeSigning,
  EmailProtection, IPSecEndSystem, IPSecTunnel, IPSecUser,
  TimeStamping, OCSPSigning
}
enum  ConvertResult { ConvertGood, ErrorDecode, ErrorPassphrase, ErrorFile }
enum  Direction { Encode, Decode }
enum  DLGroupSet {
  DSA_512, DSA_768, DSA_1024, IETF_768,
  IETF_1024, IETF_1536, IETF_2048, IETF_3072,
  IETF_4096, IETF_6144, IETF_8192
}
enum  EncryptionAlgorithm { EME_PKCS1v15, EME_PKCS1_OAEP }
enum  MemoryMode { Practical, Locking, LockingKeepPrivileges }
enum  PBEAlgorithm {
  PBEDefault, PBES2_DES_SHA1, PBES2_TripleDES_SHA1, PBES2_AES128_SHA1,
  PBES2_AES192_SHA1, PBES2_AES256_SHA1
}
enum  ResetMode {
  ResetSession = 0, ResetSessionAndData = 1, ResetAll = 2, ResetSession = 0,
  ResetSessionAndData = 1, ResetAll = 2, ResetSession = 0, ResetSessionAndData = 1,
  ResetAll = 2
}
enum  ResetMode {
  ResetSession = 0, ResetSessionAndData = 1, ResetAll = 2, ResetSession = 0,
  ResetSessionAndData = 1, ResetAll = 2, ResetSession = 0, ResetSessionAndData = 1,
  ResetAll = 2
}
enum  ResetMode {
  ResetSession = 0, ResetSessionAndData = 1, ResetAll = 2, ResetSession = 0,
  ResetSessionAndData = 1, ResetAll = 2, ResetSession = 0, ResetSessionAndData = 1,
  ResetAll = 2
}
enum  SecurityLevel {
  SL_None, SL_Integrity, SL_Export, SL_Baseline,
  SL_High, SL_Highest
}
enum  SignatureAlgorithm {
  SignatureUnknown, EMSA1_SHA1, EMSA3_SHA1, EMSA3_MD5,
  EMSA3_MD2, EMSA3_RIPEMD160, EMSA3_Raw
}
enum  SignatureFormat { DefaultFormat, IEEE_1363, DERSequence }
enum  UsageMode {
  UsageAny = 0x00, UsageTLSServer = 0x01, UsageTLSClient = 0x02, UsageCodeSigning = 0x04,
  UsageEmailProtection = 0x08, UsageTimeStamping = 0x10, UsageCRLSigning = 0x20
}
enum  ValidateFlags { ValidateAll = 0x00, ValidateRevoked = 0x01, ValidateExpired = 0x02, ValidatePolicy = 0x04 }
enum  Validity {
  ValidityGood, ErrorRejected, ErrorUntrusted, ErrorSignatureFailed,
  ErrorInvalidCA, ErrorInvalidPurpose, ErrorSelfSigned, ErrorRevoked,
  ErrorPathLengthExceeded, ErrorExpired, ErrorExpiredCA, ErrorValidityUnknown = 64
}

Functions

static bool ai_copy (alloc_info *ai, const alloc_info *from)
static void ai_delete (alloc_info *ai)
static bool ai_new (alloc_info *ai, int size, bool sec)
static bool ai_resize (alloc_info *ai, int new_size)
ProviderList allProviders ()
static void appendArray (QByteArray *a, const QByteArray &b)
QCA_EXPORT void appendPluginDiagnosticText (const QString &text)
QCA_EXPORT QString appName ()
bool arrayFromFile (const QString &fileName, QByteArray *a)
bool arrayToFile (const QString &fileName, const QByteArray &content)
QCA_EXPORT QString arrayToHex (const QByteArray &array)
bool ask_passphrase (const QString &fname, void *ptr, SecureArray *answer)
static bool asker_ask (AskerBase *a, const Event &e)
static void asker_cancel (AskerBase *a)
static QByteArray b64decode (const QByteArray &s, bool *ok)
static QByteArray b64encode (const QByteArray &s)
static QString baseCertName (const CertificateInfo &info)
void botan_deinit ()
bool botan_init (int prealloc, bool mmap)
void * botan_secure_alloc (int bytes)
void botan_secure_free (void *p, int bytes)
void botan_throw_abort ()
static bool can_lock ()
static bool cert_match_domain (const QString &certname, const QString &acedomain)
static bool cert_match_ipaddress (const QString &certname, const QByteArray &ipaddress)
QCA_EXPORT void clearPluginDiagnosticText ()
static bool configIsValid (const QVariantMap &config)
static int constraintIdToKnown (const QString &id)
static QString constraintKnownToId (ConstraintTypeKnown k)
static ConstraintType::Section constraintKnownToSection (ConstraintTypeKnown k)
static const char * constraintToString (const ConstraintType &type)
Provider * create_default_provider ()
QCA_EXPORT QStringList defaultFeatures ()
QCA_EXPORT Provider * defaultProvider ()
static int dehex (char c)
QCA_EXPORT void deinit ()
static QString dnLabel (const CertificateInfoType &type)
static Provider::Context * doCreateContext (Provider *p, const QString &type)
QCA_EXPORT QByteArray emsa3Encode (const QString &hashName, const QByteArray &digest, int size=-1)
static int enhex (uchar c)
static void ensure_init ()
static bool entry_deserialize (const QString &in, QString *storeId, QString *storeName, QString *entryId, QString *entryName, QString *entryType, QString *data)
static QString entry_serialize (const QString &storeId, const QString &storeName, const QString &entryId, const QString &entryName, const QString &entryType, const QString &data)
static QString escape_string (const QString &in)
static QString escape_stringlist (const QStringList &in)
static bool features_have (const QStringList &have, const QStringList &want)
static int findLF (const QByteArray &in, int offset)
QCA_EXPORT Provider * findProvider (const QString &name)
static QList< int > findSameName (const QString &name, const QStringList &list)
static QStringList get_cipher_types (Provider *p)
QByteArray get_hash_id (const QString &name)
static QStringList get_hash_types (Provider *p)
static QStringList get_mac_types (Provider *p)
PBEAlgorithm get_pbe_default ()
static bool get_pkcs12_der (const QByteArray &der, const QString &fileName, void *ptr, const SecureArray &passphrase, ConvertResult *result, const QString &provider, QString *name, CertificateChain *chain, PrivateKey *key)
static PrivateKey get_privatekey_der (const SecureArray &der, const QString &fileName, void *ptr, const SecureArray &passphrase, ConvertResult *result, const QString &provider)
static PrivateKey get_privatekey_pem (const QString &pem, const QString &fileName, void *ptr, const SecureArray &passphrase, ConvertResult *result, const QString &provider)
static QStringList get_types (QStringList(*get_func)(Provider *p), const QString &provider)
Provider::Context * getContext (const QString &type, const QString &provider)
Provider::Context * getContext (const QString &type, Provider *p)
template<typename T, typename G, typename I>
T getKey (const QString &provider, const I &in, const SecureArray &passphrase, ConvertResult *result)
template<typename T, typename G>
QList< T > getList (const QString &provider)
QCA_EXPORT QVariant getProperty (const QString &name)
QCA_EXPORT QVariantMap getProviderConfig (const QString &name)
QVariantMap getProviderConfig_internal (Provider *p)
static Provider * getProviderForType (const QString &type, const QString &provider)
static bool global_check ()
Random * global_random ()
QMutex * global_random_mutex ()
QCA_EXPORT QString globalRandomProvider ()
static void handler_accept (HandlerBase *h, int id, const SecureArray &password)
static void handler_add (HandlerBase *h, int pos=-1)
static void handler_reject (HandlerBase *h, int id)
static void handler_remove (HandlerBase *h)
QCA_EXPORT bool haveSecureMemory ()
QCA_EXPORT bool haveSecureRandom ()
QCA_EXPORT bool haveSystemStore ()
QCA_EXPORT QByteArray hexToArray (const QString &hexString)
static int idToKnown (const QString &id)
QCA_EXPORT void init (MemoryMode m, int prealloc)
QCA_EXPORT void init ()
static QByteArray insert_linebreaks (const QByteArray &s, int *col, int lfAt)
QCA_EXPORT bool insertProvider (Provider *p, int priority=0)
bool invokeMethodWithVariants (QObject *obj, const QByteArray &method, const QVariantList &args, QVariant *ret, Qt::ConnectionType type)
static QByteArray ipaddr_str2bin (const QString &str)
QCA_EXPORT bool isSupported (const QStringList &features, const QString &provider=QString())
QCA_EXPORT bool isSupported (const char *features, const QString &provider=QString())
static QString knownToId (CertificateInfoTypeKnown k)
static CertificateInfoType::Section knownToSection (CertificateInfoTypeKnown k)
static const char * knownToShortName (CertificateInfoTypeKnown k)
static void logDebug (const QString &str)
QCA_EXPORT Logger * logger ()
QCA_EXPORT QStringList makeFriendlyNames (const QList< Certificate > &list)
static QString makeUniqueName (const QList< int > &items, const QStringList &list, const QList< Certificate > &certs, int i)
static CertificateInfoOrdered mapToOrdered (const CertificateInfo &info)
void md5_append (md5_state_t *pms, const md5_byte_t *data, int nbytes)
void md5_finish (md5_state_t *pms, md5_byte_t digest[16])
void md5_init (md5_state_t *pms)
static void md5_process (md5_state_t *pms, const md5_byte_t *data)
static void mergeList (QStringList *a, const QStringList &b)
QByteArray methodReturnType (const QMetaObject *obj, const QByteArray &method, const QList< QByteArray > argTypes)
static void moveMapValues (CertificateInfo *from, CertificateInfoOrdered *to, const CertificateInfoType &type)
static void negate_binary (char *a, int size)
QCA_EXPORT const SecureArray operator+ (const SecureArray &a, const SecureArray &b)
QTextStream & operator<< (QTextStream &stream, const BigInteger &b)
QCA_EXPORT CertificateInfoOrdered orderedDNOnly (const CertificateInfoOrdered &in)
QCA_EXPORT QString orderedToDNString (const CertificateInfoOrdered &in)
static CertificateInfo orderedToMap (const CertificateInfoOrdered &info)
static int pipe_read (Q_PIPE_ID pipe, char *data, int max, bool *eof)
static int pipe_read_avail (Q_PIPE_ID pipe)
static bool pipe_set_blocking (Q_PIPE_ID pipe, bool b)
static bool pipe_set_inheritable (Q_PIPE_ID pipe, bool b, Q_PIPE_ID *newPipe=0)
static int pipe_write (Q_PIPE_ID pipe, const char *data, int size)
QStringList plugin_priorities (Provider *defaultProvider)
QCA_EXPORT QString pluginDiagnosticText ()
Provider * providerForGroupSet (DLGroupSet set)
Provider * providerForIOType (PKey::Type type, const PKeyContext *prefer=0)
Provider * providerForName (const QString &name)
Provider * providerForPBE (PBEAlgorithm alg, PKey::Type ioType, const PKeyContext *prefer=0)
QCA_EXPORT int providerPriority (const QString &name)
QCA_EXPORT ProviderList providers ()
CertificateCollection qca_get_systemstore (const QString &provider)
bool qca_have_systemstore ()
static QVariantMap readConfig (const QString &name)
static QString readNextPem (QTextStream *ts, bool *isCRL)
void releaseAndDeleteLater (QObject *owner, QObject *obj)
static QByteArray remove_linebreaks (const QByteArray &s)
QCA_EXPORT void saveProviderConfig (const QString &name)
QCA_EXPORT void scanForPlugins ()
QCA_EXPORT void setAppName (const QString &name)
QCA_EXPORT void setGlobalRandomProvider (const QString &provider)
QCA_EXPORT void setProperty (const QString &name, const QVariant &value)
QCA_EXPORT void setProviderConfig (const QString &name, const QVariantMap &config)
QCA_EXPORT void setProviderPriority (const QString &name, int priority)
QStringList skip_plugins (Provider *defaultProvider)
bool stringFromFile (const QString &fileName, QString *s)
bool stringToFile (const QString &fileName, const QString &content)
static QStringList supportedCipherTypes (const QString &provider)
QCA_EXPORT QStringList supportedFeatures ()
static QStringList