mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: encrypt checksums in metadata (#15620)
This commit is contained in:
@@ -215,7 +215,10 @@ func NewChecksumString(alg, value string) *Checksum {
|
||||
|
||||
// AppendTo will append the checksum to b.
|
||||
// ReadCheckSums reads the values back.
|
||||
func (c Checksum) AppendTo(b []byte) []byte {
|
||||
func (c *Checksum) AppendTo(b []byte) []byte {
|
||||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
var tmp [binary.MaxVarintLen32]byte
|
||||
n := binary.PutUvarint(tmp[:], uint64(c.Type))
|
||||
crc := c.Raw()
|
||||
|
||||
Reference in New Issue
Block a user