Lines Matching refs:Y
254 #define DES_IP(X,Y) \ argument
257 T = (((X) >> 4) ^ (Y)) & 0x0F0F0F0F; (Y) ^= T; (X) ^= (T << 4); \
258 T = (((X) >> 16) ^ (Y)) & 0x0000FFFF; (Y) ^= T; (X) ^= (T << 16); \
259 T = (((Y) >> 2) ^ (X)) & 0x33333333; (X) ^= T; (Y) ^= (T << 2); \
260 T = (((Y) >> 8) ^ (X)) & 0x00FF00FF; (X) ^= T; (Y) ^= (T << 8); \
261 (Y) = (((Y) << 1) | ((Y) >> 31)) & 0xFFFFFFFF; \
262 T = ((X) ^ (Y)) & 0xAAAAAAAA; (Y) ^= T; (X) ^= T; \
269 #define DES_FP(X,Y) \ argument
273 T = ((X) ^ (Y)) & 0xAAAAAAAA; (X) ^= T; (Y) ^= T; \
274 (Y) = (((Y) << 31) | ((Y) >> 1)) & 0xFFFFFFFF; \
275 T = (((Y) >> 8) ^ (X)) & 0x00FF00FF; (X) ^= T; (Y) ^= (T << 8); \
276 T = (((Y) >> 2) ^ (X)) & 0x33333333; (X) ^= T; (Y) ^= (T << 2); \
277 T = (((X) >> 16) ^ (Y)) & 0x0000FFFF; (Y) ^= T; (X) ^= (T << 16); \
278 T = (((X) >> 4) ^ (Y)) & 0x0F0F0F0F; (Y) ^= T; (X) ^= (T << 4); \
284 #define DES_ROUND(X,Y) \ argument
288 (Y) ^= SB8[ (T ) & 0x3F ] ^ \
294 (Y) ^= SB7[ (T ) & 0x3F ] ^ \
424 uint32_t X, Y, T; in mbedtls_des_setkey() local
427 GET_UINT32_BE( Y, key, 4 ); in mbedtls_des_setkey()
432 T = ((Y >> 4) ^ X) & 0x0F0F0F0F; X ^= T; Y ^= (T << 4); in mbedtls_des_setkey()
433 T = ((Y ) ^ X) & 0x10101010; X ^= T; Y ^= (T ); in mbedtls_des_setkey()
440 Y = (RHs[ (Y >> 1) & 0xF] << 3) | (RHs[ (Y >> 9) & 0xF ] << 2) in mbedtls_des_setkey()
441 | (RHs[ (Y >> 17) & 0xF] << 1) | (RHs[ (Y >> 25) & 0xF ] ) in mbedtls_des_setkey()
442 | (RHs[ (Y >> 4) & 0xF] << 7) | (RHs[ (Y >> 12) & 0xF ] << 6) in mbedtls_des_setkey()
443 | (RHs[ (Y >> 20) & 0xF] << 5) | (RHs[ (Y >> 28) & 0xF ] << 4); in mbedtls_des_setkey()
446 Y &= 0x0FFFFFFF; in mbedtls_des_setkey()
456 Y = ((Y << 1) | (Y >> 27)) & 0x0FFFFFFF; in mbedtls_des_setkey()
461 Y = ((Y << 2) | (Y >> 26)) & 0x0FFFFFFF; in mbedtls_des_setkey()
469 | ((Y >> 13) & 0x00002000) | ((Y >> 4) & 0x00001000) in mbedtls_des_setkey()
470 | ((Y << 6) & 0x00000800) | ((Y >> 1) & 0x00000400) in mbedtls_des_setkey()
471 | ((Y >> 14) & 0x00000200) | ((Y ) & 0x00000100) in mbedtls_des_setkey()
472 | ((Y >> 5) & 0x00000020) | ((Y >> 10) & 0x00000010) in mbedtls_des_setkey()
473 | ((Y >> 3) & 0x00000008) | ((Y >> 18) & 0x00000004) in mbedtls_des_setkey()
474 | ((Y >> 26) & 0x00000002) | ((Y >> 24) & 0x00000001); in mbedtls_des_setkey()
482 | ((Y >> 2) & 0x00002000) | ((Y << 8) & 0x00001000) in mbedtls_des_setkey()
483 | ((Y >> 14) & 0x00000808) | ((Y >> 9) & 0x00000400) in mbedtls_des_setkey()
484 | ((Y ) & 0x00000200) | ((Y << 7) & 0x00000100) in mbedtls_des_setkey()
485 | ((Y >> 7) & 0x00000020) | ((Y >> 3) & 0x00000011) in mbedtls_des_setkey()
486 | ((Y << 2) & 0x00000004) | ((Y >> 21) & 0x00000002); in mbedtls_des_setkey()
632 uint32_t X, Y, T, *SK; in mbedtls_des_crypt_ecb() local
637 GET_UINT32_BE( Y, input, 4 ); in mbedtls_des_crypt_ecb()
639 DES_IP( X, Y ); in mbedtls_des_crypt_ecb()
643 DES_ROUND( Y, X ); in mbedtls_des_crypt_ecb()
644 DES_ROUND( X, Y ); in mbedtls_des_crypt_ecb()
647 DES_FP( Y, X ); in mbedtls_des_crypt_ecb()
649 PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des_crypt_ecb()
719 uint32_t X, Y, T, *SK; in mbedtls_des3_crypt_ecb() local
724 GET_UINT32_BE( Y, input, 4 ); in mbedtls_des3_crypt_ecb()
726 DES_IP( X, Y ); in mbedtls_des3_crypt_ecb()
730 DES_ROUND( Y, X ); in mbedtls_des3_crypt_ecb()
731 DES_ROUND( X, Y ); in mbedtls_des3_crypt_ecb()
736 DES_ROUND( X, Y ); in mbedtls_des3_crypt_ecb()
737 DES_ROUND( Y, X ); in mbedtls_des3_crypt_ecb()
742 DES_ROUND( Y, X ); in mbedtls_des3_crypt_ecb()
743 DES_ROUND( X, Y ); in mbedtls_des3_crypt_ecb()
746 DES_FP( Y, X ); in mbedtls_des3_crypt_ecb()
748 PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des3_crypt_ecb()