Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 28) sorted by relevance

12

/optee_os/core/lib/libtomcrypt/src/misc/
A Dadler32.c31 unsigned long s1, s2; in adler32_update() local
36 s2 = ctx->s[1]; in adler32_update()
41 s2 += s1; in adler32_update()
53 s2 += s1; in adler32_update()
55 s2 += s1; in adler32_update()
57 s2 += s1; in adler32_update()
59 s2 += s1; in adler32_update()
61 s2 += s1; in adler32_update()
63 s2 += s1; in adler32_update()
65 s2 += s1; in adler32_update()
[all …]
/optee_os/lib/libutils/isoc/newlib/
A Dmemcmp.c88 unsigned char *s2 = (unsigned char *)m2; variable
91 if (*s1 != *s2)
92 return *s1 - *s2;
94 s2++;
99 unsigned char *s2 = (unsigned char *)m2;
106 if (!TOO_SMALL(n) && !UNALIGNED(s1, s2)) {
112 a2 = (unsigned long *)s2;
124 s2 = (unsigned char *)a2;
128 if (*s1 != *s2)
129 return *s1 - *s2;
[all …]
A Dstrcmp.c96 int _DEFUN(strcmp, (s1, s2), _CONST char *s1 _AND _CONST char *s2)
99 while (*s1 != '\0' && *s1 == *s2) {
101 s2++;
104 return (*(unsigned char *)s1) - (*(unsigned char *)s2);
110 if (!UNALIGNED(s1, s2)) {
115 a2 = (unsigned long *)s2;
133 s2 = (char *)a2;
136 while (*s1 != '\0' && *s1 == *s2) {
138 s2++;
140 return (*(unsigned char *)s1) - (*(unsigned char *)s2);
A Dstrncmp.c96 _DEFUN (strncmp, (s1, s2, n),
98 _CONST char *s2 _AND
105 while (n-- != 0 && *s1 == *s2)
110 s2++;
113 return (*(unsigned char *) s1) - (*(unsigned char *) s2);
122 if (!UNALIGNED (s1, s2))
126 a2 = (unsigned long*)s2;
142 s2 = (char*)a2;
145 while (n-- > 0 && *s1 == *s2)
152 s2++;
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/aes/
A Daes.c311 LOAD32H(s2, pt + 8); s2 ^= rk[2]; in _rijndael_ecb_encrypt()
321 Te2(LTC_BYTE(s2, 1)) ^ in _rijndael_ecb_encrypt()
326 Te1(LTC_BYTE(s2, 2)) ^ in _rijndael_ecb_encrypt()
331 Te0(LTC_BYTE(s2, 3)) ^ in _rijndael_ecb_encrypt()
398 s2 = in _rijndael_ecb_encrypt()
432 s2 = in _rijndael_ecb_encrypt()
438 STORE32H(s2, ct+8); in _rijndael_ecb_encrypt()
495 LOAD32H(s2, ct + 8); s2 ^= rk[2]; in _rijndael_ecb_decrypt()
583 s2 = in _rijndael_ecb_decrypt()
616 s2 = in _rijndael_ecb_decrypt()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
A Dpem.c232 const unsigned char *s1, *s2, *end; in mbedtls_pem_read_buffer() local
251 s2 = (unsigned char *) strstr( (const char *) data, footer ); in mbedtls_pem_read_buffer()
253 if( s2 == NULL || s2 <= s1 ) in mbedtls_pem_read_buffer()
262 end = s2; in mbedtls_pem_read_buffer()
289 if( s2 - s1 < 16 || pem_get_iv( s1, pem_iv, 8 ) != 0 ) in mbedtls_pem_read_buffer()
299 if( s2 - s1 < 16 || pem_get_iv( s1, pem_iv, 8) != 0 ) in mbedtls_pem_read_buffer()
307 if( s2 - s1 >= 14 && memcmp( s1, "DEK-Info: AES-", 14 ) == 0 ) in mbedtls_pem_read_buffer()
309 if( s2 - s1 < 22 ) in mbedtls_pem_read_buffer()
321 if( s2 - s1 < 32 || pem_get_iv( s1, pem_iv, 16 ) != 0 ) in mbedtls_pem_read_buffer()
340 if( s1 >= s2 ) in mbedtls_pem_read_buffer()
[all …]
/optee_os/lib/libutils/isoc/include/
A Dstring.h17 void *memcpy(void *__restrict s1, const void *__restrict s2, size_t n);
18 void *memmove(void *s1, const void *s2, size_t n);
19 int memcmp(const void *s1, const void *s2, size_t n);
22 int strcmp(const char *s1, const char *s2);
23 int strncmp(const char *s1, const char *s2, size_t n);
A Dstrings.h8 int bcmp(const void *s1, const void *s2, size_t n);
/optee_os/out/arm/export-ta_arm32/include/
A Dstring.h17 void *memcpy(void *__restrict s1, const void *__restrict s2, size_t n);
18 void *memmove(void *s1, const void *s2, size_t n);
19 int memcmp(const void *s1, const void *s2, size_t n);
22 int strcmp(const char *s1, const char *s2);
23 int strncmp(const char *s1, const char *s2, size_t n);
A Dstring_ext.h28 static inline int buf_compare_ct(const void *s1, const void *s2, size_t n) in buf_compare_ct() argument
30 return consttime_memcmp(s1, s2, n); in buf_compare_ct()
A Dstrings.h8 int bcmp(const void *s1, const void *s2, size_t n);
/optee_os/out/arm/export-ta_arm64/include/
A Dstring.h17 void *memcpy(void *__restrict s1, const void *__restrict s2, size_t n);
18 void *memmove(void *s1, const void *s2, size_t n);
19 int memcmp(const void *s1, const void *s2, size_t n);
22 int strcmp(const char *s1, const char *s2);
23 int strncmp(const char *s1, const char *s2, size_t n);
A Dstring_ext.h28 static inline int buf_compare_ct(const void *s1, const void *s2, size_t n) in buf_compare_ct() argument
30 return consttime_memcmp(s1, s2, n); in buf_compare_ct()
A Dstrings.h8 int bcmp(const void *s1, const void *s2, size_t n);
/optee_os/core/lib/libtomcrypt/src/mac/pelican/
A Dpelican.c57 ulong32 s0, s1, s2, s3, t0, t1, t2, t3; in _four_rounds() local
62 LOAD32H(s2, pelmac->state + 8); in _four_rounds()
68 Te2(LTC_BYTE(s2, 1)) ^ in _four_rounds()
72 Te1(LTC_BYTE(s2, 2)) ^ in _four_rounds()
76 Te0(LTC_BYTE(s2, 3)) ^ in _four_rounds()
84 Te3(LTC_BYTE(s2, 0)); in _four_rounds()
85 s0 = t0; s1 = t1; s2 = t2; s3 = t3; in _four_rounds()
89 STORE32H(s2, pelmac->state + 8); in _four_rounds()
/optee_os/core/include/kernel/
A Dasan.h29 void *asan_memcpy_unchecked(void *__restrict s1, const void *__restrict s2,
51 const void *__restrict s2, size_t n) in asan_memcpy_unchecked() argument
53 return memcpy(s1, s2, n); in asan_memcpy_unchecked()
/optee_os/lib/libutils/ext/include/
A Dstring_ext.h28 static inline int buf_compare_ct(const void *s1, const void *s2, size_t n) in buf_compare_ct() argument
30 return consttime_memcmp(s1, s2, n); in buf_compare_ct()
/optee_os/core/lib/zlib/
A Dzutil.c161 int ZLIB_INTERNAL zmemcmp(s1, s2, len) in zmemcmp() argument
163 const Bytef* s2;
169 if (s1[j] != s2[j]) return 2*(s1[j] > s2[j])-1;
A Dzutil.h233 int ZLIB_INTERNAL zmemcmp OF((const Bytef* s1, const Bytef* s2, uInt len));
/optee_os/core/arch/arm/crypto/
A Dsha256_armv8a_ce_a32.S39 .macro add_update, ev, s0, s1, s2, s3
42 sha256su1.32 q\s0, q\s2, q\s3
A Dsha1_armv8a_ce_a32.S45 .macro add_update, op, ev, rc, s0, s1, s2, s3, dg1
46 sha1su0.32 q\s0, q\s1, q\s2
A Dsha256_armv8a_ce_a64.S43 .macro add_update, ev, rc, s0, s1, s2, s3
46 sha256su1 v\s0\().4s, v\s2\().4s, v\s3\().4s
A Dsha1_armv8a_ce_a64.S51 .macro add_update, op, ev, rc, s0, s1, s2, s3, dg1
52 sha1su0 v\s0\().4s, v\s1\().4s, v\s2\().4s
/optee_os/core/lib/libtomcrypt/src/mac/poly1305/
A Dpoly1305.c25 ulong32 s1,s2,s3,s4; in _poly1305_block() local
38 s2 = r2 * 5; in _poly1305_block()
57 …d0 = ((ulong64)h0 * r0) + ((ulong64)h1 * s4) + ((ulong64)h2 * s3) + ((ulong64)h3 * s2) + ((ulong64… in _poly1305_block()
58 …ong64)h0 * r1) + ((ulong64)h1 * r0) + ((ulong64)h2 * s4) + ((ulong64)h3 * s3) + ((ulong64)h4 * s2); in _poly1305_block()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_cfg.h47 LTC_EXPORT int LTC_CALL XMEMCMP(const void *s1, const void *s2, size_t n);
50 LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2);

Completed in 24 milliseconds

12