Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for hashBytes (0.04 sec)

  1. cmd/xl-storage_test.go

    		t.Fatal(err)
    	}
    	algo := HighwayHash256
    	h := algo.New()
    	h.Write(data)
    	hashBytes := h.Sum(nil)
    	if err := storage.WriteAll(t.Context(), volName, fileName, data); err != nil {
    		t.Fatal(err)
    	}
    	if err := storage.storage.bitrotVerify(t.Context(), pathJoin(path, volName, fileName), size, algo, hashBytes, 0); err != nil {
    		t.Fatal(err)
    	}
    
    	// 2) Whole-file bitrot check on corrupted file
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
Back to top