#NEWLINE# def hmac_sha256( k , m ) : #NEWLINE# #INDENT# '\n    Compute the key and the message with HMAC SHA5256\n    ' #NEWLINE# key = OpenSSL . malloc ( k , len ( k ) ) #NEWLINE# d = OpenSSL . malloc ( m , len ( m ) ) #NEWLINE# md = OpenSSL . malloc ( 0 , 32 ) #NEWLINE# i = OpenSSL . pointer ( OpenSSL . c_int ( 0 ) ) #NEWLINE# OpenSSL . HMAC ( OpenSSL . EVP_sha256 ( ) , key , len ( k ) , d , len ( m ) , m , i ) #NEWLINE# return md . raw