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

All Samples(22)  |  Call(22)  |  Derive(0)  |  Import(0)

        def openfile(filename, mode='rb'):
    return File(open(filename, mode))
        


src/m/2/M2Crypto-0.22.3/M2Crypto/EC.py   M2Crypto(Download)
        The default is util.passphrase_callback.
        """
        bio = BIO.openfile(file, 'wb')
        return self.save_key_bio(bio, cipher, callback)
 
        @param file: Name of file to save key to.
        """
        bio = BIO.openfile(file, 'wb')
        return m2.ec_key_write_pubkey(self.ec, bio._ptr())
 
    if the EC key pair is passphrase-protected.
    """
    bio = BIO.openfile(file)
    return load_key_bio(bio, callback)
 
    @return: M2Crypto.EC.EC_pub object.
    """
    bio = BIO.openfile(file) 
    return load_pub_key_bio(bio)
 

src/m/2/M2Crypto-HEAD/M2Crypto/EC.py   M2Crypto(Download)
        The default is util.passphrase_callback.
        """
        bio = BIO.openfile(file, 'wb')
        return self.save_key_bio(bio, cipher, callback)
 
        @param file: Name of file to save key to.
        """
        bio = BIO.openfile(file, 'wb')
        return m2.ec_key_write_pubkey(self.ec, bio._ptr())
 
    if the EC key pair is passphrase-protected.
    """
    bio = BIO.openfile(file)
    return load_key_bio(bio, callback)
 
    @return: M2Crypto.EC.EC_pub object.
    """
    bio = BIO.openfile(file) 
    return load_pub_key_bio(bio)
 

src/m/2/M2Crypto-0.22.3/M2Crypto/DSA.py   M2Crypto(Download)
        @return:         1 (true) if successful
        """
        bio = BIO.openfile(filename, 'wb')
        ret = m2.dsa_write_params_bio(self.dsa, bio._ptr())
        bio.close()
        @return:         1 (true) if successful
        """
        bio = BIO.openfile(filename, 'wb')
        ret = self.save_key_bio(bio, cipher, callback)
        bio.close()
        @return:         1 (true) if successful
        """
        bio = BIO.openfile(filename, 'wb')
        ret = self.save_pub_key_bio(bio)
        bio.close()
    @return:         instance of DSA.
    """
    bio = BIO.openfile(file)
    ret = load_params_bio(bio, callback)
    bio.close()
    @return:         instance of DSA.
    """
    bio = BIO.openfile(file)
    ret = load_key_bio(bio, callback)
    bio.close()

src/m/2/M2Crypto-HEAD/M2Crypto/DSA.py   M2Crypto(Download)
        @return:         1 (true) if successful
        """
        bio = BIO.openfile(filename, 'wb')
        ret = m2.dsa_write_params_bio(self.dsa, bio._ptr())
        bio.close()
        @return:         1 (true) if successful
        """
        bio = BIO.openfile(filename, 'wb')
        ret = self.save_key_bio(bio, cipher, callback)
        bio.close()
        @return:         1 (true) if successful
        """
        bio = BIO.openfile(filename, 'wb')
        ret = self.save_pub_key_bio(bio)
        bio.close()
    @return:         instance of DSA.
    """
    bio = BIO.openfile(file)
    ret = load_params_bio(bio, callback)
    bio.close()
    @return:         instance of DSA.
    """
    bio = BIO.openfile(file)
    ret = load_key_bio(bio, callback)
    bio.close()

src/m/2/M2Crypto-0.22.3/M2Crypto/DH.py   M2Crypto(Download)
def load_params(file):
    bio = BIO.openfile(file)
    return load_params_bio(bio)
 
 

src/m/2/M2Crypto-HEAD/M2Crypto/DH.py   M2Crypto(Download)
def load_params(file):
    bio = BIO.openfile(file)
    return load_params_bio(bio)