Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ciphertexts (0.53 sec)

  1. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            byte[] encrypted2 = storage.encryptCredentials(plaintext.clone());
    
            // Should produce different ciphertexts due to random IV
            assertFalse(Arrays.equals(encrypted1, encrypted2), "Different encryptions should produce different ciphertexts");
    
            // But both should decrypt to same plaintext
            char[] decrypted1 = storage.decryptCredentials(encrypted1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SecureCredentialStorage.java

                // Encrypt
                byte[] ciphertext = cipher.doFinal(plaintextBytes);
    
                // Combine IV and ciphertext
                byte[] result = new byte[GCM_IV_SIZE + ciphertext.length];
                System.arraycopy(iv, 0, result, 0, GCM_IV_SIZE);
                System.arraycopy(ciphertext, 0, result, GCM_IV_SIZE, ciphertext.length);
    
                return result;
    
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                    // Process AAD (not included in ciphertext)
                    cipher.processAADBytes(associatedData, 0, associatedData.length);
    
                    // Process ciphertext + auth tag
                    final byte[] input = new byte[ciphertext.length + authTag.length];
                    System.arraycopy(ciphertext, 0, input, 0, ciphertext.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/DES.java

         * @param clearText the 8-byte plaintext block
         * @param cipherText the output 8-byte ciphertext block
         */
        public void encrypt(final byte[] clearText, final byte[] cipherText) {
            encrypt(clearText, 0, cipherText, 0);
        }
    
        /// Decrypt a block of bytes.
        /**
         * Decrypts an 8-byte block using DES
         * @param cipherText the 8-byte ciphertext block
         * @param clearText the output 8-byte plaintext block
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  5. cmd/kms-handlers.go

    		return
    	}
    
    	// 2. Verify that we can indeed decrypt the (encrypted) key
    	decryptedKey, err := GlobalKMS.Decrypt(ctx, &kms.DecryptRequest{
    		Name:           key.KeyID,
    		Ciphertext:     key.Ciphertext,
    		AssociatedData: kmsContext,
    	})
    	if err != nil {
    		response.DecryptionErr = err.Error()
    		resp, err := json.Marshal(response)
    		if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. cmd/encryption-v1.go

    		}
    		keyID, kmsKey, sealedKey, err := crypto.S3.ParseMetadata(metadata)
    		if err != nil {
    			return err
    		}
    		oldKey, err := GlobalKMS.Decrypt(ctx, &kms.DecryptRequest{
    			Name:           keyID,
    			Ciphertext:     kmsKey,
    			AssociatedData: kms.Context{bucket: path.Join(bucket, object)},
    		})
    		if err != nil {
    			return err
    		}
    		var objectKey crypto.ObjectKey
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37.8K bytes
    - Viewed (0)
  7. cmd/bucket-metadata.go

    	objectKey := crypto.GenerateKey(key.Plaintext, rand.Reader)
    	sealedKey := objectKey.Seal(key.Plaintext, crypto.GenerateIV(rand.Reader), crypto.S3.String(), bucket, "")
    	crypto.S3.CreateMetadata(metadata, key.KeyID, key.Ciphertext, sealedKey)
    	_, err = sio.Encrypt(outbuf, bytes.NewBuffer(input), sio.Config{Key: objectKey[:], MinVersion: sio.Version20})
    	if err != nil {
    		return output, metabytes, err
    	}
    	metabytes, err = json.Marshal(metadata)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri May 16 14:27:42 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. docs/security/README.md

                     |                         |                         |
                     |                         |                         |
    ciphertext  := sealed_chunk_0   ||       sealed_chunk_1   ||       sealed_chunk_2   ||       ...
    ```
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 26 09:25:50 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  9. cmd/admin-handlers.go

    		return
    	}
    
    	// 2. Verify that we can indeed decrypt the (encrypted) key
    	decryptedKey, err := GlobalKMS.Decrypt(ctx, &kms.DecryptRequest{
    		Name:           key.KeyID,
    		Ciphertext:     key.Ciphertext,
    		AssociatedData: kmsContext,
    	})
    	if err != nil {
    		response.DecryptionErr = err.Error()
    		resp, err := json.Marshal(response)
    		if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
Back to top