Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 13 of 13) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/ciphers/
H A Dnoekeon.c34 temp = a^c; temp = temp ^ ROLc(temp, 8) ^ RORc(temp, 8); \
35 b ^= temp; d ^= temp; \
36 temp = b^d; temp = temp ^ ROLc(temp, 8) ^ RORc(temp, 8); \
37 a ^= temp; c ^= temp;
40 temp = a^c; temp = temp ^ ROLc(temp, 8) ^ RORc(temp, 8); \
41 b ^= temp ^ k[1]; d ^= temp ^ k[3]; \
42 temp = b^d; temp = temp ^ ROLc(temp, 8) ^ RORc(temp, 8); \
43 a ^= temp ^ k[0]; c ^= temp ^ k[2];
48 temp = d; d = a; a = temp;\
69 ulong32 temp; in noekeon_setup() local
[all …]
H A Dkasumi.c135 ulong32 left, right, temp; in kasumi_ecb_encrypt() local
146 temp = FL(left, n, skey); in kasumi_ecb_encrypt()
147 temp = FO(temp, n++, skey); in kasumi_ecb_encrypt()
148 right ^= temp; in kasumi_ecb_encrypt()
149 temp = FO(right, n, skey); in kasumi_ecb_encrypt()
150 temp = FL(temp, n++, skey); in kasumi_ecb_encrypt()
151 left ^= temp; in kasumi_ecb_encrypt()
162 ulong32 left, right, temp; in kasumi_ecb_decrypt() local
173 temp = FO(right, n, skey); in kasumi_ecb_decrypt()
174 temp = FL(temp, n--, skey); in kasumi_ecb_decrypt()
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/aes/
H A Daes.c68 static ulong32 setup_mix(ulong32 temp) in setup_mix() argument
70 return (Te4_3[LTC_BYTE(temp, 2)]) ^ in setup_mix()
71 (Te4_2[LTC_BYTE(temp, 1)]) ^ in setup_mix()
72 (Te4_1[LTC_BYTE(temp, 0)]) ^ in setup_mix()
73 (Te4_0[LTC_BYTE(temp, 3)]); in setup_mix()
78 static ulong32 setup_mix2(ulong32 temp) in setup_mix2() argument
80 return Td0(255 & Te4[LTC_BYTE(temp, 3)]) ^ in setup_mix2()
81 Td1(255 & Te4[LTC_BYTE(temp, 2)]) ^ in setup_mix2()
82 Td2(255 & Te4[LTC_BYTE(temp, 1)]) ^ in setup_mix2()
83 Td3(255 & Te4[LTC_BYTE(temp, 0)]); in setup_mix2()
[all …]
H A Daesni.c48 __m128i temp; in aesni_setup() local
76 temp = temp_load(key); in aesni_setup()
78 rk[4] = rk[0] ^ setup_mix(temp, 3) ^ rcon[i]; in aesni_setup()
85 temp = temp_update(temp, rk[7]); in aesni_setup()
91 temp = temp_load(key + 8); in aesni_setup()
93 rk[6] = rk[0] ^ setup_mix(temp, 3) ^ rcon[i]; in aesni_setup()
102 temp = temp_update(temp, rk[11]); in aesni_setup()
110 temp = temp_load(key + 16); in aesni_setup()
112 rk[8] = rk[0] ^ setup_mix(temp, 3) ^ rcon[i]; in aesni_setup()
119 temp = temp_update(temp, rk[11]); in aesni_setup()
[all …]
/optee_os/ta/pkcs11/src/
H A Dpkcs11_attributes.c222 struct obj_attrs *temp, in set_mandatory_boolprops() argument
230 rc = pkcs11_import_object_boolprop(out, temp, bp[n]); in set_mandatory_boolprops()
239 struct obj_attrs *temp, in set_mandatory_attributes() argument
250 if (get_attribute_ptr(temp, attrs[n], &value, &size)) in set_mandatory_attributes()
274 struct obj_attrs *temp, in set_optional_attributes_with_def() argument
286 rc = get_attribute_ptr(temp, attrs[n], &value, &size); in set_optional_attributes_with_def()
307 struct obj_attrs *temp, in set_attributes_opt_or_null() argument
311 return set_optional_attributes_with_def(out, temp, attrs, attrs_count, in set_attributes_opt_or_null()
316 struct obj_attrs *temp, in set_optional_attributes() argument
320 return set_optional_attributes_with_def(out, temp, attrs, attrs_count, in set_optional_attributes()
[all …]
/optee_os/core/crypto/
H A Dsm4.c220 uint8_t temp[16]; in sm4_crypt_cbc() local
237 memcpy(temp, input, 16); in sm4_crypt_cbc()
241 memcpy(iv, temp, 16); in sm4_crypt_cbc()
253 uint8_t temp[16]; in sm4_crypt_ctr() local
258 memcpy(temp, ctr, 16); in sm4_crypt_ctr()
262 memcpy(ctr, temp, 16); in sm4_crypt_ctr()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Ddes.c634 unsigned char temp[8]; in mbedtls_des_crypt_cbc() local
656 memcpy(temp, input, 8); in mbedtls_des_crypt_cbc()
664 memcpy(iv, temp, 8); in mbedtls_des_crypt_cbc()
732 unsigned char temp[8]; in mbedtls_des3_crypt_cbc() local
754 memcpy(temp, input, 8); in mbedtls_des3_crypt_cbc()
762 memcpy(iv, temp, 8); in mbedtls_des3_crypt_cbc()
H A Dbignum_core.c729 mbedtls_mpi_uint *temp) in exp_mod_precompute_window() argument
734 mbedtls_mpi_core_montmul(Wtable, Wtable, RR, AN_limbs, N, AN_limbs, mm, temp); in exp_mod_precompute_window()
744 mbedtls_mpi_core_montmul(Wcur, Wprev, W1, AN_limbs, N, AN_limbs, mm, temp); in exp_mod_precompute_window()
878 mbedtls_mpi_uint *const temp = Wselect + select_limbs; in mbedtls_mpi_core_exp_mod_optionally_safe() local
889 welem, Wtable, temp); in mbedtls_mpi_core_exp_mod_optionally_safe()
905 mbedtls_mpi_core_montmul(X, X, X, AN_limbs, N, AN_limbs, mm, temp); in mbedtls_mpi_core_exp_mod_optionally_safe()
928 temp); in mbedtls_mpi_core_exp_mod_optionally_safe()
H A Dcamellia.c526 unsigned char temp[16]; in mbedtls_camellia_crypt_cbc() local
537 memcpy(temp, input, 16); in mbedtls_camellia_crypt_cbc()
542 memcpy(iv, temp, 16); in mbedtls_camellia_crypt_cbc()
H A Daria.c519 unsigned char temp[MBEDTLS_ARIA_BLOCKSIZE]; in mbedtls_aria_crypt_cbc() local
531 memcpy(temp, input, MBEDTLS_ARIA_BLOCKSIZE); in mbedtls_aria_crypt_cbc()
536 memcpy(iv, temp, MBEDTLS_ARIA_BLOCKSIZE); in mbedtls_aria_crypt_cbc()
H A Dsha1.c69 uint32_t temp, W[16], A, B, C, D, E; in mbedtls_internal_sha1_process() member
93 local.temp = local.W[((t) - 3) & 0x0F] ^ \ in mbedtls_internal_sha1_process()
97 (local.W[(t) & 0x0F] = S(local.temp, 1)) \ in mbedtls_internal_sha1_process()
H A Daes.c1080 unsigned char temp[16]; in mbedtls_aes_crypt_cbc() local
1111 memcpy(temp, input, 16); in mbedtls_aes_crypt_cbc()
1121 memcpy(iv, temp, 16); in mbedtls_aes_crypt_cbc()
/optee_os/core/tee/
H A Dtee_rpmb_fs.c2881 char temp; in rpmb_fs_dir_populate() local
2901 temp = filename[pathlen]; in rpmb_fs_dir_populate()
2906 filename[pathlen] = temp; in rpmb_fs_dir_populate()