/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/ |
A D | md5.c | 98 ulong32 i, W[16], a, b, c, d; in ss_md5_compress() local 105 LOAD32L(W[i], buf + (4*i)); in ss_md5_compress() 136 FF(a,b,c,d,W[0],7,0xd76aa478UL) in ss_md5_compress() 140 FF(a,b,c,d,W[4],7,0xf57c0fafUL) in ss_md5_compress() 144 FF(a,b,c,d,W[8],7,0x698098d8UL) in ss_md5_compress() 152 GG(a,b,c,d,W[1],5,0xf61e2562UL) in ss_md5_compress() 153 GG(d,a,b,c,W[6],9,0xc040b340UL) in ss_md5_compress() 156 GG(a,b,c,d,W[5],5,0xd62f105dUL) in ss_md5_compress() 160 GG(a,b,c,d,W[9],5,0x21e1cde6UL) in ss_md5_compress() 165 GG(d,a,b,c,W[2],9,0xfcefa3f8UL) in ss_md5_compress() [all …]
|
A D | sha1.c | 42 ulong32 a,b,c,d,e,W[80],i; in ss_sha1_compress() local 49 LOAD32H(W[i], buf + (4*i)); in ss_sha1_compress() 61 W[i] = ROL(W[i-3] ^ W[i-8] ^ W[i-14] ^ W[i-16], 1); in ss_sha1_compress() 66 … #define FF0(a,b,c,d,e,i) e = (ROLc(a, 5) + F0(b,c,d) + e + W[i] + 0x5a827999UL); b = ROLc(b, 30); in ss_sha1_compress() 67 … #define FF1(a,b,c,d,e,i) e = (ROLc(a, 5) + F1(b,c,d) + e + W[i] + 0x6ed9eba1UL); b = ROLc(b, 30); in ss_sha1_compress() 68 … #define FF2(a,b,c,d,e,i) e = (ROLc(a, 5) + F2(b,c,d) + e + W[i] + 0x8f1bbcdcUL); b = ROLc(b, 30); in ss_sha1_compress() 69 … #define FF3(a,b,c,d,e,i) e = (ROLc(a, 5) + F3(b,c,d) + e + W[i] + 0xca62c1d6UL); b = ROLc(b, 30); in ss_sha1_compress()
|
/optee_os-3.20.0/core/crypto/ |
A D | sm3.c | 67 GET_UINT32_BE(W[0], data, 0); in sm3_process() 68 GET_UINT32_BE(W[1], data, 4); in sm3_process() 69 GET_UINT32_BE(W[2], data, 8); in sm3_process() 70 GET_UINT32_BE(W[3], data, 12); in sm3_process() 71 GET_UINT32_BE(W[4], data, 16); in sm3_process() 72 GET_UINT32_BE(W[5], data, 20); in sm3_process() 102 Temp1 = W[j - 16] ^ W[j - 9]; in sm3_process() 103 Temp2 = ROTL(W[j - 3], 15); in sm3_process() 106 Temp5 = ROTL(W[j - 13], 7) ^ W[j - 6]; in sm3_process() 107 W[j] = Temp4 ^ Temp5; in sm3_process() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | sha1.c | 107 uint32_t temp, W[16], A, B, C, D, E; in mbedtls_internal_sha1_process() member 113 local.W[ 0] = MBEDTLS_GET_UINT32_BE( data, 0 ); in mbedtls_internal_sha1_process() 114 local.W[ 1] = MBEDTLS_GET_UINT32_BE( data, 4 ); in mbedtls_internal_sha1_process() 115 local.W[ 2] = MBEDTLS_GET_UINT32_BE( data, 8 ); in mbedtls_internal_sha1_process() 116 local.W[ 3] = MBEDTLS_GET_UINT32_BE( data, 12 ); in mbedtls_internal_sha1_process() 117 local.W[ 4] = MBEDTLS_GET_UINT32_BE( data, 16 ); in mbedtls_internal_sha1_process() 118 local.W[ 5] = MBEDTLS_GET_UINT32_BE( data, 20 ); in mbedtls_internal_sha1_process() 119 local.W[ 6] = MBEDTLS_GET_UINT32_BE( data, 24 ); in mbedtls_internal_sha1_process() 120 local.W[ 7] = MBEDTLS_GET_UINT32_BE( data, 28 ); in mbedtls_internal_sha1_process() 121 local.W[ 8] = MBEDTLS_GET_UINT32_BE( data, 32 ); in mbedtls_internal_sha1_process() [all …]
|
A D | sha512.c | 206 uint64_t temp1, temp2, W[80]; in mbedtls_internal_sha512_process() member 241 local.W[i] = MBEDTLS_GET_UINT64_BE( data, i << 3 ); in mbedtls_internal_sha512_process() 245 local.W[i] = S1(local.W[i - 2]) + local.W[i - 7] + in mbedtls_internal_sha512_process() 246 S0(local.W[i - 15]) + local.W[i - 16]; in mbedtls_internal_sha512_process() 250 local.A[5], local.A[6], local.A[7], local.W[i], K[i] ); in mbedtls_internal_sha512_process() 261 local.W[i] = MBEDTLS_GET_UINT64_BE( data, i << 3 ); in mbedtls_internal_sha512_process() 266 local.W[i] = S1(local.W[i - 2]) + local.W[i - 7] + in mbedtls_internal_sha512_process() 267 S0(local.W[i - 15]) + local.W[i - 16]; in mbedtls_internal_sha512_process() 274 local.A[5], local.A[6], local.A[7], local.W[i], K[i] ); i++; in mbedtls_internal_sha512_process() 276 local.A[4], local.A[5], local.A[6], local.W[i], K[i] ); i++; in mbedtls_internal_sha512_process() [all …]
|
A D | sha256.c | 161 local.W[t] = S1(local.W[(t) - 2]) + local.W[(t) - 7] + \ 162 S0(local.W[(t) - 15]) + local.W[(t) - 16] \ 178 uint32_t temp1, temp2, W[64]; in mbedtls_internal_sha256_process() member 194 local.W[i] = MBEDTLS_GET_UINT32_BE( data, 4 * i ); in mbedtls_internal_sha256_process() 199 local.A[5], local.A[6], local.A[7], local.W[i], K[i] ); in mbedtls_internal_sha256_process() 209 local.W[i] = MBEDTLS_GET_UINT32_BE( data, 4 * i ); in mbedtls_internal_sha256_process() 214 local.A[5], local.A[6], local.A[7], local.W[i+0], K[i+0] ); in mbedtls_internal_sha256_process() 216 local.A[4], local.A[5], local.A[6], local.W[i+1], K[i+1] ); in mbedtls_internal_sha256_process() 218 local.A[3], local.A[4], local.A[5], local.W[i+2], K[i+2] ); in mbedtls_internal_sha256_process() 220 local.A[2], local.A[3], local.A[4], local.W[i+3], K[i+3] ); in mbedtls_internal_sha256_process() [all …]
|
A D | bignum.c | 2081 mbedtls_mpi *W = NULL; in mbedtls_mpi_exp_mod() local 2156 if( W == NULL ) { in mbedtls_mpi_exp_mod() 2180 mpi_montmul( &W[1], &RR, N, mm, &T ); in mbedtls_mpi_exp_mod() 2196 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &W[j], &W[1] ) ); in mbedtls_mpi_exp_mod() 2199 mpi_montmul( &W[j], &W[j], N, mm, &T ); in mbedtls_mpi_exp_mod() 2207 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &W[i], &W[i - 1] ) ); in mbedtls_mpi_exp_mod() 2209 mpi_montmul( &W[i], &W[1], N, mm, &T ); in mbedtls_mpi_exp_mod() 2304 if( W ) in mbedtls_mpi_exp_mod() 2306 mbedtls_mpi_free( W + i ); in mbedtls_mpi_exp_mod() 2731 mbedtls_mpi W, R, T, A, RR; in mpi_miller_rabin() local [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/sha2/ |
A D | sha512.c | 91 ulong64 S[8], W[80], t0, t1; in ss_sha512_compress() local 101 LOAD64H(W[i], buf + (8*i)); in ss_sha512_compress() 106 W[i] = Gamma1(W[i - 2]) + W[i - 7] + Gamma0(W[i - 15]) + W[i - 16]; in ss_sha512_compress() 112 t0 = S[7] + Sigma1(S[4]) + Ch(S[4], S[5], S[6]) + K[i] + W[i]; in ss_sha512_compress() 125 t0 = h + Sigma1(e) + Ch(e, f, g) + K[i] + W[i]; \ in ss_sha512_compress()
|
A D | sha256.c | 66 ulong32 S[8], W[64], t0, t1; in ss_sha256_compress() local 79 LOAD32H(W[i], buf + (4*i)); in ss_sha256_compress() 84 W[i] = Gamma1(W[i - 2]) + W[i - 7] + Gamma0(W[i - 15]) + W[i - 16]; in ss_sha256_compress() 90 t0 = h + Sigma1(e) + Ch(e, f, g) + K[i] + W[i]; \ in ss_sha256_compress() 102 t0 = h + Sigma1(e) + Ch(e, f, g) + ki + W[i]; \ in ss_sha256_compress()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_generate_pqg.c | 28 void *t2L1, *t2N1, *t2q, *t2seedlen, *U, *W, *X, *c, *h, *e, *seedinc; in s_dsa_make_params() local 111 err = mp_init_multi(&t2L1, &t2N1, &t2q, &t2seedlen, &U, &W, &X, &c, &h, &e, &seedinc, LTC_NULL); in s_dsa_make_params() 150 if ((err = mp_read_unsigned_bin(W, wbuf, (n+1)*outbytes)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params() 151 if ((err = mp_mod(W, t2L1, W)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params() 152 if ((err = mp_add(W, t2L1, X)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params() 190 mp_clear_multi(t2L1, t2N1, t2q, t2seedlen, U, W, X, c, h, e, seedinc, LTC_NULL); in s_dsa_make_params()
|
/optee_os-3.20.0/core/arch/arm/dts/ |
A D | stm32mp15xx-dhcom-som.dtsi | 232 "DHCOM-J", "DHCOM-W", "DHCOM-V", "DHCOM-U",
|