Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for _encrypted (0.08 sec)

  1. tests/update_test.go

    	return nil
    }
    
    type Token struct {
    	UserID  int    `gorm:"primary_key"`
    	Content string `gorm:"type:varchar(100)"`
    }
    
    func (t *Token) BeforeSave(tx *gorm.DB) error {
    	t.Content += "_encrypted"
    	return nil
    }
    
    func TestSaveWithHooks(t *testing.T) {
    	DB.Migrator().DropTable(&Token{}, &TokenOwner{})
    	DB.AutoMigrate(&Token{}, &TokenOwner{})
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  2. cmd/encryption-v1.go

    	if len(data) == 0 {
    		return nil
    	}
    	if part > 0 && !crypto.SSEC.IsEncrypted(o.UserDefined) {
    		// already decrypted in ToObjectInfo for multipart objects
    		for _, pi := range o.Parts {
    			if pi.Number == part {
    				return pi.Checksums
    			}
    		}
    	}
    	if _, encrypted := crypto.IsEncrypted(o.UserDefined); encrypted {
    		decrypted, err := o.metadataDecrypter(h)("object-checksum", data)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:06:08 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  3. internal/etag/etag.go

    	}
    	return hex.EncodeToString(e)
    }
    
    // IsEncrypted reports whether the ETag is encrypted.
    func (e ETag) IsEncrypted() bool {
    	// An encrypted ETag must be at least 32 bytes long.
    	// It contains the encrypted ETag value + an authentication
    	// code generated by the AEAD cipher.
    	//
    	// Here is an incorrect implementation of IsEncrypted:
    	//
    	//   return len(e) > 16 && !bytes.ContainsRune(e, '-')
    	//
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. docs/en/docs/deployment/https.md

        * The contents are **encrypted**, even though they are being sent with the **HTTP protocol**.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. cmd/encryption-v1_test.go

    	for i, test := range decryptObjectMetaTests {
    		if encrypted, err := DecryptObjectInfo(&test.info, test.request); err != test.expErr {
    			t.Errorf("Test %d: Decryption returned wrong error code: got %d , want %d", i, err, test.expErr)
    		} else if _, enc := crypto.IsEncrypted(test.info.UserDefined); encrypted && enc != encrypted {
    			t.Errorf("Test %d: Decryption thinks object is encrypted but it is not", i)
    		} else if !encrypted && enc != encrypted {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 24 04:17:08 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  6. internal/crypto/metadata_test.go

    func TestIsEncrypted(t *testing.T) {
    	for i, test := range isEncryptedTests {
    		if _, isEncrypted := IsEncrypted(test.Metadata); isEncrypted != test.Encrypted {
    			t.Errorf("Test %d: got '%v' - want '%v'", i, isEncrypted, test.Encrypted)
    		}
    	}
    }
    
    var s3IsEncryptedTests = []struct {
    	Metadata  map[string]string
    	Encrypted bool
    }{
    	{Encrypted: false, Metadata: map[string]string{MetaMultipart: ""}},                             // 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  7. docs/security/README.md

    - Delete one/some master keys. From a security standpoint, this is equal to erasing all SSE-S3 encrypted objects protected by these master keys. All these objects are lost forever as they cannot be decrypted. Especially deleting all master keys at the KMS is equivalent to secure erasing all SSE-S3 encrypted objects.
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Feb 12 00:51:25 UTC 2022
    - 13.8K bytes
    - Viewed (0)
  8. cmd/object-api-utils.go

    	}
    
    	_, isEncrypted := crypto.IsEncrypted(oi.UserDefined)
    	isCompressed, err := oi.IsCompressedOK()
    	if err != nil {
    		return nil, 0, 0, err
    	}
    
    	// if object is encrypted and it is a restore request or if NoDecryption
    	// was requested, fetch content without decrypting.
    	if opts.Transition.RestoreRequest != nil || opts.NoDecryption {
    		isEncrypted = false
    		isCompressed = false
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  9. cmd/object-multipart-handlers.go

    	}
    
    	pReader := NewPutObjReader(hashReader)
    
    	_, isEncrypted := crypto.IsEncrypted(mi.UserDefined)
    	_, replicationStatus := mi.UserDefined[xhttp.AmzBucketReplicationStatus]
    	_, sourceReplReq := r.Header[xhttp.MinIOSourceReplicationRequest]
    	var objectEncryptionKey crypto.ObjectKey
    	if isEncrypted {
    		if !crypto.SSEC.IsRequested(r.Header) && crypto.SSEC.IsEncrypted(mi.UserDefined) && !replicationStatus {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmContext.java

            }
    
            boolean encrypted = ( this.ntlmsspFlags & NtlmFlags.NTLMSSP_NEGOTIATE_KEY_EXCH ) != 0;
            if ( encrypted ) {
                try {
                    trunc = this.sealServerHandle.doFinal(trunc);
                    if ( log.isDebugEnabled() ) {
                        log.debug("Decrypted " + Hexdump.toHexString(trunc));
                    }
                }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 15.7K bytes
    - Viewed (0)
Back to top