Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(7)  |  Derive(0)  |  Import(1)
Initialize the crypto subsystem.

        def init_crypto(config=None):
    """Initialize the crypto subsystem."""
    configure_trng(config)
    try:
        # Try to read /dev/urandom
        trng(1)
    except MixFatalError:
        raise
    except:
        info = sys.exc_info()
        raise MixFatalError("Error initializing entropy source: %s" % info[1])
    openssl_seed(40)
        


src/m/i/mixminion-HEAD/lib/mixminion/server/ServerMain.py   mixminion(Download)
        mixminion.Common.configureShredCommand(config)
        mixminion.Common.configureFileParanoia(config)
        mixminion.Crypto.init_crypto(config)
 
        server = MixminionServer(config)
    mixminion.Common.configureShredCommand(config)
    mixminion.Common.configureFileParanoia(config)
    mixminion.Crypto.init_crypto(config)
 
    curVersion = getHomedirVersion(config)
    mixminion.Common.configureShredCommand(config)
    mixminion.Common.configureFileParanoia(config)
    mixminion.Crypto.init_crypto(config)
 
    checkHomedirVersion(config)
 
    LOG.setMinSeverity("INFO")
    mixminion.Crypto.init_crypto(config)
 
    keydir = config.getKeyDir()

src/m/i/mixminion-HEAD/lib/mixminion/ClientMain.py   mixminion(Download)
                try:
                    LOG.setMinSeverity("WARN")
                    mixminion.Crypto.init_crypto(self.config)
                finally:
                    LOG.setMinSeverity(severity)
            else:
                mixminion.Crypto.init_crypto(self.config)

src/m/i/mixminion-HEAD/lib/mixminion/directory/DirMain.py   mixminion(Download)
     UIError
from mixminion.Config import ConfigError
from mixminion.Crypto import init_crypto, pk_fingerprint, pk_generate, \
     pk_PEM_load, pk_PEM_save
from mixminion.directory.Directory import Directory, DirectoryConfig
        print "Unknown command", command
        usageAndExit()
    init_crypto()
    LOG.setMinSeverity("INFO")
    SUBCOMMANDS[command](args)