Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewChecksumString (0.27 sec)

  1. internal/hash/checksum.go

    		return nil
    	}
    	c := Checksum{Type: alg, Encoded: value, Raw: bvalue, WantParts: wantParts}
    	if !c.Valid() {
    		return nil
    	}
    	return &c
    }
    
    // NewChecksumString returns a new checksum from specified algorithm and base64 encoded value.
    func NewChecksumString(alg, value string) *Checksum {
    	return NewChecksumWithType(NewChecksumType(alg), value)
    }
    
    // AppendTo will append the checksum to b.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. cmd/erasure-multipart.go

    				return oi, InvalidPart{
    					PartNumber: part.PartNumber,
    					ExpETag:    wantCS[checksumType.String()],
    					GotETag:    crc,
    				}
    			}
    			cs := hash.NewChecksumString(checksumType.String(), crc)
    			if !cs.Valid() {
    				return oi, InvalidPart{
    					PartNumber: part.PartNumber,
    				}
    			}
    			checksumCombined = append(checksumCombined, cs.Raw...)
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
Back to top