leakcheck/crypto.py
def check_load_privatekey_callback_incorrect(self):
        """
        Call the function with an encrypted PEM and a passphrase callback which
        returns the wrong passphrase.
        """
        for i in xrange(self.iterations * 10):
            try:
                load_privatekey(
                    FILETYPE_PEM, self.ENCRYPTED_PEM,
                    lambda *args: "hello, public")
            except Error:
                pass
def check_load_privatekey_callback_incorrect(self):
        for i in xrange(self.iterations * 10):
            try:
                load_privatekey(
                    FILETYPE_PEM, self.ENCRYPTED_PEM,
                    lambda *args: "hello, public")
            except Error:
                pass
def check_load_privatekey_callback_incorrect ( self ) : for i in xrange ( self . iterations * 10 ) : try : load_privatekey ( FILETYPE_PEM , self . ENCRYPTED_PEM , lambda * args : "hello, public" ) except Error : pass
Call the function with an encrypted PEM and a passphrase callback which
        returns the wrong passphrase.
Call the function with an encrypted PEM and a passphrase callback which returns the wrong passphrase .