/******************************************************************* Copyright (C) 2011-2024 Patrick H. E. Foubet - S.E.R.I.A.N.E. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see *******************************************************************/ #include #include #include #include #include #include #define BYTE unsigned char extern int DecompressBuf(BYTE*, int, BYTE*, int); static void gen_t3(char *f) { char b[288], bd[408]; int fd, i, nbd; uint64_t *I; I=(uint64_t*)b; for(i=0;i<36;i++) I[i]=0; I[0]=3513492969511296120LLU; I[1]=8170400034739160592LLU; I[2]=16809767885735253328LLU; I[3]=954806354426269396LLU; I[4]=11677140802770568717LLU; I[5]=8483119311209102250LLU; I[6]=14500313015132833724LLU; I[7]=5434976581503397511LLU; I[8]=15612305211765268573LLU; I[9]=6833910393899315227LLU; I[10]=15676298103434189467LLU; I[11]=11763047738657925941LLU; I[12]=8135878780238290482LLU; I[13]=3571190931360249148LLU; I[14]=2745289419384381947LLU; I[15]=11070637244369314136LLU; I[16]=3367933370401970519LLU; I[17]=1538284899570704139LLU; I[18]=5201194001187900790LLU; I[19]=6506655753202087076LLU; I[20]=5788224812616797994LLU; I[21]=7693230472650450955LLU; I[22]=14199225627431177273LLU; I[23]=2035122141195516189LLU; I[24]=6586295435752144235LLU; I[25]=15691205496105394387LLU; I[26]=8087533204979941574LLU; I[27]=3715239556801399409LLU; I[28]=3537875595939442738LLU; I[29]=12035520453502658203LLU; I[30]=8474825777019822134LLU; I[31]=4641326122985918427LLU; I[32]=11240823386667433964LLU; I[33]=5206122259822366698LLU; I[34]=12067097100844682614LLU; nbd = DecompressBuf((BYTE*)b, 280, (BYTE*)bd, 408); if ((fd=creat(f,0644))==-1) { perror(f); return; } if (write(fd,bd,408)!=nbd) perror(f); close(fd); return; }