<s> from M2Crypto import RSA <EOL> from adb import adb_protocol <EOL> class M2CryptoSigner ( adb_protocol . AuthSigner ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , rsa_key_path ) : <EOL> with open ( rsa_key_path + '<STR_LIT>' ) as rsa_pub_file : <EOL> self . public_key = rsa_pub_file . read ( ) <EOL> self . rsa_key = RSA . load_key ( rsa_key_path ) <EOL> def Sign ( self , data ) : <EOL> return self . rsa_key . sign ( data , '<STR_LIT>' ) <EOL> def GetPublicKey ( self ) : <EOL> return self . public_key </s>
