Lines Matching refs:tmp
644 int j, tmp; in MultprecModulo() local
715 tmp = (int32_t)(uint32_t)(q_hat << 16); /* quotient upper part */ in MultprecModulo()
745 q_hat |= (unsigned)tmp; /* other half of the quotient */ in MultprecModulo()
1696 uint64_t *b64, *c64, *m64, *tmp; in CASPER_montsub() local
1703 tmp = (uint64_t *)(uintptr_t)&CASPER_MEM[0]; in CASPER_montsub()
1705 CASPER_MEMCPY(tmp, A, N_wordlen * sizeof(uint32_t)); in CASPER_montsub()
1710 …rypto_mul(Accel_IterOpcodeResaddr(N_wordlen / 2U - 1U, (uint32_t)kCASPER_OpSub64, CA_MK_OFF(tmp))); in CASPER_montsub()
1713 …borrow = (int32_t)((GET_WORD(&((uint32_t *)(uintptr_t)tmp)[N_wordlen - 1U])) > GET_WORD(&A[N_wordl… in CASPER_montsub()
1714 CASPER_MEMCPY(c64, tmp, N_wordlen * sizeof(uint32_t)); in CASPER_montsub()
1721 casper_select(C, (uint32_t *)(uintptr_t)tmp, C, borrow, (int16_t)(uint16_t)N_wordlen); in CASPER_montsub()
1729 uint64_t *b64, *c64, *m64, *tmp; in CASPER_montadd() local
1736 tmp = (uint64_t *)(uintptr_t)&CASPER_MEM[0]; in CASPER_montadd()
1738 CASPER_MEMCPY(tmp, A, N_wordlen * sizeof(uint32_t)); in CASPER_montadd()
1739 SET_DWORD(&tmp[N_wordlen / 2U], 0ULL); in CASPER_montadd()
1746 …cel_crypto_mul(Accel_IterOpcodeResaddr(N_wordlen / 2U, (uint32_t)kCASPER_OpAdd64, CA_MK_OFF(tmp))); in CASPER_montadd()
1749 CASPER_MEMCPY(c64, tmp, (N_wordlen + 2U) * sizeof(uint32_t)); in CASPER_montadd()
1757 …borrow = (int32_t)(GET_WORD(&C[N_wordlen]) > GET_WORD(&(((uint32_t *)(uintptr_t)tmp)[N_wordlen]))); in CASPER_montadd()
1758 casper_select(C, C, (uint32_t *)(uintptr_t)tmp, borrow, (int16_t)(uint16_t)N_wordlen); in CASPER_montadd()
2804 uint32_t *t, *t2, *s1, *s2, *s4, *s8, *tmp; in invert_mod_p256() local
2825 tmp = &CASPER_MEM[((2U * ((uint32_t)kCASPER_ECC_P256_wordlen + 4U)) + in invert_mod_p256()
2830 square_casper(tmp, a); in invert_mod_p256()
2831 multiply_casper(t2, tmp, a); in invert_mod_p256()
2835 square_casper(tmp, s1); in invert_mod_p256()
2836 multiply_casper(s1, tmp, t2); in invert_mod_p256()
2841 square_casper(tmp, s2); in invert_mod_p256()
2842 square_casper(s2, tmp); in invert_mod_p256()
2843 square_casper(tmp, s2); in invert_mod_p256()
2844 multiply_casper(s2, tmp, s1); in invert_mod_p256()
2850 square_casper(tmp, s4); in invert_mod_p256()
2851 square_casper(s4, tmp); in invert_mod_p256()
2853 square_casper(tmp, s4); in invert_mod_p256()
2854 multiply_casper(s4, tmp, s2); in invert_mod_p256()
2860 square_casper(tmp, s8); in invert_mod_p256()
2861 square_casper(s8, tmp); in invert_mod_p256()
2863 square_casper(tmp, s8); in invert_mod_p256()
2864 multiply_casper(s8, tmp, s4); in invert_mod_p256()
2867 square_casper(tmp, s8); in invert_mod_p256()
2870 square_casper(t, tmp); in invert_mod_p256()
2871 square_casper(tmp, t); in invert_mod_p256()
2873 square_casper(t, tmp); in invert_mod_p256()
2874 multiply_casper(tmp, t, a); in invert_mod_p256()
2879 square_casper(t, tmp); in invert_mod_p256()
2880 square_casper(tmp, t); in invert_mod_p256()
2882 multiply_casper(t, tmp, s8); in invert_mod_p256()
2887 square_casper(tmp, t); in invert_mod_p256()
2888 square_casper(t, tmp); in invert_mod_p256()
2890 multiply_casper(tmp, t, s8); in invert_mod_p256()
2895 square_casper(t, tmp); in invert_mod_p256()
2896 square_casper(tmp, t); in invert_mod_p256()
2898 multiply_casper(t, tmp, s4); in invert_mod_p256()
2903 square_casper(tmp, t); in invert_mod_p256()
2904 square_casper(t, tmp); in invert_mod_p256()
2906 multiply_casper(tmp, t, s2); in invert_mod_p256()
2911 square_casper(t, tmp); in invert_mod_p256()
2912 square_casper(tmp, t); in invert_mod_p256()
2914 multiply_casper(t, tmp, s1); in invert_mod_p256()
2917 square_casper(tmp, t); in invert_mod_p256()
2918 square_casper(t, tmp); in invert_mod_p256()
2919 multiply_casper(tmp, t, t2); in invert_mod_p256()
2922 square_casper(t, tmp); in invert_mod_p256()
2923 square_casper(tmp, t); in invert_mod_p256()
2924 multiply_casper(c, tmp, a); in invert_mod_p256()
2961 uint32_t *e, *d, *tmp, *t0, *t1, *t2, *t3, *t4, *t5, *t6; // 10 residues needed in invert_mod_p384() local
2968 tmp = in invert_mod_p384()
2978 square_casper(tmp, a); // 2 in invert_mod_p384()
2979 square_casper(t1, tmp); // 4 in invert_mod_p384()
2980 square_casper(tmp, t1); // 8 in invert_mod_p384()
2981 multiply_casper(t2, tmp, t1); // 12 in invert_mod_p384()
2987 square_casper(tmp, t0); in invert_mod_p384()
2988 square_casper(t1, tmp); in invert_mod_p384()
2989 square_casper(tmp, t1); in invert_mod_p384()
2990 square_casper(t2, tmp); in invert_mod_p384()
2994 square_casper(tmp, t1); in invert_mod_p384()
2997 square_casper(t3, tmp); in invert_mod_p384()
2998 square_casper(tmp, t3); in invert_mod_p384()
3000 square_casper(t3, tmp); in invert_mod_p384()
3004 square_casper(tmp, t2); in invert_mod_p384()
3007 square_casper(t4, tmp); in invert_mod_p384()
3008 square_casper(tmp, t4); in invert_mod_p384()
3010 square_casper(t4, tmp); in invert_mod_p384()
3014 square_casper(tmp, t3); in invert_mod_p384()
3017 square_casper(t5, tmp); in invert_mod_p384()
3018 square_casper(tmp, t5); in invert_mod_p384()
3020 square_casper(t5, tmp); in invert_mod_p384()
3024 square_casper(tmp, t4); in invert_mod_p384()
3027 square_casper(t6, tmp); in invert_mod_p384()
3028 square_casper(tmp, t6); in invert_mod_p384()
3030 square_casper(t6, tmp); in invert_mod_p384()
3034 square_casper(tmp, t5); in invert_mod_p384()
3037 square_casper(t6, tmp); in invert_mod_p384()
3038 square_casper(tmp, t6); in invert_mod_p384()
3040 square_casper(t6, tmp); in invert_mod_p384()
3044 square_casper(tmp, t5); in invert_mod_p384()
3047 square_casper(t6, tmp); in invert_mod_p384()
3048 square_casper(tmp, t6); in invert_mod_p384()
3050 square_casper(t6, tmp); in invert_mod_p384()
3054 square_casper(tmp, t5); in invert_mod_p384()
3057 square_casper(t6, tmp); in invert_mod_p384()
3058 square_casper(tmp, t6); in invert_mod_p384()
3060 square_casper(t6, tmp); in invert_mod_p384()
3064 square_casper(tmp, t5); in invert_mod_p384()
3067 square_casper(t6, tmp); in invert_mod_p384()
3068 square_casper(tmp, t6); in invert_mod_p384()
3070 square_casper(t6, tmp); in invert_mod_p384()
3074 square_casper(tmp, t5); in invert_mod_p384()
3077 square_casper(t6, tmp); in invert_mod_p384()
3078 square_casper(tmp, t6); in invert_mod_p384()
3080 square_casper(t6, tmp); in invert_mod_p384()
3084 square_casper(tmp, t5); in invert_mod_p384()
3087 square_casper(t6, tmp); in invert_mod_p384()
3088 square_casper(tmp, t6); in invert_mod_p384()
3090 square_casper(t6, tmp); in invert_mod_p384()
3094 square_casper(tmp, t5); in invert_mod_p384()
3097 square_casper(t6, tmp); in invert_mod_p384()
3098 square_casper(tmp, t6); in invert_mod_p384()
3100 square_casper(t6, tmp); in invert_mod_p384()
3104 square_casper(tmp, t5); in invert_mod_p384()
3107 square_casper(t6, tmp); in invert_mod_p384()
3108 square_casper(tmp, t6); in invert_mod_p384()
3110 square_casper(t5, tmp); in invert_mod_p384()
3113 square_casper(tmp, t5); in invert_mod_p384()
3116 square_casper(t6, tmp); in invert_mod_p384()
3117 square_casper(tmp, t6); in invert_mod_p384()
3119 square_casper(t6, tmp); in invert_mod_p384()
3123 square_casper(tmp, t5); in invert_mod_p384()
3126 square_casper(t6, tmp); in invert_mod_p384()
3127 square_casper(tmp, t6); in invert_mod_p384()
3129 square_casper(t6, tmp); in invert_mod_p384()
3133 square_casper(tmp, t5); in invert_mod_p384()
3136 square_casper(t6, tmp); in invert_mod_p384()
3137 square_casper(tmp, t6); in invert_mod_p384()
3139 square_casper(t6, tmp); in invert_mod_p384()
3143 square_casper(tmp, t5); in invert_mod_p384()
3146 square_casper(t6, tmp); in invert_mod_p384()
3147 square_casper(tmp, t6); in invert_mod_p384()
3149 square_casper(t6, tmp); in invert_mod_p384()