Module cryptoIDlib.api
Import this module for easy access to cryptoIDlib objects.
The cryptoIDlib API consists of classes, functions, and variables
spread throughout this package. Instead of importing them individually
with:
from cryptoIDlib.CertChain import CertChain
from cryptoIDlib.Client import Client
from cryptoIDlib.errors import *
.
.
It's easier to do:
from cryptoIDlib.api import *
This imports all the important objects (CertChain, Client, Server,
etc.) into the global namespace. In particular, it imports:
from errors import *
from CertChain import CertChain
try:
import tlslite
from Client import Client
from Server import Server
except ImportError:
pass
from utils.dateFuncs import getHoursFromNow, getMinutesFromNow
from cryptoIDmath import scanmodsLoaded
from utils.cryptomath import cryptlibpyLoaded, m2cryptoLoaded,
gmpyLoaded, pycryptoLoaded, prngName
from utils.keyfactory import generateRSAKey, parsePEMKey, parseXMLKey,
parseAsPublicKey, parsePrivateKey
from SelfTest import SelfTest