def signed(content, private_key_name='signing.key'):
 command = ['openssl', 'dgst', '-sha256', '-sign', join(tests_dir(), private_key_name)]
 (out, err) = out_and_err(command, input=content)
 return out

def signed ( content , private_key_name = 'signing.key' ) : command = [ 'openssl' , 'dgst' , '-sha256' , '-sign' , join ( tests_dir ( ) , private_key_name ) ] ( out , err ) = out_and_err ( command , input = content ) return out
return the signed sha-256 hash of content .