Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsSourceEncrypted (0.08 sec)

  1. internal/crypto/metadata.go

    	delete(metadata, MetaSealedKeyKMS)
    	delete(metadata, MetaKeyID)
    	delete(metadata, MetaDataEncryptionKey)
    	delete(metadata, MetaSsecCRC)
    }
    
    // IsSourceEncrypted returns true if the source is encrypted
    func IsSourceEncrypted(metadata map[string]string) bool {
    	if _, ok := metadata[xhttp.AmzServerSideEncryptionCustomerAlgorithm]; ok {
    		return true
    	}
    	if _, ok := metadata[xhttp.AmzServerSideEncryption]; ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:40:33 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    		case isDstCompressed:
    			targetSize = -1
    		case !isSourceEncrypted && !isTargetEncrypted:
    			targetSize, _ = srcInfo.GetActualSize()
    		case isSourceEncrypted && isTargetEncrypted:
    			objInfo := ObjectInfo{Size: actualSize}
    			targetSize = objInfo.EncryptedSize()
    		case !isSourceEncrypted && isTargetEncrypted:
    			targetSize = srcInfo.EncryptedSize()
    		case isSourceEncrypted && !isTargetEncrypted:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top