Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/om/sha256/parity/par.c # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / om / sha256 / parity / par.c` 22 lines ยท 1696 bytes Raw Blame History 1 #include "sha256.h" 2 #include 3 #include 4 #include 5 void orc_sha256_init(sha256_ctx *);void orc_sha256_update(sha256_ctx *,const uint8_t*,size_t);void orc_sha256_final(sha256_ctx*,uint8_t*);void orc_sha256_hash(const uint8_t*,size_t,uint8_t*); 6 static uint64_t s=88172645463325252ULL; static uint64_t rnd(void){s^=s<<13;s^=s>>7;s^=s<<17;return s;} 7 int main(void){ static uint8_t buf[1<<21]; int cases=0, bad=0; 8 size_t lens[]={0,1,3,55,56,57,63,64,65,119,120,127,128,129,1000,4095,4096,4097}; 9 for(int t=0;t<2000;t++){ size_t n = t<18? lens[t] : (t<1000? rnd()%300 : rnd()%(1<<21)); 10 for(size_t i=0;i