Home
last modified time | relevance | path

Searched refs:S1 (Results 1 – 8 of 8) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/ciphers/
H A Dblowfish.c293 #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
306 S1 = skey->blowfish.S[0]; in s_blowfish_encipher()
524 const ulong32 *S1, *S2, *S3, *S4; in s_blowfish_ecb_decrypt() local
532 S1 = skey->blowfish.S[0]; in s_blowfish_ecb_decrypt()
H A Dcast5.c25 static const ulong32 S1[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/lib/libmbedtls/core/
H A Dsm2-kep.c451 uint8_t S1[TEE_SM3_HASH_SIZE] = { }; in crypto_acipher_sm2_kep_derive() local
458 res = sm2_kep_compute_S(S1, sizeof(S1), flag, &U, in crypto_acipher_sm2_kep_derive()
465 if (consttime_memcmp(S1, p->conf_in, sizeof(S1))) { in crypto_acipher_sm2_kep_derive()
/optee_os/core/lib/libtomcrypt/
H A Dsm2-kep.c358 uint8_t S1[TEE_SM3_HASH_SIZE]; in sm2_kep_derive() local
365 res = sm2_kep_compute_S(S1, sizeof(S1), flag, U, in sm2_kep_derive()
372 if (consttime_memcmp(S1, p->conf_in, sizeof(S1))) { in sm2_kep_derive()
/optee_os/core/lib/libtomcrypt/src/ciphers/twofish/
H A Dtwofish.c272 #define S1 skey->twofish.S[0] 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
482 S1 = skey->twofish.S[0]; in s_twofish_ecb_encrypt()
548 const ulong32 *S1, *S2, *S3, *S4; in s_twofish_ecb_decrypt() local
556 S1 = skey->twofish.S[0]; in s_twofish_ecb_decrypt()
/optee_os/core/lib/libtomcrypt/src/stream/sosemanuk/
H A Dsosemanuk.c82 #define S1(r0, r1, r2, r3, r4) do { \ macro
220 #define SKS1 SKS(S1, 0, 1, 2, 3, 2, 0, 3, 1) in sosemanuk_setup()
390 FSS(4, S1, 1, 4, 2, 0, 3, 2, 1, 0, 4); in sosemanuk_setiv()
398 FSS(36, S1, 1, 3, 2, 4, 0, 2, 1, 4, 3); in sosemanuk_setiv()
411 FSS(68, S1, 1, 0, 2, 3, 4, 2, 1, 3, 0); in sosemanuk_setiv()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dsha512.c614 #define S1(x) (ROTR(x, 19) ^ ROTR(x, 61) ^ SHR(x, 6)) in mbedtls_internal_sha512_process_c() macro
639 local.W[i] = S1(local.W[i - 2]) + local.W[i - 7] + in mbedtls_internal_sha512_process_c()
658 local.W[i] = S1(local.W[i - 2]) + local.W[i - 7] + in mbedtls_internal_sha512_process_c()
H A Dsha256.c463 #define S1(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHR(x, 10)) macro
473 local.W[t] = S1(local.W[(t) - 2]) + local.W[(t) - 7] + \