Fossil

Diff
Login

Diff

Differences From Artifact [85aac87fb2]:

To Artifact [91bce9e473]:


622
623
624
625
626
627
628
629
630


631
632
633
634
635
636
637
638
639
640

641
642
643
644
645
646
647
622
623
624
625
626
627
628


629
630
631
632
633
634
635
636
637
638
639

640
641
642
643
644
645
646
647







-
-
+
+









-
+







** Usage: %fossil sha3sum FILE...
**
** Compute an SHA3 checksum of all files named on the command-line.
** If a file is named "-" then take its content from standard input.
**
** Options:
**
**    --224        Compute a SHA3-224 hash (the default)
**    --256        Compute a SHA3-256 hash
**    --224        Compute a SHA3-224 hash
**    --256        Compute a SHA3-256 hash (the default)
**    --384        Compute a SHA3-384 hash
**    --512        Compute a SHA3-512 hash
**    --size N     An N-bit hash.  N must be a multiple of 32 between 128
**                 and 512.
*/
void sha3sum_test(void){
  int i;
  Blob in;
  Blob cksum;
  int iSize = 224;
  int iSize = 256;

  if( find_option("224",0,0)!=0 ) iSize = 224;
  else if( find_option("256",0,0)!=0 ) iSize = 256;
  else if( find_option("384",0,0)!=0 ) iSize = 384;
  else if( find_option("512",0,0)!=0 ) iSize = 512;
  else{
    const char *zN = find_option("size",0,1);