Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for EncryptedSize (0.18 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)
  5. cmd/object-handlers.go

    			targetSize, _ = srcInfo.GetActualSize()
    		case isSourceEncrypted && isTargetEncrypted:
    			objInfo := ObjectInfo{Size: actualSize}
    			targetSize = objInfo.EncryptedSize()
    		case !isSourceEncrypted && isTargetEncrypted:
    			targetSize = srcInfo.EncryptedSize()
    		case isSourceEncrypted && !isTargetEncrypted:
    			targetSize, _ = srcInfo.DecryptedSize()
    		}
    
    		if isTargetEncrypted {
    			var encReader io.Reader
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  6. cmd/bucket-handlers.go

    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return
    			}
    
    			wantSize := int64(-1)
    			if actualSize >= 0 {
    				info := ObjectInfo{Size: actualSize}
    				wantSize = info.EncryptedSize()
    			}
    
    			// do not try to verify encrypted content/
    			hashReader, err = hash.NewReader(ctx, reader, wantSize, "", "", actualSize)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
Back to top