#NEWLINE# def finalize( self ) : #NEWLINE# #INDENT# buf = self . _backend . _ffi . new ( 'unsigned char[]' , self . _backend . _lib . EVP_MAX_MD_SIZE ) #NEWLINE# outlen = self . _backend . _ffi . new ( 'unsigned int *' ) #NEWLINE# res = self . _backend . _lib . Cryptography_HMAC_Final ( self . _ctx , buf , outlen ) #NEWLINE# self . _backend . openssl_assert ( ( outlen != 0 ) ) #NEWLINE# self . _backend . openssl_assert ( ( outlen [ 0 ] == self . algorithm . digest_size ) ) #NEWLINE# return self . _backend . _ffi . buffer ( buf ) [ : outlen [ 0 ] ]