Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 137) sorted by relevance

123456

/optee_os/core/lib/libtomcrypt/src/stream/salsa20/
H A Dsalsa20_setup.c36 LOAD32L(st->input[1], key + 0); in salsa20_setup()
37 LOAD32L(st->input[2], key + 4); in salsa20_setup()
38 LOAD32L(st->input[3], key + 8); in salsa20_setup()
39 LOAD32L(st->input[4], key + 12); in salsa20_setup()
46 LOAD32L(st->input[11], key + 0); in salsa20_setup()
47 LOAD32L(st->input[12], key + 4); in salsa20_setup()
48 LOAD32L(st->input[13], key + 8); in salsa20_setup()
49 LOAD32L(st->input[14], key + 12); in salsa20_setup()
50 LOAD32L(st->input[ 0], constants + 0); in salsa20_setup()
51 LOAD32L(st->input[ 5], constants + 4); in salsa20_setup()
[all …]
H A Dxsalsa20_setup.c98 LOAD32L(st->input[ 0], constants + 0); in xsalsa20_setup()
99 LOAD32L(st->input[ 5], constants + 4); in xsalsa20_setup()
100 LOAD32L(st->input[10], constants + 8); in xsalsa20_setup()
101 LOAD32L(st->input[15], constants + 12); in xsalsa20_setup()
102 LOAD32L(st->input[ 1], subkey + 0); in xsalsa20_setup()
103 LOAD32L(st->input[ 2], subkey + 4); in xsalsa20_setup()
104 LOAD32L(st->input[ 3], subkey + 8); in xsalsa20_setup()
105 LOAD32L(st->input[ 4], subkey + 12); in xsalsa20_setup()
106 LOAD32L(st->input[11], subkey + 16); in xsalsa20_setup()
107 LOAD32L(st->input[12], subkey + 20); in xsalsa20_setup()
[all …]
H A Dsalsa20_ivctr64.c29 LOAD32L(st->input[6], iv + 0); in salsa20_ivctr64()
30 LOAD32L(st->input[7], iv + 4); in salsa20_ivctr64()
31 st->input[8] = (ulong32)(counter & 0xFFFFFFFF); in salsa20_ivctr64()
32 st->input[9] = (ulong32)(counter >> 32); in salsa20_ivctr64()
H A Dsalsa20_crypt.c20 static void s_salsa20_block(unsigned char *output, const ulong32 *input, int rounds) in s_salsa20_block() argument
24 XMEMCPY(x, input, sizeof(x)); in s_salsa20_block()
36 x[i] += input[i]; in s_salsa20_block()
70 s_salsa20_block(buf, st->input, st->rounds); in salsa20_crypt()
72 if (0 == ++st->input[8] && 0 == ++st->input[9]) return CRYPT_OVERFLOW; in salsa20_crypt()
/optee_os/core/lib/libtomcrypt/src/stream/chacha/
H A Dchacha_setup.c34 LOAD32L(st->input[4], key + 0); in chacha_setup()
35 LOAD32L(st->input[5], key + 4); in chacha_setup()
36 LOAD32L(st->input[6], key + 8); in chacha_setup()
37 LOAD32L(st->input[7], key + 12); in chacha_setup()
44 LOAD32L(st->input[8], key + 0); in chacha_setup()
45 LOAD32L(st->input[9], key + 4); in chacha_setup()
46 LOAD32L(st->input[10], key + 8); in chacha_setup()
47 LOAD32L(st->input[11], key + 12); in chacha_setup()
48 LOAD32L(st->input[0], constants + 0); in chacha_setup()
49 LOAD32L(st->input[1], constants + 4); in chacha_setup()
[all …]
H A Dchacha_ivctr32.c28 st->input[12] = counter; in chacha_ivctr32()
29 LOAD32L(st->input[13], iv + 0); in chacha_ivctr32()
30 LOAD32L(st->input[14], iv + 4); in chacha_ivctr32()
31 LOAD32L(st->input[15], iv + 8); in chacha_ivctr32()
H A Dchacha_ivctr64.c28 st->input[12] = (ulong32)(counter & 0xFFFFFFFF); in chacha_ivctr64()
29 st->input[13] = (ulong32)(counter >> 32); in chacha_ivctr64()
30 LOAD32L(st->input[14], iv + 0); in chacha_ivctr64()
31 LOAD32L(st->input[15], iv + 4); in chacha_ivctr64()
H A Dchacha_crypt.c19 static void s_chacha_block(unsigned char *output, const ulong32 *input, int rounds) in s_chacha_block() argument
23 XMEMCPY(x, input, sizeof(x)); in s_chacha_block()
35 x[i] += input[i]; in s_chacha_block()
69 s_chacha_block(buf, st->input, st->rounds); in chacha_crypt()
72 if (0 == ++st->input[12] && 0 == ++st->input[13]) return CRYPT_OVERFLOW; in chacha_crypt()
76 if (0 == ++st->input[12]) return CRYPT_OVERFLOW; in chacha_crypt()
/optee_os/core/lib/libtomcrypt/src/misc/
H A Dadler32.c22 void adler32_update(adler32_state *ctx, const unsigned char *input, unsigned long length) in adler32_update() argument
27 LTC_ARGCHKVD(input != NULL); in adler32_update()
33 s1 += *input++; in adler32_update()
45 s1 += input[0]; in adler32_update()
47 s1 += input[1]; in adler32_update()
49 s1 += input[2]; in adler32_update()
51 s1 += input[3]; in adler32_update()
53 s1 += input[4]; in adler32_update()
55 s1 += input[5]; in adler32_update()
57 s1 += input[6]; in adler32_update()
[all …]
/optee_os/core/crypto/
H A Dsm4_accel.c25 void sm4_crypt_ecb(struct sm4_context *ctx, size_t length, const uint8_t *input, in sm4_crypt_ecb() argument
30 crypto_accel_sm4_ecb_enc(output, input, ctx->sk, length); in sm4_crypt_ecb()
34 const uint8_t *input, uint8_t *output) in sm4_crypt_cbc() argument
39 crypto_accel_sm4_cbc_enc(output, input, ctx->sk, length, iv); in sm4_crypt_cbc()
42 crypto_accel_sm4_cbc_dec(output, input, ctx->sk, length, iv); in sm4_crypt_cbc()
46 const uint8_t *input, uint8_t *output) in sm4_crypt_ctr() argument
50 crypto_accel_sm4_ctr_enc(output, input, ctx->sk, length, ctr); in sm4_crypt_ctr()
55 const uint8_t *input, uint8_t *output) in sm4_crypt_xts() argument
60 crypto_accel_sm4_xts_enc(output, input, ctx->sk, ctx_ek->sk, in sm4_crypt_xts()
63 crypto_accel_sm4_xts_dec(output, input, ctx->sk, ctx_ek->sk, in sm4_crypt_xts()
H A Dsm4.c163 static void sm4_one_round(uint32_t sk[32], const uint8_t input[16], in sm4_one_round()
171 GET_UINT32_BE(ulbuf[0], input, 0); in sm4_one_round()
172 GET_UINT32_BE(ulbuf[1], input, 4); in sm4_one_round()
173 GET_UINT32_BE(ulbuf[2], input, 8); in sm4_one_round()
174 GET_UINT32_BE(ulbuf[3], input, 12); in sm4_one_round()
203 void sm4_crypt_ecb(struct sm4_context *ctx, size_t length, const uint8_t *input, in sm4_crypt_ecb() argument
209 sm4_one_round(ctx->sk, input, output); in sm4_crypt_ecb()
210 input += 16; in sm4_crypt_ecb()
217 const uint8_t *input, uint8_t *output) in sm4_crypt_cbc() argument
227 output[i] = (uint8_t)(input[i] ^ iv[i]); in sm4_crypt_cbc()
[all …]
H A Dsm4.h21 void sm4_crypt_ecb(struct sm4_context *ctx, size_t length, const uint8_t *input,
24 const uint8_t *input, uint8_t *output);
26 const uint8_t *input, uint8_t *output);
29 const uint8_t *input, uint8_t *output);
H A Dsm3.h27 void sm3_update(struct sm3_context *ctx, const uint8_t *input, size_t ilen);
29 void sm3(const uint8_t *input, size_t ilen, uint8_t output[32]);
32 void sm3_hmac_update(struct sm3_context *ctx, const uint8_t *input,
35 void sm3_hmac(const uint8_t *key, size_t keylen, const uint8_t *input,
H A Dsm3.c173 static void sm3_process_blocks(struct sm3_context *ctx, const uint8_t *input, in sm3_process_blocks() argument
178 crypto_accel_sm3_compress(ctx->state, input, block_count); in sm3_process_blocks()
183 sm3_process(ctx, input + n * SM3_BLOCK_SIZE); in sm3_process_blocks()
187 void sm3_update(struct sm3_context *ctx, const uint8_t *input, size_t ilen) in sm3_update() argument
205 memcpy(ctx->buffer + left, input, fill); in sm3_update()
207 input += fill; in sm3_update()
213 sm3_process_blocks(ctx, input, block_count); in sm3_update()
215 input += block_count * SM3_BLOCK_SIZE; in sm3_update()
218 memcpy(ctx->buffer + left, input, ilen); in sm3_update()
256 void sm3(const uint8_t *input, size_t ilen, uint8_t output[32]) in sm3() argument
[all …]
/optee_os/lib/libutils/compiler-rt/lib/builtins/
H A Dashlti3.c23 twords input; in __ashlti3() local
25 input.all = a; in __ashlti3()
28 result.s.high = input.s.low << (b - bits_in_dword); in __ashlti3()
32 result.s.low = input.s.low << b; in __ashlti3()
34 ((du_int)input.s.high << b) | (input.s.low >> (bits_in_dword - b)); in __ashlti3()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Daes.h249 const unsigned char input[16],
299 const unsigned char *input,
344 const unsigned char *input,
394 const unsigned char *input,
438 const unsigned char *input,
493 const unsigned char *input,
577 const unsigned char *input,
594 const unsigned char input[16],
611 const unsigned char input[16],
H A Dcamellia.h119 const unsigned char input[16],
155 const unsigned char *input,
202 const unsigned char *input,
286 const unsigned char *input,
H A Daria.h143 const unsigned char input[MBEDTLS_ARIA_BLOCKSIZE],
192 const unsigned char *input,
243 const unsigned char *input,
326 const unsigned char *input,
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dcipher_wrap.h80 const unsigned char *input, unsigned char *output);
85 unsigned char *iv, const unsigned char *input,
92 unsigned char *iv, const unsigned char *input,
100 const unsigned char *input,
108 const unsigned char *input, unsigned char *output);
115 const unsigned char *input, unsigned char *output);
121 const unsigned char *input, unsigned char *output);
H A Dcipher.c619 int mbedtls_cipher_update(mbedtls_cipher_context_t *ctx, const unsigned char *input, in mbedtls_cipher_update() argument
652 ctx->operation, input, in mbedtls_cipher_update()
663 input, ilen, in mbedtls_cipher_update()
671 input, ilen, in mbedtls_cipher_update()
680 ilen, input, output); in mbedtls_cipher_update()
684 if (input == output && in mbedtls_cipher_update()
702 memcpy(&(ctx->unprocessed_data[ctx->unprocessed_len]), input, in mbedtls_cipher_update()
715 memcpy(&(ctx->unprocessed_data[ctx->unprocessed_len]), input, in mbedtls_cipher_update()
731 input += copy_len; in mbedtls_cipher_update()
750 memcpy(ctx->unprocessed_data, &(input[ilen - copy_len]), in mbedtls_cipher_update()
[all …]
H A Dpadlock.c59 const unsigned char input[16], in mbedtls_padlock_xcryptecb()
75 memcpy(blk, input, 16); in mbedtls_padlock_xcryptecb()
107 const unsigned char *input, in mbedtls_padlock_xcryptcbc() argument
119 if (((long) input & 15) != 0 || in mbedtls_padlock_xcryptcbc()
146 "m" (rk), "m" (input), "m" (output), "m" (iw) in mbedtls_padlock_xcryptcbc()
H A Dmd.c574 int mbedtls_md_update(mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen) in mbedtls_md_update() argument
584 psa_status_t status = psa_hash_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
592 return mbedtls_md5_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
596 return mbedtls_ripemd160_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
600 return mbedtls_sha1_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
604 return mbedtls_sha256_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
608 return mbedtls_sha256_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
612 return mbedtls_sha512_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
616 return mbedtls_sha512_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
623 return mbedtls_sha3_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
[all …]
H A Dpsa_crypto_driver_wrappers.h116 const uint8_t *input, in psa_driver_wrapper_sign_message() argument
138 input, in psa_driver_wrapper_sign_message()
159 input, in psa_driver_wrapper_sign_message()
179 input, in psa_driver_wrapper_sign_message()
191 const uint8_t *input, in psa_driver_wrapper_verify_message() argument
212 input, in psa_driver_wrapper_verify_message()
232 input, in psa_driver_wrapper_verify_message()
251 input, in psa_driver_wrapper_verify_message()
1075 const uint8_t *input, in psa_driver_wrapper_cipher_encrypt() argument
1098 input, in psa_driver_wrapper_cipher_encrypt()
[all …]
H A Dcipher_wrap.c176 const unsigned char *input, unsigned char *output) in aes_crypt_ecb_wrap() argument
178 return mbedtls_aes_crypt_ecb((mbedtls_aes_context *) ctx, operation, input, output); in aes_crypt_ecb_wrap()
183 unsigned char *iv, const unsigned char *input, unsigned char *output) in aes_crypt_cbc_wrap() argument
185 return mbedtls_aes_crypt_cbc((mbedtls_aes_context *) ctx, operation, length, iv, input, in aes_crypt_cbc_wrap()
193 const unsigned char *input, unsigned char *output) in aes_crypt_cfb128_wrap() argument
196 input, output); in aes_crypt_cfb128_wrap()
202 unsigned char *iv, const unsigned char *input, unsigned char *output) in aes_crypt_ofb_wrap() argument
205 iv, input, output); in aes_crypt_ofb_wrap()
212 const unsigned char *input, unsigned char *output) in aes_crypt_ctr_wrap() argument
215 stream_block, input, output); in aes_crypt_ctr_wrap()
[all …]
H A Dpsa_crypto_hash.c263 const uint8_t *input, in mbedtls_psa_hash_update() argument
272 input, input_length); in mbedtls_psa_hash_update()
278 input, input_length); in mbedtls_psa_hash_update()
284 input, input_length); in mbedtls_psa_hash_update()
290 input, input_length); in mbedtls_psa_hash_update()
296 input, input_length); in mbedtls_psa_hash_update()
302 input, input_length); in mbedtls_psa_hash_update()
308 input, input_length); in mbedtls_psa_hash_update()
328 input, input_length); in mbedtls_psa_hash_update()
332 (void) input; in mbedtls_psa_hash_update()
[all …]

123456