Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewBitrotVerifier (0.1 sec)

  1. cmd/bitrot.go

    	name, ok := bitrotAlgorithms[a]
    	if !ok {
    		logger.CriticalIf(GlobalContext, errors.New("Unsupported bitrot algorithm"))
    	}
    	return name
    }
    
    // NewBitrotVerifier returns a new BitrotVerifier implementing the given algorithm.
    func NewBitrotVerifier(algorithm BitrotAlgorithm, checksum []byte) *BitrotVerifier {
    	return &BitrotVerifier{algorithm, checksum}
    }
    
    // BitrotVerifier can be used to verify protected data.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top