Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 225 for 256 (0.09 sec)

  1. src/main/java/jcifs/smb1/util/RC4.java

         * @param klen the length of the key to use
         */
        public void init(final byte[] key, final int ki, final int klen) {
            s = new byte[256];
    
            for (i = 0; i < 256; i++) {
                s[i] = (byte) i;
            }
    
            for (i = j = 0; i < 256; i++) {
                j = j + key[ki + i % klen] + s[i] & 0xff;
                final byte t = s[i];
                s[i] = s[j];
                s[j] = t;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. cmd/bitrot.go

    	"github.com/minio/minio/internal/hash/sha256"
    	"golang.org/x/crypto/blake2b"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/logger"
    )
    
    // magic HH-256 key as HH-256 hash of the first 100 decimals of π as utf-8 string with a zero key.
    var magicHighwayHash256Key = []byte("\x4b\xe7\x34\xfa\x8e\x23\x8a\xcd\x26\x3e\x83\xe6\xbb\x96\x85\x52\x04\x0f\x93\x5d\xa3\x9f\x44\x14\x97\xe0\x9d\x13\x22\xde\x36\xa0")
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 26 19:26:13 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            @Test
            @DisplayName("Should handle empty data in wire format")
            void testWriteBytesWireFormatEmptyData() {
                request.setData(new byte[0], 0, 0);
    
                byte[] buffer = new byte[256];
                int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
                assertEquals(48, bytesWritten); // Only header, no data
                assertEquals(49, SMBUtil.readInt2(buffer, 0)); // Structure size
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  4. src/archive/tar/strconv.go

    		n := len(strings.TrimRight(s[:len(b)-1], "/"))
    		b[n] = 0 // Replace trailing slash with NUL terminator
    	}
    }
    
    // fitsInBase256 reports whether x can be encoded into n bytes using base-256
    // encoding. Unlike octal encoding, base-256 encoding does not require that the
    // string ends with a NUL character. Thus, all n bytes are available for output.
    //
    // If operating in binary mode, this assumes strict GNU binary mode; which means
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        }
    
        @Test
        @DisplayName("writeBytesWireFormat should write correct structure")
        void testWriteBytesWireFormat() {
            byte[] buffer = new byte[256];
            int offset = 64; // Start at offset to test proper indexing
    
            int written = request.writeBytesWireFormat(buffer, offset);
    
            // Verify bytes written
            assertEquals(24, written);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            // Test with binary data containing all byte values
            byte[] data = new byte[256];
            for (int i = 0; i < 256; i++) {
                data[i] = (byte) i;
            }
    
            ContentCache cache = new ContentCache(data);
    
            try (InputStream stream = cache.getInputStream()) {
                for (int i = 0; i < 256; i++) {
                    int byteValue = stream.read();
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

            DummyAndXBlock block = new DummyAndXBlock();
            TestSigningDigest digest = new TestSigningDigest();
            block.digest = digest;
    
            byte[] buf = new byte[256];
            int len = block.encode(buf, 0);
    
            assertTrue(len > 0);
            assertTrue(digest.called, "sign() should be called during encode");
            assertEquals(len, digest.lastLength);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

        void testDecodeMoreProcessingParsesBlobAndFlags() throws Exception {
            Smb2SessionSetupResponse resp = newResponse();
    
            byte[] buf = new byte[256];
            int headerStart = 0;
            long expectedSessionId = 0x1122334455667788L;
            buildHeader(buf, headerStart, NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, 0x0001, expectedSessionId);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            // Support both AES-128 and AES-256 for CCM cipher
            int keyLength = getKeyLength();
            final AEADBlockCipher cipher;
    
            if (keyLength == 16) {
                // AES-128 CCM
                cipher = new CCMBlockCipher(new AESEngine());
            } else if (keyLength == 32) {
                // AES-256 CCM - Bouncy Castle supports AES-256 with same AESEngine
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java

        public static final int CIPHER_AES128_CCM = 0x1;
    
        /**
         * AES 128 GCM
         */
        public static final int CIPHER_AES128_GCM = 0x2;
    
        /**
         * AES 256 CCM
         */
        public static final int CIPHER_AES256_CCM = 0x3;
    
        /**
         * AES 256 GCM
         */
        public static final int CIPHER_AES256_GCM = 0x4;
    
        private int[] ciphers;
    
        /**
         * Constructs an encryption negotiate context.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top