/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/ |
A D | blowfish.c | 293 #define F(x) ((S1[LTC_BYTE(x,3)] + S2[LTC_BYTE(x,2)]) ^ S3[LTC_BYTE(x,1)]) + S4[LTC_BYTE(x,0)] 304 const ulong32 *S1, *S2, *S3, *S4; in s_blowfish_encipher() local 307 S2 = skey->blowfish.S[1]; in s_blowfish_encipher() 524 const ulong32 *S1, *S2, *S3, *S4; in s_blowfish_ecb_decrypt() local 533 S2 = skey->blowfish.S[1]; in s_blowfish_ecb_decrypt()
|
A D | cast5.c | 70 static const ulong32 S2[256] = { variable 499 return ((S1[LTC_BYTE(I, 3)] ^ S2[LTC_BYTE(I,2)]) - S3[LTC_BYTE(I,1)]) + S4[LTC_BYTE(I,0)]; in FI() 507 return ((S1[LTC_BYTE(I, 3)] - S2[LTC_BYTE(I,2)]) + S3[LTC_BYTE(I,1)]) ^ S4[LTC_BYTE(I,0)]; in FII() 515 return ((S1[LTC_BYTE(I, 3)] + S2[LTC_BYTE(I,2)]) ^ S3[LTC_BYTE(I,1)]) - S4[LTC_BYTE(I,0)]; in FIII()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/sosemanuk/ |
A D | sosemanuk.c | 95 #define S2(r0, r1, r2, r3, r4) do { \ macro 221 #define SKS2 SKS(S2, 4, 5, 6, 7, 2, 3, 1, 4) in sosemanuk_setup() 391 FSS(8, S2, 2, 1, 0, 4, 3, 0, 4, 1, 3); in sosemanuk_setiv() 399 FSS(40, S2, 2, 1, 4, 3, 0, 4, 3, 1, 0); in sosemanuk_setiv() 417 FSS(72, S2, 2, 1, 3, 0, 4, 3, 0, 1, 4); in sosemanuk_setiv() 678 SRD(S2, 2, 3, 1, 4, 0); in s_sosemanuk_internal() 683 SRD(S2, 2, 3, 1, 4, 16); in s_sosemanuk_internal() 688 SRD(S2, 2, 3, 1, 4, 32); in s_sosemanuk_internal() 693 SRD(S2, 2, 3, 1, 4, 48); in s_sosemanuk_internal() 698 SRD(S2, 2, 3, 1, 4, 64); in s_sosemanuk_internal()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/twofish/ |
A D | twofish.c | 273 #define S2 skey->twofish.S[1] macro 279 #define g_func(x, dum) (S1[LTC_BYTE(x,0)] ^ S2[LTC_BYTE(x,1)] ^ S3[LTC_BYTE(x,2)] ^ S4[LTC_BYTE(x,… 280 #define g1_func(x, dum) (S2[LTC_BYTE(x,0)] ^ S3[LTC_BYTE(x,1)] ^ S4[LTC_BYTE(x,2)] ^ S1[LTC_BYTE(x,… 474 const ulong32 *S1, *S2, *S3, *S4; in s_twofish_ecb_encrypt() local 483 S2 = skey->twofish.S[1]; in s_twofish_ecb_encrypt() 548 const ulong32 *S1, *S2, *S3, *S4; in s_twofish_ecb_decrypt() local 557 S2 = skey->twofish.S[1]; in s_twofish_ecb_decrypt()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | sha512.c | 219 #define S2(x) (ROTR(x,28) ^ ROTR(x,34) ^ ROTR(x,39)) in mbedtls_internal_sha512_process() macro 229 local.temp2 = S2(a) + F0((a),(b),(c)); \ in mbedtls_internal_sha512_process()
|
A D | sha256.c | 153 #define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22)) macro 169 local.temp2 = S2(a) + F0((a),(b),(c)); \
|
A D | ssl_tls.c | 411 const unsigned char *S1, *S2; in tls1_prf() local 431 S2 = secret + slen - hs; in tls1_prf() 506 ret = mbedtls_md_hmac_starts( &md_ctx, S2, hs ); in tls1_prf()
|