Home
last modified time | relevance | path

Searched refs:C (Results 1 – 25 of 52) sorted by relevance

123

/optee_os/lib/libmbedtls/mbedtls/library/
A Dmd5.c117 uint32_t X[16], A, B, C, D; in mbedtls_internal_md5_process() member
149 local.C = ctx->state[2]; in mbedtls_internal_md5_process()
154 P( local.A, local.B, local.C, local.D, 0, 7, 0xD76AA478 ); in mbedtls_internal_md5_process()
155 P( local.D, local.A, local.B, local.C, 1, 12, 0xE8C7B756 ); in mbedtls_internal_md5_process()
156 P( local.C, local.D, local.A, local.B, 2, 17, 0x242070DB ); in mbedtls_internal_md5_process()
157 P( local.B, local.C, local.D, local.A, 3, 22, 0xC1BDCEEE ); in mbedtls_internal_md5_process()
158 P( local.A, local.B, local.C, local.D, 4, 7, 0xF57C0FAF ); in mbedtls_internal_md5_process()
159 P( local.D, local.A, local.B, local.C, 5, 12, 0x4787C62A ); in mbedtls_internal_md5_process()
160 P( local.C, local.D, local.A, local.B, 6, 17, 0xA8304613 ); in mbedtls_internal_md5_process()
161 P( local.B, local.C, local.D, local.A, 7, 22, 0xFD469501 ); in mbedtls_internal_md5_process()
[all …]
A Dripemd160.c122 uint32_t A, B, C, D, E, Ap, Bp, Cp, Dp, Ep, X[16]; in mbedtls_internal_ripemd160_process() member
144 local.C = local.Cp = ctx->state[2]; in mbedtls_internal_ripemd160_process()
176 P2( local.A, local.B, local.C, local.D, local.E, 0, 11, 5, 8 ); in mbedtls_internal_ripemd160_process()
177 P2( local.E, local.A, local.B, local.C, local.D, 1, 14, 14, 9 ); in mbedtls_internal_ripemd160_process()
178 P2( local.D, local.E, local.A, local.B, local.C, 2, 15, 7, 9 ); in mbedtls_internal_ripemd160_process()
179 P2( local.C, local.D, local.E, local.A, local.B, 3, 12, 0, 11 ); in mbedtls_internal_ripemd160_process()
180 P2( local.B, local.C, local.D, local.E, local.A, 4, 5, 9, 13 ); in mbedtls_internal_ripemd160_process()
181 P2( local.A, local.B, local.C, local.D, local.E, 5, 8, 2, 15 ); in mbedtls_internal_ripemd160_process()
182 P2( local.E, local.A, local.B, local.C, local.D, 6, 7, 11, 15 ); in mbedtls_internal_ripemd160_process()
297 local.C = ctx->state[1] + local.C + local.Dp; in mbedtls_internal_ripemd160_process()
[all …]
A Dsha1.c130 uint32_t temp, W[16], A, B, C, D, E; in mbedtls_internal_sha1_process() member
173 local.C = ctx->state[2]; in mbedtls_internal_sha1_process()
196 P( local.E, local.A, local.B, local.C, local.D, R(16) ); in mbedtls_internal_sha1_process()
197 P( local.D, local.E, local.A, local.B, local.C, R(17) ); in mbedtls_internal_sha1_process()
198 P( local.C, local.D, local.E, local.A, local.B, R(18) ); in mbedtls_internal_sha1_process()
199 P( local.B, local.C, local.D, local.E, local.A, R(19) ); in mbedtls_internal_sha1_process()
207 P( local.A, local.B, local.C, local.D, local.E, R(20) ); in mbedtls_internal_sha1_process()
208 P( local.E, local.A, local.B, local.C, local.D, R(21) ); in mbedtls_internal_sha1_process()
209 P( local.D, local.E, local.A, local.B, local.C, R(22) ); in mbedtls_internal_sha1_process()
210 P( local.C, local.D, local.E, local.A, local.B, R(23) ); in mbedtls_internal_sha1_process()
[all …]
A Dmd4.c118 uint32_t X[16], A, B, C, D; in mbedtls_internal_md4_process() member
142 local.C = ctx->state[2]; in mbedtls_internal_md4_process()
154 P( local.A, local.B, local.C, local.D, local.X[ 0], 3 ); in mbedtls_internal_md4_process()
155 P( local.D, local.A, local.B, local.C, local.X[ 1], 7 ); in mbedtls_internal_md4_process()
156 P( local.C, local.D, local.A, local.B, local.X[ 2], 11 ); in mbedtls_internal_md4_process()
157 P( local.B, local.C, local.D, local.A, local.X[ 3], 19 ); in mbedtls_internal_md4_process()
158 P( local.A, local.B, local.C, local.D, local.X[ 4], 3 ); in mbedtls_internal_md4_process()
159 P( local.D, local.A, local.B, local.C, local.X[ 5], 7 ); in mbedtls_internal_md4_process()
160 P( local.C, local.D, local.A, local.B, local.X[ 6], 11 ); in mbedtls_internal_md4_process()
161 P( local.B, local.C, local.D, local.A, local.X[ 7], 19 ); in mbedtls_internal_md4_process()
[all …]
A Dhavege.c80 C = &WALK[PT1 ^ 1]; RES[i++] ^= *C; \
86 *C = (*C >> (3)) ^ (*C << (29)) ^ CLK; \
91 C = &WALK[PT1 ^ 3]; RES[i++] ^= *C; \
94 if( PTEST & 1 ) SWAP( A, C ); \
99 *C = (*C >> (7)) ^ (*C << (25)) ^ CLK; \
119 C = &WALK[PT1 ^ 5]; \
124 RES[i++] ^= *C; \
130 *C = (*C >> (11)) ^ (*C << (21)) ^ CLK; \
135 C = &WALK[PT1 ^ 7]; RES[i++] ^= *C; \
141 *C = (*C >> (15)) ^ (*C << (17)) ^ CLK; \
[all …]
A Daes.c133 V(A5,63,63,C6), V(84,7C,7C,F8), V(99,77,77,EE), V(8D,7B,7B,F6), \
140 V(BF,9C,9C,23), V(F7,A4,A4,53), V(96,72,72,E4), V(5B,C0,C0,9B), \
141 V(C2,B7,B7,75), V(1C,FD,FD,E1), V(AE,93,93,3D), V(6A,26,26,4C), \
149 V(1B,09,09,12), V(9E,83,83,1D), V(74,2C,2C,58), V(2E,1A,1A,34), \
156 V(DE,4A,4A,94), V(D4,4C,4C,98), V(E8,58,58,B0), V(4A,CF,CF,85), \
160 V(F0,50,50,A0), V(44,3C,3C,78), V(BA,9F,9F,25), V(E3,A8,A8,4B), \
165 V(4C,CD,CD,81), V(14,0C,0C,18), V(35,13,13,26), V(2F,EC,EC,C3), \
171 V(CA,46,46,8C), V(29,EE,EE,C7), V(D3,B8,B8,6B), V(3C,14,14,28), \
174 V(DB,49,49,92), V(0A,06,06,0C), V(6C,24,24,48), V(E4,5C,5C,B8), \
320 V(8C,61,D7,9A), V(7A,0C,A1,37), V(8E,14,F8,59), V(89,3C,13,EB), \
[all …]
/optee_os/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_test.c198 const unsigned char C[] = { 0x17,0x92,0xA4,0xE3,0x1E,0x07,0x55,0xFB, in ocb3_test()
264 compare_testvector(outct, sizeof(P), C, sizeof(C), "OCB3 CT", x)) { in ocb3_test()
272 C, sizeof(C), in ocb3_test()
276 if ((res != 1) || compare_testvector(outct, sizeof(C), P, sizeof(P), "OCB3", x)) { in ocb3_test()
291 …if (compare_testvector(outct, sizeof(P), C, sizeof(C), "OCB3 CT", x)) return CRYPT_FAIL_T… in ocb3_test()
295 if ((err = ocb3_decrypt(&ocb, C, 32, outct)) != CRYPT_OK) return err; in ocb3_test()
296 if ((err = ocb3_decrypt_last(&ocb, C+32, sizeof(C)-32, outct+32)) != CRYPT_OK) return err; in ocb3_test()
299 …if (compare_testvector(outct, sizeof(C), P, sizeof(P), "OCB3 PT", x)) return CRYPT_FAIL_T… in ocb3_test()
/optee_os/core/lib/libtomcrypt/src/modes/xts/
A Dxts_encrypt.c18 static int _tweak_crypt(const unsigned char *P, unsigned char *C, unsigned char *T, const symmetric… in _tweak_crypt() argument
26 …*(LTC_FAST_TYPE_PTR_CAST(&C[x])) = *(LTC_FAST_TYPE_PTR_CAST(&P[x])) ^ *(LTC_FAST_TYPE_PTR_CAST(&T[… in _tweak_crypt()
30 C[x] = P[x] ^ T[x]; in _tweak_crypt()
34 if ((err = cipher_descriptor[xts->cipher]->ecb_encrypt(C, C, &xts->key1)) != CRYPT_OK) { in _tweak_crypt()
40 *(LTC_FAST_TYPE_PTR_CAST(&C[x])) ^= *(LTC_FAST_TYPE_PTR_CAST(&T[x])); in _tweak_crypt()
44 C[x] = C[x] ^ T[x]; in _tweak_crypt()
A Dxts_decrypt.c18 static int _tweak_uncrypt(const unsigned char *C, unsigned char *P, unsigned char *T, const symmetr… in _tweak_uncrypt() argument
26 …*(LTC_FAST_TYPE_PTR_CAST(&P[x])) = *(LTC_FAST_TYPE_PTR_CAST(&C[x])) ^ *(LTC_FAST_TYPE_PTR_CAST(&T[… in _tweak_uncrypt()
30 P[x] = C[x] ^ T[x]; in _tweak_uncrypt()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_mul2add.c34 ecc_point *C, in ltc_ecc_mul2add() argument
48 LTC_ARGCHK(C != NULL); in ltc_ecc_mul2add()
158 … if ((err = ltc_mp.ecc_ptdbl(C, C, ma, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add()
159 … if ((err = ltc_mp.ecc_ptdbl(C, C, ma, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add()
167 … if ((err = ltc_ecc_copy_point(precomp[nA + (nB<<2)], C)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add()
170 …if ((err = ltc_mp.ecc_ptadd(C, precomp[nA + (nB<<2)], C, ma, modulus, mp)) != CRYPT_OK) { goto ERR… in ltc_ecc_mul2add()
176 err = ltc_ecc_map(C, modulus, mp); in ltc_ecc_mul2add()
/optee_os/core/arch/arm/dts/
A Dstm32mp15-pinctrl.dtsi3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
17 pinmux = <STM32_PINMUX('C', 3, ANALOG)>, /* ADC1 in13 */
123 <STM32_PINMUX('C', 1, AF11)>; /* ETH_MDC */
155 <STM32_PINMUX('C', 1, ANALOG)>, /* ETH_MDC */
323 <STM32_PINMUX('C', 0, AF14)>, /* LCD_R5 */
359 <STM32_PINMUX('C', 0, ANALOG)>, /* LCD_R5 */
743 <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
744 <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */
745 <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1_D3 */
762 <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
[all …]
A Dstm32mp15xc.dtsi3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
A Dstm32mp157a-dk1.dts3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
A Dstm32mp15xx-dkx.dtsi3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
94 * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19.
95 * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
100 /* AIN connector, USB Type-C CC1 & CC2 */
105 /* AIN connector, USB Type-C CC1 & CC2 */
A Dstm32mp157.dtsi3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
A Dstm32mp15xxab-pinctrl.dtsi3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
A Dstm32mp15xxad-pinctrl.dtsi3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
/optee_os/core/crypto/
A Dsm3.c52 uint32_t A, B, C, D, E, F, G, H; in sm3_process() local
110 C = ctx->state[2]; in sm3_process()
120 TT1 = FF0(A, B, C) + D + SS2 + W1[j]; in sm3_process()
122 D = C; in sm3_process()
123 C = ROTL(B, 9); in sm3_process()
135 TT1 = FF1(A, B, C) + D + SS2 + W1[j]; in sm3_process()
137 D = C; in sm3_process()
138 C = ROTL(B, 9); in sm3_process()
149 ctx->state[2] ^= C; in sm3_process()
/optee_os/core/lib/libtomcrypt/src/math/
A Dgmp_desc.c294 mpz_t t1, C, Q, S, Z, M, T, R, two; in sqrtmod_prime() local
309 mpz_init(t1); mpz_init(C); mpz_init(Q); in sqrtmod_prime()
351 mpz_powm(C, Z, Q, prime); in sqrtmod_prime()
381 mpz_powm(t1, C, t1, prime); in sqrtmod_prime()
383 mpz_mul(C, t1, t1); in sqrtmod_prime()
384 mpz_mod(C, C, prime); in sqrtmod_prime()
389 mpz_mul(T, T, C); in sqrtmod_prime()
397 mpz_clear(t1); mpz_clear(C); mpz_clear(Q); in sqrtmod_prime()
/optee_os/lib/libutee/
A Dtee_api_arith_mpi.c610 mbedtls_mpi C; in mpi_egcd() local
618 get_mpi(&C, NULL); in mpi_egcd()
646 MPI_CHECK(mbedtls_mpi_lset(&C, 0)); in mpi_egcd()
662 if (mpi_is_odd(&C) || mpi_is_odd(&D)) { in mpi_egcd()
663 MPI_CHECK(mbedtls_mpi_add_mpi(&C, &C, &y)); in mpi_egcd()
666 MPI_CHECK(mbedtls_mpi_shift_r(&C, 1)); in mpi_egcd()
673 MPI_CHECK(mbedtls_mpi_sub_mpi(&A, &A, &C)); in mpi_egcd()
677 MPI_CHECK(mbedtls_mpi_sub_mpi(&C, &C, &A)); in mpi_egcd()
682 MPI_CHECK(mbedtls_mpi_copy(a, &C)); in mpi_egcd()
689 mbedtls_mpi_free(&C); in mpi_egcd()
/optee_os/
A D.azure-pipelines.yml61 export LC_ALL=C
71 …SCP_OPT optee_os_ci@cache.forissier.org "cat ccache-$PROJ.tar.gz" | tar zx -C $HOME || echo Neverm…
72 …function upload_cache() { if [ ! -e .uploaded ]; then echo Uploading cache && tar c -C $HOME .ccac…
93 _make CFG_CRYPTO_{H,C,CBC_}MAC=n
94 _make CFG_CRYPTO_{G,C}CM=n
236 export LC_ALL=C
246 …sudo -E make -C /root/optee_repo_qemu_v8/build -j$(getconf _NPROCESSORS_ONLN) CFG_TEE_CORE_LOG_LEV…
249 sudo -E make -C /root/optee_repo_qemu_v8/build arm-tf-clean
250 …sudo -E make -C /root/optee_repo_qemu_v8/build -j$(getconf _NPROCESSORS_ONLN) CFG_TEE_CORE_LOG_LEV…
262 export LC_ALL=C
[all …]
/optee_os/core/lib/libtomcrypt/src/modes/lrw/
A Dlrw_test.c29 unsigned char key[16], tweak[16], IV[16], P[16], expected_tweak[16], C[16]; in lrw_test()
101 if (compare_testvector(buf[0], 16, tests[x].C, 16, "LRW Encrypt", x)) { in lrw_test()
/optee_os/core/lib/libtomcrypt/src/encauth/gcm/
A Dgcm_test.c37 unsigned char C[128]; in gcm_test()
358 if (compare_testvector(out[0], tests[x].ptlen, tests[x].C, tests[x].ptlen, "GCM CT", x)) { in gcm_test()
/optee_os/lib/libutee/arch/arm/
A Darm32_user_sysreg.txt8 @ Issue C.c
/optee_os/lib/libutils/ext/
A Dsnprintk.c211 #define KPRINTF_PUTCHAR(C) { \ argument
214 *sbuf++ = (C); \
216 putchar((C), oflags, vp); \

Completed in 30 milliseconds

123