Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ksRotations (0.13 sec)

  1. src/crypto/des/const.go

    		{7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8},
    		{2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11},
    	},
    }
    
    // Size of left rotation per round in each half of the key schedule
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 12:31:18 UTC 2017
    - 4.5K bytes
    - Viewed (0)
  2. src/crypto/des/block.go

    func ksRotate(in uint32) (out []uint32) {
    	out = make([]uint32, 16)
    	last := in
    	for i := 0; i < 16; i++ {
    		// 28-bit circular left shift
    		left := (last << (4 + ksRotations[i])) >> 4
    		right := (last << 4) >> (32 - ksRotations[i])
    		out[i] = left | right
    		last = out[i]
    	}
    	return
    }
    
    // creates 16 56-bit subkeys from the original key.
    func (c *desCipher) generateSubkeys(keyBytes []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top