Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ConstantTimeCopy (1.39 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. lib/fips140/v1.0.0-c2097c7c.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 Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Sep 25 19:53:19 UTC 2025
    - 642.7K bytes
    - Viewed (0)
  3. lib/fips140/v1.1.0-rc1.zip

    copy(xb[8-len(x):], x) copy(yb[8-len(y):], y) x0 := byteorder.BEUint64(xb) y0 := byteorder.BEUint64(yb) _, b = bits.Sub64(y0, x0, b) } return int(b ^ 1) } // 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 Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 16:27:41 UTC 2025
    - 663K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg crypto/sha512, func New384() hash.Hash
    pkg crypto/subtle, func ConstantTimeByteEq(uint8, uint8) int
    pkg crypto/subtle, func ConstantTimeCompare([]uint8, []uint8) int
    pkg crypto/subtle, func ConstantTimeCopy(int, []uint8, []uint8)
    pkg crypto/subtle, func ConstantTimeEq(int32, int32) int
    pkg crypto/subtle, func ConstantTimeSelect(int, int, int) int
    pkg crypto/tls, const NoClientCert ClientAuthType
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top