#NEWLINE# def simplified_SRP_step4( state ) : #NEWLINE# #INDENT# x = sha256 ( ( intToBytes ( state [ 'salt' ] ) + state [ 'P' ] ) ) . hexdigest ( ) #NEWLINE# S = mypow ( state [ 'B' ] , ( state [ 'a' ] + ( state [ 'u' ] * int ( x , 16 ) ) ) , state [ 'p' ] ) #NEWLINE# state [ 'C_K' ] = sha256 ( intToBytes ( S ) ) . digest ( ) #NEWLINE# return state