Home
last modified time | relevance | path

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

12345678910

/optee_os/core/lib/libtomcrypt/src/stream/chacha/
A Dchacha_setup.c41 LOAD32L(st->input[4], key + 0); in chacha_setup()
42 LOAD32L(st->input[5], key + 4); in chacha_setup()
43 LOAD32L(st->input[6], key + 8); in chacha_setup()
44 LOAD32L(st->input[7], key + 12); in chacha_setup()
51 LOAD32L(st->input[8], key + 0); in chacha_setup()
52 LOAD32L(st->input[9], key + 4); in chacha_setup()
53 LOAD32L(st->input[10], key + 8); in chacha_setup()
54 LOAD32L(st->input[11], key + 12); in chacha_setup()
55 LOAD32L(st->input[0], constants + 0); in chacha_setup()
56 LOAD32L(st->input[1], constants + 4); in chacha_setup()
[all …]
A Dchacha_crypt.c26 static void _chacha_block(unsigned char *output, const ulong32 *input, int rounds) in _chacha_block() argument
30 XMEMCPY(x, input, sizeof(x)); in _chacha_block()
42 x[i] += input[i]; in _chacha_block()
76 _chacha_block(buf, st->input, st->rounds); in chacha_crypt()
79 if (0 == ++st->input[12] && 0 == ++st->input[13]) return CRYPT_OVERFLOW; in chacha_crypt()
83 if (0 == ++st->input[12]) return CRYPT_OVERFLOW; in chacha_crypt()
A Dchacha_ivctr32.c35 st->input[12] = counter; in chacha_ivctr32()
36 LOAD32L(st->input[13], iv + 0); in chacha_ivctr32()
37 LOAD32L(st->input[14], iv + 4); in chacha_ivctr32()
38 LOAD32L(st->input[15], iv + 8); in chacha_ivctr32()
/optee_os/core/lib/libtomcrypt/src/stream/salsa20/
A Dsalsa20_setup.c43 LOAD32L(st->input[1], key + 0); in salsa20_setup()
44 LOAD32L(st->input[2], key + 4); in salsa20_setup()
45 LOAD32L(st->input[3], key + 8); in salsa20_setup()
46 LOAD32L(st->input[4], key + 12); in salsa20_setup()
53 LOAD32L(st->input[11], key + 0); in salsa20_setup()
54 LOAD32L(st->input[12], key + 4); in salsa20_setup()
55 LOAD32L(st->input[13], key + 8); in salsa20_setup()
56 LOAD32L(st->input[14], key + 12); in salsa20_setup()
57 LOAD32L(st->input[ 0], constants + 0); in salsa20_setup()
58 LOAD32L(st->input[ 5], constants + 4); in salsa20_setup()
[all …]
A Dxsalsa20_setup.c105 LOAD32L(st->input[ 0], constants + 0); in xsalsa20_setup()
109 LOAD32L(st->input[ 1], subkey + 0); in xsalsa20_setup()
110 LOAD32L(st->input[ 2], subkey + 4); in xsalsa20_setup()
111 LOAD32L(st->input[ 3], subkey + 8); in xsalsa20_setup()
112 LOAD32L(st->input[ 4], subkey + 12); in xsalsa20_setup()
113 LOAD32L(st->input[11], subkey + 16); in xsalsa20_setup()
114 LOAD32L(st->input[12], subkey + 20); in xsalsa20_setup()
115 LOAD32L(st->input[13], subkey + 24); in xsalsa20_setup()
116 LOAD32L(st->input[14], subkey + 28); in xsalsa20_setup()
119 st->input[ 8] = 0; in xsalsa20_setup()
[all …]
/optee_os/core/lib/libtomcrypt/src/misc/
A Dadler32.c34 LTC_ARGCHKVD(input != NULL); in adler32_update()
40 s1 += *input++; in adler32_update()
52 s1 += input[0]; in adler32_update()
54 s1 += input[1]; in adler32_update()
56 s1 += input[2]; in adler32_update()
58 s1 += input[3]; in adler32_update()
60 s1 += input[4]; in adler32_update()
62 s1 += input[5]; in adler32_update()
64 s1 += input[6]; in adler32_update()
66 s1 += input[7]; in adler32_update()
[all …]
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Daes.h260 const unsigned char input[16],
309 const unsigned char *input,
353 const unsigned char *input,
402 const unsigned char *input,
445 const unsigned char *input,
499 const unsigned char *input,
586 const unsigned char *input,
602 const unsigned char input[16],
617 const unsigned char input[16],
637 const unsigned char input[16],
[all …]
A Dcipher_internal.h53 const unsigned char *input, unsigned char *output );
58 unsigned char *iv, const unsigned char *input,
65 unsigned char *iv, const unsigned char *input,
73 const unsigned char *input,
81 const unsigned char *input, unsigned char *output );
88 const unsigned char *input, unsigned char *output );
94 const unsigned char *input, unsigned char *output );
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Daes.h260 const unsigned char input[16],
309 const unsigned char *input,
353 const unsigned char *input,
402 const unsigned char *input,
445 const unsigned char *input,
499 const unsigned char *input,
586 const unsigned char *input,
602 const unsigned char input[16],
617 const unsigned char input[16],
637 const unsigned char input[16],
[all …]
A Dcipher_internal.h53 const unsigned char *input, unsigned char *output );
58 unsigned char *iv, const unsigned char *input,
65 unsigned char *iv, const unsigned char *input,
73 const unsigned char *input,
81 const unsigned char *input, unsigned char *output );
88 const unsigned char *input, unsigned char *output );
94 const unsigned char *input, unsigned char *output );
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Daes.h260 const unsigned char input[16],
309 const unsigned char *input,
353 const unsigned char *input,
402 const unsigned char *input,
445 const unsigned char *input,
499 const unsigned char *input,
586 const unsigned char *input,
602 const unsigned char input[16],
617 const unsigned char input[16],
637 const unsigned char input[16],
[all …]
A Dcipher_internal.h53 const unsigned char *input, unsigned char *output );
58 unsigned char *iv, const unsigned char *input,
65 unsigned char *iv, const unsigned char *input,
73 const unsigned char *input,
81 const unsigned char *input, unsigned char *output );
88 const unsigned char *input, unsigned char *output );
94 const unsigned char *input, unsigned char *output );
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Daes.h260 const unsigned char input[16],
309 const unsigned char *input,
353 const unsigned char *input,
402 const unsigned char *input,
445 const unsigned char *input,
499 const unsigned char *input,
586 const unsigned char *input,
602 const unsigned char input[16],
617 const unsigned char input[16],
637 const unsigned char input[16],
[all …]
A Dcipher_internal.h53 const unsigned char *input, unsigned char *output );
58 unsigned char *iv, const unsigned char *input,
65 unsigned char *iv, const unsigned char *input,
73 const unsigned char *input,
81 const unsigned char *input, unsigned char *output );
88 const unsigned char *input, unsigned char *output );
94 const unsigned char *input, unsigned char *output );
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Daes.h260 const unsigned char input[16],
309 const unsigned char *input,
353 const unsigned char *input,
402 const unsigned char *input,
445 const unsigned char *input,
499 const unsigned char *input,
586 const unsigned char *input,
602 const unsigned char input[16],
617 const unsigned char input[16],
637 const unsigned char input[16],
[all …]
A Dcipher_internal.h53 const unsigned char *input, unsigned char *output );
58 unsigned char *iv, const unsigned char *input,
65 unsigned char *iv, const unsigned char *input,
73 const unsigned char *input,
81 const unsigned char *input, unsigned char *output );
88 const unsigned char *input, unsigned char *output );
94 const unsigned char *input, unsigned char *output );
/optee_os/lib/libmbedtls/mbedtls/library/
A Dcipher.c602 if( input == output && in mbedtls_cipher_update()
651 input += copy_len; in mbedtls_cipher_update()
702 input, output ) ) ) in mbedtls_cipher_update()
804 if( NULL == input || NULL == data_len ) in get_pkcs_padding()
807 padding_len = input[input_len - 1]; in get_pkcs_padding()
845 if( NULL == input || NULL == data_len ) in get_one_and_zeros_padding()
853 done |= ( input[i - 1] != 0 ); in get_one_and_zeros_padding()
884 if( NULL == input || NULL == data_len ) in get_zeros_and_len_padding()
887 padding_len = input[input_len - 1]; in get_zeros_and_len_padding()
929 done |= ( input[i-1] != 0 ); in get_zeros_padding()
[all …]
A Dcipher_wrap.c140 const unsigned char *input, unsigned char *output ) in aes_crypt_ecb_wrap() argument
157 const unsigned char *input, unsigned char *output ) in aes_crypt_cfb128_wrap() argument
160 input, output ); in aes_crypt_cfb128_wrap()
169 iv, input, output ); in aes_crypt_ofb_wrap()
176 const unsigned char *input, unsigned char *output ) in aes_crypt_ctr_wrap() argument
179 stream_block, input, output ); in aes_crypt_ctr_wrap()
187 const unsigned char *input, in aes_crypt_xts_wrap() argument
689 input, output ); in camellia_crypt_cbc_wrap()
1073 input, output ); in aria_crypt_cbc_wrap()
1733 input, output ); in blowfish_crypt_cbc_wrap()
[all …]
A Dblowfish.c242 BLOWFISH_VALIDATE_RET( input != NULL ); in mbedtls_blowfish_crypt_ecb()
245 GET_UINT32_BE( X0, input, 0 ); in mbedtls_blowfish_crypt_ecb()
246 GET_UINT32_BE( X1, input, 4 ); in mbedtls_blowfish_crypt_ecb()
271 const unsigned char *input, in mbedtls_blowfish_crypt_cbc() argument
280 BLOWFISH_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_blowfish_crypt_cbc()
298 input += MBEDTLS_BLOWFISH_BLOCKSIZE; in mbedtls_blowfish_crypt_cbc()
313 input += MBEDTLS_BLOWFISH_BLOCKSIZE; in mbedtls_blowfish_crypt_cbc()
332 const unsigned char *input, in mbedtls_blowfish_crypt_cfb64() argument
357 c = *input++; in mbedtls_blowfish_crypt_cfb64()
392 const unsigned char *input, in mbedtls_blowfish_crypt_ctr() argument
[all …]
A Dchacha20.c252 const unsigned char *input, in mbedtls_chacha20_update() argument
259 CHACHA20_VALIDATE_RET( size == 0 || input != NULL ); in mbedtls_chacha20_update()
265 output[offset] = input[offset] in mbedtls_chacha20_update()
282 output[offset + i ] = input[offset + i ] ^ ctx->keystream8[i ]; in mbedtls_chacha20_update()
283 output[offset + i+1] = input[offset + i+1] ^ ctx->keystream8[i+1]; in mbedtls_chacha20_update()
284 output[offset + i+2] = input[offset + i+2] ^ ctx->keystream8[i+2]; in mbedtls_chacha20_update()
285 output[offset + i+3] = input[offset + i+3] ^ ctx->keystream8[i+3]; in mbedtls_chacha20_update()
305 output[offset + i] = input[offset + i] ^ ctx->keystream8[i]; in mbedtls_chacha20_update()
319 const unsigned char* input, in mbedtls_chacha20_crypt() argument
327 CHACHA20_VALIDATE_RET( data_len == 0 || input != NULL ); in mbedtls_chacha20_crypt()
[all …]
A Dxtea.c95 const unsigned char input[8], unsigned char output[8]) in mbedtls_xtea_crypt_ecb()
101 GET_UINT32_BE( v0, input, 0 ); in mbedtls_xtea_crypt_ecb()
102 GET_UINT32_BE( v1, input, 4 ); in mbedtls_xtea_crypt_ecb()
138 unsigned char iv[8], const unsigned char *input, in mbedtls_xtea_crypt_cbc() argument
151 memcpy( temp, input, 8 ); in mbedtls_xtea_crypt_cbc()
152 mbedtls_xtea_crypt_ecb( ctx, mode, input, output ); in mbedtls_xtea_crypt_cbc()
159 input += 8; in mbedtls_xtea_crypt_cbc()
169 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc()
174 input += 8; in mbedtls_xtea_crypt_cbc()
A Dmd2.c168 const unsigned char *input, in mbedtls_md2_update_ret() argument
181 memcpy( ctx->buffer + ctx->left, input, fill ); in mbedtls_md2_update_ret()
184 input += fill; in mbedtls_md2_update_ret()
200 const unsigned char *input, in mbedtls_md2_update() argument
203 mbedtls_md2_update_ret( ctx, input, ilen ); in mbedtls_md2_update()
247 int mbedtls_md2_ret( const unsigned char *input, in mbedtls_md2_ret() argument
259 if( ( ret = mbedtls_md2_update_ret( &ctx, input, ilen ) ) != 0 ) in mbedtls_md2_ret()
272 void mbedtls_md2( const unsigned char *input, in mbedtls_md2() argument
276 mbedtls_md2_ret( input, ilen, output ); in mbedtls_md2()
A Dmd.c624 return( mbedtls_md2_ret( input, ilen, output ) ); in mbedtls_md()
628 return( mbedtls_md4_ret( input, ilen, output ) ); in mbedtls_md()
632 return( mbedtls_md5_ret( input, ilen, output ) ); in mbedtls_md()
636 return( mbedtls_ripemd160_ret( input, ilen, output ) ); in mbedtls_md()
640 return( mbedtls_sha1_ret( input, ilen, output ) ); in mbedtls_md()
644 return( mbedtls_sha256_ret( input, ilen, output, 1 ) ); in mbedtls_md()
646 return( mbedtls_sha256_ret( input, ilen, output, 0 ) ); in mbedtls_md()
651 return( mbedtls_sha512_ret( input, ilen, output, 1 ) ); in mbedtls_md()
654 return( mbedtls_sha512_ret( input, ilen, output, 0 ) ); in mbedtls_md()
754 return( mbedtls_md_update( ctx, input, ilen ) ); in mbedtls_md_hmac_update()
[all …]
A Dccm.c269 src = input; in ccm_auth_crypt()
323 const unsigned char *input, unsigned char *output, in mbedtls_ccm_star_encrypt_and_tag() argument
329 CCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_ccm_star_encrypt_and_tag()
333 add, add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_star_encrypt_and_tag()
345 CCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_ccm_encrypt_and_tag()
352 add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_encrypt_and_tag()
361 const unsigned char *input, unsigned char *output, in mbedtls_ccm_star_auth_decrypt() argument
372 CCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_ccm_star_auth_decrypt()
399 const unsigned char *input, unsigned char *output, in mbedtls_ccm_auth_decrypt() argument
405 CCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_ccm_auth_decrypt()
[all …]
/optee_os/core/crypto/
A Dsm4.c171 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()
209 sm4_one_round(ctx->sk, input, output); in sm4_crypt_ecb()
210 input += 16; in sm4_crypt_ecb()
230 input += 16; in sm4_crypt_cbc()
237 memcpy(temp, input, 16); in sm4_crypt_cbc()
238 sm4_one_round(ctx->sk, input, output); in sm4_crypt_cbc()
242 input += 16; in sm4_crypt_cbc()
[all …]

Completed in 33 milliseconds

12345678910