/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | md5.c | 94 uint32_t X[16], A, B, C, D; in mbedtls_internal_md5_process() member 126 local.C = ctx->state[2]; in mbedtls_internal_md5_process() 131 P( local.A, local.B, local.C, local.D, 0, 7, 0xD76AA478 ); in mbedtls_internal_md5_process() 132 P( local.D, local.A, local.B, local.C, 1, 12, 0xE8C7B756 ); in mbedtls_internal_md5_process() 133 P( local.C, local.D, local.A, local.B, 2, 17, 0x242070DB ); in mbedtls_internal_md5_process() 134 P( local.B, local.C, local.D, local.A, 3, 22, 0xC1BDCEEE ); in mbedtls_internal_md5_process() 135 P( local.A, local.B, local.C, local.D, 4, 7, 0xF57C0FAF ); in mbedtls_internal_md5_process() 136 P( local.D, local.A, local.B, local.C, 5, 12, 0x4787C62A ); in mbedtls_internal_md5_process() 137 P( local.C, local.D, local.A, local.B, 6, 17, 0xA8304613 ); in mbedtls_internal_md5_process() 138 P( local.B, local.C, local.D, local.A, 7, 22, 0xFD469501 ); in mbedtls_internal_md5_process() [all …]
|
A D | ripemd160.c | 99 uint32_t A, B, C, D, E, Ap, Bp, Cp, Dp, Ep, X[16]; in mbedtls_internal_ripemd160_process() member 121 local.C = local.Cp = ctx->state[2]; in mbedtls_internal_ripemd160_process() 153 P2( local.A, local.B, local.C, local.D, local.E, 0, 11, 5, 8 ); in mbedtls_internal_ripemd160_process() 154 P2( local.E, local.A, local.B, local.C, local.D, 1, 14, 14, 9 ); in mbedtls_internal_ripemd160_process() 155 P2( local.D, local.E, local.A, local.B, local.C, 2, 15, 7, 9 ); in mbedtls_internal_ripemd160_process() 156 P2( local.C, local.D, local.E, local.A, local.B, 3, 12, 0, 11 ); in mbedtls_internal_ripemd160_process() 157 P2( local.B, local.C, local.D, local.E, local.A, 4, 5, 9, 13 ); in mbedtls_internal_ripemd160_process() 158 P2( local.A, local.B, local.C, local.D, local.E, 5, 8, 2, 15 ); in mbedtls_internal_ripemd160_process() 159 P2( local.E, local.A, local.B, local.C, local.D, 6, 7, 11, 15 ); in mbedtls_internal_ripemd160_process() 274 local.C = ctx->state[1] + local.C + local.Dp; in mbedtls_internal_ripemd160_process() [all …]
|
A D | sha1.c | 107 uint32_t temp, W[16], A, B, C, D, E; in mbedtls_internal_sha1_process() member 150 local.C = ctx->state[2]; in mbedtls_internal_sha1_process() 173 P( local.E, local.A, local.B, local.C, local.D, R(16) ); in mbedtls_internal_sha1_process() 174 P( local.D, local.E, local.A, local.B, local.C, R(17) ); in mbedtls_internal_sha1_process() 175 P( local.C, local.D, local.E, local.A, local.B, R(18) ); in mbedtls_internal_sha1_process() 176 P( local.B, local.C, local.D, local.E, local.A, R(19) ); in mbedtls_internal_sha1_process() 184 P( local.A, local.B, local.C, local.D, local.E, R(20) ); in mbedtls_internal_sha1_process() 185 P( local.E, local.A, local.B, local.C, local.D, R(21) ); in mbedtls_internal_sha1_process() 186 P( local.D, local.E, local.A, local.B, local.C, R(22) ); in mbedtls_internal_sha1_process() 187 P( local.C, local.D, local.E, local.A, local.B, R(23) ); in mbedtls_internal_sha1_process() [all …]
|
A D | md4.c | 95 uint32_t X[16], A, B, C, D; in mbedtls_internal_md4_process() member 119 local.C = ctx->state[2]; in mbedtls_internal_md4_process() 131 P( local.A, local.B, local.C, local.D, local.X[ 0], 3 ); in mbedtls_internal_md4_process() 132 P( local.D, local.A, local.B, local.C, local.X[ 1], 7 ); in mbedtls_internal_md4_process() 133 P( local.C, local.D, local.A, local.B, local.X[ 2], 11 ); in mbedtls_internal_md4_process() 134 P( local.B, local.C, local.D, local.A, local.X[ 3], 19 ); in mbedtls_internal_md4_process() 135 P( local.A, local.B, local.C, local.D, local.X[ 4], 3 ); in mbedtls_internal_md4_process() 136 P( local.D, local.A, local.B, local.C, local.X[ 5], 7 ); in mbedtls_internal_md4_process() 137 P( local.C, local.D, local.A, local.B, local.X[ 6], 11 ); in mbedtls_internal_md4_process() 138 P( local.B, local.C, local.D, local.A, local.X[ 7], 19 ); in mbedtls_internal_md4_process() [all …]
|
A D | havege.c | 80 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 D | aes.c | 110 V(A5,63,63,C6), V(84,7C,7C,F8), V(99,77,77,EE), V(8D,7B,7B,F6), \ 117 V(BF,9C,9C,23), V(F7,A4,A4,53), V(96,72,72,E4), V(5B,C0,C0,9B), \ 118 V(C2,B7,B7,75), V(1C,FD,FD,E1), V(AE,93,93,3D), V(6A,26,26,4C), \ 126 V(1B,09,09,12), V(9E,83,83,1D), V(74,2C,2C,58), V(2E,1A,1A,34), \ 133 V(DE,4A,4A,94), V(D4,4C,4C,98), V(E8,58,58,B0), V(4A,CF,CF,85), \ 137 V(F0,50,50,A0), V(44,3C,3C,78), V(BA,9F,9F,25), V(E3,A8,A8,4B), \ 142 V(4C,CD,CD,81), V(14,0C,0C,18), V(35,13,13,26), V(2F,EC,EC,C3), \ 148 V(CA,46,46,8C), V(29,EE,EE,C7), V(D3,B8,B8,6B), V(3C,14,14,28), \ 151 V(DB,49,49,92), V(0A,06,06,0C), V(6C,24,24,48), V(E4,5C,5C,B8), \ 297 V(8C,61,D7,9A), V(7A,0C,A1,37), V(8E,14,F8,59), V(89,3C,13,EB), \ [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_test.c | 191 const unsigned char C[] = { 0x17,0x92,0xA4,0xE3,0x1E,0x07,0x55,0xFB, in ocb3_test() 257 compare_testvector(outct, sizeof(P), C, sizeof(C), "OCB3 CT", x)) { in ocb3_test() 265 C, sizeof(C), in ocb3_test() 269 if ((res != 1) || compare_testvector(outct, sizeof(C), P, sizeof(P), "OCB3", x)) { in ocb3_test() 284 …if (compare_testvector(outct, sizeof(P), C, sizeof(C), "OCB3 CT", x)) return CRYPT_FAIL_T… in ocb3_test() 288 if ((err = ocb3_decrypt(&ocb, C, 32, outct)) != CRYPT_OK) return err; in ocb3_test() 289 if ((err = ocb3_decrypt_last(&ocb, C+32, sizeof(C)-32, outct+32)) != CRYPT_OK) return err; in ocb3_test() 292 …if (compare_testvector(outct, sizeof(C), P, sizeof(P), "OCB3 PT", x)) return CRYPT_FAIL_T… in ocb3_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/xts/ |
A D | xts_encrypt.c | 11 static int s_tweak_crypt(const unsigned char *P, unsigned char *C, unsigned char *T, const symmetri… in s_tweak_crypt() argument 19 …*(LTC_FAST_TYPE_PTR_CAST(&C[x])) = *(LTC_FAST_TYPE_PTR_CAST(&P[x])) ^ *(LTC_FAST_TYPE_PTR_CAST(&T[… in s_tweak_crypt() 23 C[x] = P[x] ^ T[x]; in s_tweak_crypt() 27 if ((err = cipher_descriptor[xts->cipher]->ecb_encrypt(C, C, &xts->key1)) != CRYPT_OK) { in s_tweak_crypt() 33 *(LTC_FAST_TYPE_PTR_CAST(&C[x])) ^= *(LTC_FAST_TYPE_PTR_CAST(&T[x])); in s_tweak_crypt() 37 C[x] = C[x] ^ T[x]; in s_tweak_crypt()
|
A D | xts_decrypt.c | 11 static int s_tweak_uncrypt(const unsigned char *C, unsigned char *P, unsigned char *T, const symmet… in s_tweak_uncrypt() argument 19 …*(LTC_FAST_TYPE_PTR_CAST(&P[x])) = *(LTC_FAST_TYPE_PTR_CAST(&C[x])) ^ *(LTC_FAST_TYPE_PTR_CAST(&T[… in s_tweak_uncrypt() 23 P[x] = C[x] ^ T[x]; in s_tweak_uncrypt()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ltc_ecc_mul2add.c | 27 ecc_point *C, in ltc_ecc_mul2add() argument 41 LTC_ARGCHK(C != NULL); in ltc_ecc_mul2add() 151 … if ((err = ltc_mp.ecc_ptdbl(C, C, ma, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add() 152 … if ((err = ltc_mp.ecc_ptdbl(C, C, ma, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add() 160 … if ((err = ltc_ecc_copy_point(precomp[nA + (nB<<2)], C)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add() 163 …if ((err = ltc_mp.ecc_ptadd(C, precomp[nA + (nB<<2)], C, ma, modulus, mp)) != CRYPT_OK) { goto ERR… in ltc_ecc_mul2add() 169 err = ltc_ecc_map(C, modulus, mp); in ltc_ecc_mul2add()
|
/optee_os-3.20.0/core/arch/arm/dts/ |
A D | stm32mp15-pinctrl.dtsi | 3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved 126 <STM32_PINMUX('C', 6, AF13)>,/* DCMI_D0 */ 143 <STM32_PINMUX('C', 6, ANALOG)>,/* DCMI_D0 */ 163 <STM32_PINMUX('C', 1, AF11)>; /* ETH_MDC */ 195 <STM32_PINMUX('C', 1, ANALOG)>, /* ETH_MDC */ 214 <STM32_PINMUX('C', 1, AF11)>; /* ETH_MDC */ 265 <STM32_PINMUX('C', 1, AF11)>; /* ETH_MDC */ 344 <STM32_PINMUX('C', 1, AF11)>, /* ETH1_MDC */ 359 <STM32_PINMUX('C', 4, AF11)>, /* ETH1_RXD0 */ 360 <STM32_PINMUX('C', 5, AF11)>; /* ETH1_RXD1 */ [all …]
|
A D | stm32mp157a-dhcor-avenger96.dts | 3 * Copyright (C) Linaro Ltd 2019 - All Rights Reserved 5 * Copyright (C) 2020 Marek Vasut <marex@denx.de> 8 * DHCR-STM32MP157A-C065-R102-V18-SPI-C-01LG
|
A D | stm32mp13-pinctrl.dtsi | 3 * Copyright (C) STMicroelectronics 2019-2022 - All Rights Reserved 34 pinmux = <STM32_PINMUX('C', 0, AF7)>, /* USART1_TX */ 35 <STM32_PINMUX('C', 2, AF7)>; /* USART1_RTS */
|
A D | stm32mp15xx-dhcor-io1v8.dtsi | 3 * Copyright (C) Linaro Ltd 2019 - All Rights Reserved 5 * Copyright (C) 2020 Marek Vasut <marex@denx.de>
|
A D | stm32mp157c-dhcom-pdk2.dts | 3 * Copyright (C) 2019-2020 Marek Vasut <marex@denx.de> 4 * Copyright (C) 2022 DH electronics GmbH
|
A D | stm32mp133.dtsi | 3 * Copyright (C) STMicroelectronics 2021-2022 - All Rights Reserved
|
A D | stm32mp135.dtsi | 3 * Copyright (C) STMicroelectronics 2021-2022 - All Rights Reserved
|
A D | stm32mp13xc.dtsi | 3 * Copyright (C) STMicroelectronics 2021-2022 - All Rights Reserved
|
A D | stm32mp13xf.dtsi | 3 * Copyright (C) STMicroelectronics 2021-2022 - All Rights Reserved
|
A D | stm32mp15xc.dtsi | 3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
|
/optee_os-3.20.0/core/crypto/ |
A D | sm3.c | 57 uint32_t A, B, C, D, E, F, G, H; in sm3_process() local 115 C = ctx->state[2]; in sm3_process() 125 TT1 = FF0(A, B, C) + D + SS2 + W1[j]; in sm3_process() 127 D = C; in sm3_process() 128 C = ROTL(B, 9); in sm3_process() 140 TT1 = FF1(A, B, C) + D + SS2 + W1[j]; in sm3_process() 142 D = C; in sm3_process() 143 C = ROTL(B, 9); in sm3_process() 154 ctx->state[2] ^= C; in sm3_process()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/lrw/ |
A D | lrw_test.c | 22 unsigned char key[16], tweak[16], IV[16], P[16], expected_tweak[16], C[16]; in lrw_test() 94 if (compare_testvector(buf[0], 16, tests[x].C, 16, "LRW Encrypt", x)) { in lrw_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/ |
A D | gmp_desc.c | 287 mpz_t t1, C, Q, S, Z, M, T, R, two; in sqrtmod_prime() local 302 mpz_init(t1); mpz_init(C); mpz_init(Q); in sqrtmod_prime() 344 mpz_powm(C, Z, Q, prime); in sqrtmod_prime() 374 mpz_powm(t1, C, t1, prime); in sqrtmod_prime() 376 mpz_mul(C, t1, t1); in sqrtmod_prime() 377 mpz_mod(C, C, prime); in sqrtmod_prime() 382 mpz_mul(T, T, C); in sqrtmod_prime() 390 mpz_clear(t1); mpz_clear(C); mpz_clear(Q); in sqrtmod_prime()
|
/optee_os-3.20.0/lib/libutee/ |
A D | tee_api_arith_mpi.c | 610 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-3.20.0/lib/libutee/arch/arm/ |
A D | arm32_user_sysreg.txt | 8 @ Issue C.c
|