Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 836 for derive (0.05 sec)

  1. src/main/java/jcifs/smb/NtlmContext.java

            }
    
            this.state++;
            return out;
        }
    
        /**
         * Initializes session security keys for signing and sealing.
         * @param mk the master key to derive session keys from
         */
        protected void initSessionSecurity(final byte[] mk) {
            this.signKey = deriveKey(mk, C2S_SIGN_CONSTANT);
            this.verifyKey = deriveKey(mk, S2C_SIGN_CONSTANT);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (1)
  2. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            this.length = 0;
            this.deferred = this;
        }
    
        /**
         * Creates a derived NdrBuffer at the specified index position.
         *
         * @param idx the index position for the derived buffer
         * @return the derived NdrBuffer
         */
        public NdrBuffer derive(final int idx) {
            final NdrBuffer nb = new NdrBuffer(this.buf, this.start);
            nb.index = idx;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java

            mockNdrBuffer.deferred = mockDeferredBuffer;
    
            // Configure mocks for NdrBuffer interactions
            lenient().when(mockDeferredBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer);
            lenient().doNothing().when(mockDeferredBuffer).advance(anyInt());
            // Set up index field for derive operations
            mockDeferredBuffer.index = 0;
        }
    
        @Nested
        @DisplayName("Protocol Information Tests")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            saltBuffer.putInt(rotationCount); // Rotation counter
            saltBuffer.putInt((int) (System.currentTimeMillis() / 1000)); // Timestamp for additional uniqueness
    
            // Derive new keys using SMB3 KDF with rotation-specific input
            final int dialectInt = dialect.getDialect();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                assertNull(message.getTargetInformation(), "Target information should be null when no target is set");
            }
    
            @Test
            @DisplayName("Constructor with CIFSContext and Type1Message should derive flags")
            void testConstructor_CIFSContext_Type1Message() {
                // Given
                CIFSContext mockContext = createMockContext();
                Type1Message type1 = new Type1Message(mockContext);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            byte[] sessionKey = new byte[16];
            byte[] preauthHash = new byte[64];
            new SecureRandom().nextBytes(sessionKey);
            new SecureRandom().nextBytes(preauthHash);
    
            // Derive initial keys
            int dialectInt = DialectVersion.SMB311.getDialect();
            byte[] encKey = Smb3KeyDerivation.deriveEncryptionKey(dialectInt, sessionKey, preauthHash);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTransportImpl.java

            } else {
                throw new SmbUnsupportedOperationException("SMB3 required for encryption, negotiated: " + dialect);
            }
    
            try {
                // Derive encryption and decryption keys using SMB3 KDF
                final int dialectInt = dialect.getDialect();
                final byte[] encryptionKey = Smb3KeyDerivation.deriveEncryptionKey(dialectInt, sessionKey, preauthHash);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  8. cmd/encryption-v1.go

    func (d *DecryptBlocksReader) buildDecrypter(partID int) error {
    	var partIDbin [4]byte
    	binary.LittleEndian.PutUint32(partIDbin[:], uint32(partID)) // marshal part ID
    
    	mac := hmac.New(sha256.New, d.objectEncryptionKey) // derive part encryption key from part ID and object key
    	mac.Write(partIDbin[:])
    	partEncryptionKey := mac.Sum(nil)
    
    	// Limit the reader, so the decryptor doesn't receive bytes
    	// from the next part (different DARE stream)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 38K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/Derived.java

    import com.google.common.annotations.J2ktIncompatible;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Simple derived class to verify that we handle generics correctly. */
    @GwtCompatible
    @NullUnmarked
    class Derived extends Base {
      public Derived(String s) {
        super(s);
      }
    
      @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  10. internal/config/drive/drive.go

    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package drive
    
    import (
    	"sync"
    	"time"
    
    	"github.com/minio/minio/internal/config"
    	"github.com/minio/pkg/v3/env"
    )
    
    // Drive specific timeout environment variables
    const (
    	EnvMaxDriveTimeout       = "MINIO_DRIVE_MAX_TIMEOUT"
    	EnvMaxDriveTimeoutLegacy = "_MINIO_DRIVE_MAX_TIMEOUT"
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Nov 11 14:51:43 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top