<commit_before>#pragma once
#include <eoslib/types.h>

/**
 *  This method is implemented as:
 *
 *  uint256 calc_hash;
 *  sha256( data, length, &calc_hash );
 *  assert( calc_hash == hash, "invalid hash" );
 *
 *  This method is optimized to a NO-OP when in fast evaluation mode
 */
void assert_sha256( char* data, uint32_t length, const uint256* hash );

/**
 *  Calculates sha256( data,length) and stores result in memory pointed to by hash 
 */
void sha256( char* data, uint32_t length, uint256* hash );

<commit_msg>Add C linkage to crypto functions<commit_after>#pragma once
#include <eoslib/types.h>
extern "C" {
/**
 *  This method is implemented as:
 *
 *  uint256 calc_hash;
 *  sha256( data, length, &calc_hash );
 *  assert( calc_hash == hash, "invalid hash" );
 *
 *  This method is optimized to a NO-OP when in fast evaluation mode
 */
void assert_sha256( char* data, uint32_t length, const uint256* hash );

/**
 *  Calculates sha256( data,length) and stores result in memory pointed to by hash 
 */
void sha256( char* data, uint32_t length, uint256* hash );
}
{'fraction_non_alphanumeric': 0.1171003717472119, 'fraction_numerical': 0.046468401486988845, 'mean_word_length': 3.9631336405529956, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4407503', 'n_tokens_mistral': 389, 'n_tokens_neox': 350, 'n_words': 129}