Lines Matching refs:Y
232 #define DES_IP(X,Y) \ argument
235 T = (((X) >> 4) ^ (Y)) & 0x0F0F0F0F; (Y) ^= T; (X) ^= (T << 4); \
236 T = (((X) >> 16) ^ (Y)) & 0x0000FFFF; (Y) ^= T; (X) ^= (T << 16); \
237 T = (((Y) >> 2) ^ (X)) & 0x33333333; (X) ^= T; (Y) ^= (T << 2); \
238 T = (((Y) >> 8) ^ (X)) & 0x00FF00FF; (X) ^= T; (Y) ^= (T << 8); \
239 (Y) = (((Y) << 1) | ((Y) >> 31)) & 0xFFFFFFFF; \
240 T = ((X) ^ (Y)) & 0xAAAAAAAA; (Y) ^= T; (X) ^= T; \
247 #define DES_FP(X,Y) \ argument
251 T = ((X) ^ (Y)) & 0xAAAAAAAA; (X) ^= T; (Y) ^= T; \
252 (Y) = (((Y) << 31) | ((Y) >> 1)) & 0xFFFFFFFF; \
253 T = (((Y) >> 8) ^ (X)) & 0x00FF00FF; (X) ^= T; (Y) ^= (T << 8); \
254 T = (((Y) >> 2) ^ (X)) & 0x33333333; (X) ^= T; (Y) ^= (T << 2); \
255 T = (((X) >> 16) ^ (Y)) & 0x0000FFFF; (Y) ^= T; (X) ^= (T << 16); \
256 T = (((X) >> 4) ^ (Y)) & 0x0F0F0F0F; (Y) ^= T; (X) ^= (T << 4); \
262 #define DES_ROUND(X,Y) \ argument
266 (Y) ^= SB8[ (T ) & 0x3F ] ^ \
272 (Y) ^= SB7[ (T ) & 0x3F ] ^ \
402 uint32_t X, Y, T; in mbedtls_des_setkey() local
405 Y = MBEDTLS_GET_UINT32_BE( key, 4 ); in mbedtls_des_setkey()
410 T = ((Y >> 4) ^ X) & 0x0F0F0F0F; X ^= T; Y ^= (T << 4); in mbedtls_des_setkey()
411 T = ((Y ) ^ X) & 0x10101010; X ^= T; Y ^= (T ); in mbedtls_des_setkey()
418 Y = (RHs[ (Y >> 1) & 0xF] << 3) | (RHs[ (Y >> 9) & 0xF ] << 2) in mbedtls_des_setkey()
419 | (RHs[ (Y >> 17) & 0xF] << 1) | (RHs[ (Y >> 25) & 0xF ] ) in mbedtls_des_setkey()
420 | (RHs[ (Y >> 4) & 0xF] << 7) | (RHs[ (Y >> 12) & 0xF ] << 6) in mbedtls_des_setkey()
421 | (RHs[ (Y >> 20) & 0xF] << 5) | (RHs[ (Y >> 28) & 0xF ] << 4); in mbedtls_des_setkey()
424 Y &= 0x0FFFFFFF; in mbedtls_des_setkey()
434 Y = ((Y << 1) | (Y >> 27)) & 0x0FFFFFFF; in mbedtls_des_setkey()
439 Y = ((Y << 2) | (Y >> 26)) & 0x0FFFFFFF; in mbedtls_des_setkey()
447 | ((Y >> 13) & 0x00002000) | ((Y >> 4) & 0x00001000) in mbedtls_des_setkey()
448 | ((Y << 6) & 0x00000800) | ((Y >> 1) & 0x00000400) in mbedtls_des_setkey()
449 | ((Y >> 14) & 0x00000200) | ((Y ) & 0x00000100) in mbedtls_des_setkey()
450 | ((Y >> 5) & 0x00000020) | ((Y >> 10) & 0x00000010) in mbedtls_des_setkey()
451 | ((Y >> 3) & 0x00000008) | ((Y >> 18) & 0x00000004) in mbedtls_des_setkey()
452 | ((Y >> 26) & 0x00000002) | ((Y >> 24) & 0x00000001); in mbedtls_des_setkey()
460 | ((Y >> 2) & 0x00002000) | ((Y << 8) & 0x00001000) in mbedtls_des_setkey()
461 | ((Y >> 14) & 0x00000808) | ((Y >> 9) & 0x00000400) in mbedtls_des_setkey()
462 | ((Y ) & 0x00000200) | ((Y << 7) & 0x00000100) in mbedtls_des_setkey()
463 | ((Y >> 7) & 0x00000020) | ((Y >> 3) & 0x00000011) in mbedtls_des_setkey()
464 | ((Y << 2) & 0x00000004) | ((Y >> 21) & 0x00000002); in mbedtls_des_setkey()
610 uint32_t X, Y, T, *SK; in mbedtls_des_crypt_ecb() local
615 Y = MBEDTLS_GET_UINT32_BE( input, 4 ); in mbedtls_des_crypt_ecb()
617 DES_IP( X, Y ); in mbedtls_des_crypt_ecb()
621 DES_ROUND( Y, X ); in mbedtls_des_crypt_ecb()
622 DES_ROUND( X, Y ); in mbedtls_des_crypt_ecb()
625 DES_FP( Y, X ); in mbedtls_des_crypt_ecb()
627 MBEDTLS_PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des_crypt_ecb()
704 uint32_t X, Y, T, *SK; in mbedtls_des3_crypt_ecb() local
709 Y = MBEDTLS_GET_UINT32_BE( input, 4 ); in mbedtls_des3_crypt_ecb()
711 DES_IP( X, Y ); in mbedtls_des3_crypt_ecb()
715 DES_ROUND( Y, X ); in mbedtls_des3_crypt_ecb()
716 DES_ROUND( X, Y ); in mbedtls_des3_crypt_ecb()
721 DES_ROUND( X, Y ); in mbedtls_des3_crypt_ecb()
722 DES_ROUND( Y, X ); in mbedtls_des3_crypt_ecb()
727 DES_ROUND( Y, X ); in mbedtls_des3_crypt_ecb()
728 DES_ROUND( X, Y ); in mbedtls_des3_crypt_ecb()
731 DES_FP( Y, X ); in mbedtls_des3_crypt_ecb()
733 MBEDTLS_PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des3_crypt_ecb()