Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ConstantTimeCopy (0.38 sec)

  1. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            final byte[] ciphertext = new byte[encrypted.length - tagLength];
            final byte[] authTag = new byte[tagLength];
    
            // Use constant-time copy operations
            constantTimeCopy(encrypted, 0, ciphertext, 0, ciphertext.length);
            constantTimeCopy(encrypted, ciphertext.length, authTag, 0, tagLength);
    
            return new EncryptionResult(ciphertext, authTag);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. lib/fips140/v1.0.0.zip

    >> 31) } // ConstantTimeEq returns 1 if x == y and 0 otherwise. func ConstantTimeEq(x, y int32) int { return int((uint64(uint32(x^y)) - 1) >> 63) } // ConstantTimeCopy copies the contents of y into x (a slice of equal length) // if v == 1. If v == 0, x is left unchanged. Its behavior is undefined if v // takes any other value. func ConstantTimeCopy(v int, x, y []byte) { if len(x) != len(y) { panic("subtle: slices have different lengths") } xmask := byte(v - 1) ymask := byte(^(v - 1)) for i := 0; i...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
Back to top