Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for md5 (0.15 sec)

  1. internal/crypto/error.go

    	// ErrCustomerKeyMD5Mismatch indicates that the SSE-C key MD5 does not match the
    	// computed MD5 sum. This means that the client provided either the wrong key for
    	// a certain MD5 checksum or the wrong MD5 for a certain key.
    	ErrCustomerKeyMD5Mismatch = Errorf("The provided SSE-C key MD5 does not match the computed MD5 of the SSE-C key")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. internal/crypto/key.go

    // It does not encrypt empty ETags because such ETags indicate
    // that the S3 client hasn't sent an ETag = MD5(object) and
    // the backend can pick an ETag value.
    func (key ObjectKey) SealETag(etag []byte) []byte {
    	if len(etag) == 0 { // don't encrypt empty ETag - only if client sent ETag = MD5(object)
    		return etag
    	}
    	var buffer bytes.Buffer
    	mac := hmac.New(sha256.New, key[:])
    	mac.Write([]byte("SSE-etag"))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 20:28:10 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  3. cmd/auth-handler_test.go

    		// Empty Content-Md5 header.
    		{mustNewSignedEmptyMD5Request(http.MethodPut, "http://127.0.0.1:9000/", 5, bytes.NewReader([]byte("hello")), t), ErrInvalidDigest},
    		// Short Content-Md5 header.
    		{mustNewSignedShortMD5Request(http.MethodPut, "http://127.0.0.1:9000/", 5, bytes.NewReader([]byte("hello")), t), ErrInvalidDigest},
    		// When request is properly signed, but has bad Content-MD5 header.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. cmd/object-multipart-handlers.go

    	// The ETag of a multi-part object is always:
    	//   ETag := MD5(ETag_p1, ETag_p2, ...)+"-N"   (N being the number of parts)
    	//
    	// This is independent of encryption. An encrypted multipart
    	// object also has an ETag that is the MD5 of its part ETags.
    	// The fact the in case of encryption the ETag of a part is
    	// not the MD5 of the part content does not change that.
    	var completeETags []etag.ETag
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  5. cmd/object_api_suite_test.go

    		if err != nil {
    			t.Errorf("%s: <ERROR> %s", instanceType, err)
    		}
    		if calcPartInfo.ETag != expectedETaghex {
    			t.Errorf("MD5 Mismatch")
    		}
    		completedParts.Parts = append(completedParts.Parts, CompletePart{
    			PartNumber: i,
    			ETag:       calcPartInfo.ETag,
    		})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  6. internal/etag/etag.go

    // when the object is uploaded in multiple parts via the S3
    // multipart API. Instead, S3 first computes a MD5 of each part:
    //
    //	 e1 := MD5(part-1)
    //	 e2 := MD5(part-2)
    //	...
    //	 eN := MD5(part-N)
    //
    // Then, the ETag of the object is computed as MD5 of all individual
    // part checksums. S3 also encodes the number of parts into the ETag
    // by appending a -<number-of-parts> at the end:
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  7. cmd/sftp-server.go

    	chacha20Poly1305ID,
    	"aes128-ctr", "aes192-ctr", "aes256-ctr",
    }
    
    // supportedMACs specifies a default set of MAC algorithms in preference order.
    // This is based on RFC 4253, section 6.4, but with hmac-md5 variants removed
    // because they have reached the end of their useful life.
    // https://cs.opensource.google/go/x/crypto/+/refs/tags/v0.22.0:ssh/common.go;l=85
    var supportedMACs = []string{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. cmd/server_test.go

    		int64(buffer1.Len()), buffer1, s.accessKey, s.secretKey, s.signer)
    	c.Assert(err, nil)
    	// set Content-Md5 to invalid value.
    	request.Header.Set("Content-Md5", "kvLTlMrX9NpYDQlEIFlnDA==")
    	// expecting a failure during upload.
    	response, err = s.client.Do(request)
    	c.Assert(err, nil)
    	// Since Content-Md5 header was wrong, expecting to fail with "SignatureDoesNotMatch" error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  9. cmd/object-api-listobjects_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"crypto/md5"
    	"encoding/hex"
    	"fmt"
    	"strconv"
    	"strings"
    	"testing"
    )
    
    func TestListObjectsVersionedFolders(t *testing.T) {
    	ExecObjectLayerTest(t, testListObjectsVersionedFolders)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  10. cmd/api-errors.go

    		Description:    "Requests specifying Server Side Encryption with Customer provided keys must provide the client calculated MD5 of the secret key.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrSSECustomerKeyMD5Mismatch: {
    		Code:           "InvalidArgument",
    		Description:    "The calculated MD5 hash of the key did not match the hash that was provided.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
Back to top