def round_trip_strings(self, keys, text): s = signature.sign(text, key=open(keys[0], 'rb').read()) v = signature.verify(text, s, key=open(keys[1], 'rb').read()) return v
def round_trip(self, keys, text): s = signature.sign(text, keys[0]) return signature.verify(text, s, keys[1])