Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EncryptedSize (0.07 sec)

  1. cmd/encryption-v1.go

    	seqNumber = uint32(startPkgNum)
    	return encOff, encLength, skipLen, seqNumber, partStart, nil
    }
    
    // EncryptedSize returns the size of the object after encryption.
    // An encrypted object is always larger than a plain object
    // except for zero size objects.
    func (o *ObjectInfo) EncryptedSize() int64 {
    	size, err := sio.EncryptedSize(uint64(o.Size))
    	if err != nil {
    		// This cannot happen since AWS S3 allows parts to be 5GB at most
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:06:08 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  2. cmd/encryption-v1_test.go

    	var (
    		pkgSz     = int64(64) * humanize.KiByte
    		minPartSz = int64(5) * humanize.MiByte
    		maxPartSz = int64(5) * humanize.GiByte
    
    		getEncSize = func(s int64) int64 {
    			v, _ := sio.EncryptedSize(uint64(s))
    			return int64(v)
    		}
    		udMap = func(isMulti bool) map[string]string {
    			m := map[string]string{
    				crypto.MetaAlgorithm: crypto.InsecureSealAlgorithm,
    				crypto.MetaMultipart: "1",
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 24 04:17:08 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  3. cmd/tier.go

    	if err != nil {
    		return nil, nil, err
    	}
    
    	info := ObjectInfo{
    		Size: payloadSize,
    	}
    	encSize := info.EncryptedSize()
    	encHr, err := hash.NewReader(ctx, encBr, encSize, "", "", encSize)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	pReader, err := NewPutObjReader(hr).WithEncryption(encHr, &oek)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. cmd/object-multipart-handlers.go

    			return
    		}
    		reader = etag.Wrap(encReader, reader)
    
    		wantSize := int64(-1)
    		if length >= 0 {
    			info := ObjectInfo{Size: length}
    			wantSize = info.EncryptedSize()
    		}
    
    		srcInfo.Reader, err = hash.NewReader(ctx, reader, wantSize, "", "", actualPartSize)
    		if err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
Back to top