def verify_rsa_sha1(request, rsa_public_key):
 norm_params = normalize_parameters(request.params)
 uri = normalize_base_string_uri(request.uri)
 message = construct_base_string(request.http_method, uri, norm_params).encode(u'utf-8')
 sig = binascii.a2b_base64(request.signature.encode(u'utf-8'))
 alg = _jwt_rs1_signing_algorithm()
 key = _prepare_key_plus(alg, rsa_public_key)
 return alg.verify(message, key, sig)

def verify_rsa_sha1 ( request , rsa_public_key ) : norm_params = normalize_parameters ( request . params ) uri = normalize_base_string_uri ( request . uri ) message = construct_base_string ( request . http_method , uri , norm_params ) . encode ( u'utf-8' ) sig = binascii . a2b_base64 ( request . signature . encode ( u'utf-8' ) ) alg = _jwt_rs1_signing_algorithm ( ) key = _prepare_key_plus ( alg , rsa_public_key ) return alg . verify ( message , key , sig )
verify a rsassa-pkcs #1 v1 .