Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 112) sorted by relevance

12345

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dentropy_poll.c74 if( CryptGenRandom( provider, (DWORD) len, output ) == FALSE ) in mbedtls_platform_entropy_poll()
173 ret = getrandom_wrapper( output, len, 0 ); in mbedtls_platform_entropy_poll()
189 if( sysctl_arnd_wrapper( output, len ) == -1 ) in mbedtls_platform_entropy_poll()
201 read_len = fread( output, 1, len, file ); in mbedtls_platform_entropy_poll()
219 unsigned char *output, size_t len, size_t *olen ) in mbedtls_null_entropy_poll() argument
222 ((void) output); in mbedtls_null_entropy_poll()
228 output[0] = 0; in mbedtls_null_entropy_poll()
245 memcpy( output, &timer, sizeof(unsigned long) ); in mbedtls_hardclock_poll()
254 unsigned char *output, size_t len, size_t *olen ) in mbedtls_havege_poll() argument
259 if( mbedtls_havege_random( hs, output, len ) != 0 ) in mbedtls_havege_poll()
[all …]
A Dxtea.c72 const unsigned char input[8], unsigned char output[8]) in mbedtls_xtea_crypt_ecb()
104 MBEDTLS_PUT_UINT32_BE( v0, output, 0 ); in mbedtls_xtea_crypt_ecb()
105 MBEDTLS_PUT_UINT32_BE( v1, output, 4 ); in mbedtls_xtea_crypt_ecb()
116 unsigned char *output) in mbedtls_xtea_crypt_cbc() argument
129 mbedtls_xtea_crypt_ecb( ctx, mode, input, output ); in mbedtls_xtea_crypt_cbc()
132 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc()
137 output += 8; in mbedtls_xtea_crypt_cbc()
146 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc()
148 mbedtls_xtea_crypt_ecb( ctx, mode, output, output ); in mbedtls_xtea_crypt_cbc()
149 memcpy( iv, output, 8 ); in mbedtls_xtea_crypt_cbc()
[all …]
A Dblowfish.c220 BLOWFISH_VALIDATE_RET( output != NULL ); in mbedtls_blowfish_crypt_ecb()
234 MBEDTLS_PUT_UINT32_BE( X0, output, 0 ); in mbedtls_blowfish_crypt_ecb()
235 MBEDTLS_PUT_UINT32_BE( X1, output, 4 ); in mbedtls_blowfish_crypt_ecb()
249 unsigned char *output ) in mbedtls_blowfish_crypt_cbc() argument
271 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_blowfish_crypt_cbc()
276 output += MBEDTLS_BLOWFISH_BLOCKSIZE; in mbedtls_blowfish_crypt_cbc()
287 mbedtls_blowfish_crypt_ecb( ctx, mode, output, output ); in mbedtls_blowfish_crypt_cbc()
291 output += MBEDTLS_BLOWFISH_BLOCKSIZE; in mbedtls_blowfish_crypt_cbc()
310 unsigned char *output ) in mbedtls_blowfish_crypt_cfb64() argument
335 *output++ = (unsigned char)( c ^ iv[n] ); in mbedtls_blowfish_crypt_cfb64()
[all …]
A Dnist_kw.c220 memcpy( inbuff, output, 16 ); in mbedtls_nist_kw_wrap()
228 unsigned char *R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap()
229 unsigned char *A = output; in mbedtls_nist_kw_wrap()
257 R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap()
286 unsigned char *output, size_t* out_len ) in unwrap() argument
304 R = output + ( semiblocks - 2 ) * KW_SEMIBLOCK_LENGTH; in unwrap()
324 if( R == output ) in unwrap()
377 A, output, out_len ); in mbedtls_nist_kw_unwrap()
425 A, output, out_len ); in mbedtls_nist_kw_unwrap()
470 memset( output + Plen, 0, padlen ); in mbedtls_nist_kw_unwrap()
[all …]
A Dchacha20.c243 unsigned char *output ) in mbedtls_chacha20_update() argument
250 CHACHA20_VALIDATE_RET( size == 0 || output != NULL ); in mbedtls_chacha20_update()
255 output[offset] = input[offset] in mbedtls_chacha20_update()
272 output[offset + i ] = input[offset + i ] ^ ctx->keystream8[i ]; in mbedtls_chacha20_update()
295 output[offset + i] = input[offset + i] ^ ctx->keystream8[i]; in mbedtls_chacha20_update()
310 unsigned char* output ) in mbedtls_chacha20_crypt() argument
318 CHACHA20_VALIDATE_RET( data_len == 0 || output != NULL ); in mbedtls_chacha20_crypt()
330 ret = mbedtls_chacha20_update( &ctx, data_len, input, output ); in mbedtls_chacha20_crypt()
525 unsigned char output[381]; in mbedtls_chacha20_self_test() local
539 output ); in mbedtls_chacha20_self_test()
[all …]
A Dcipher.c537 CIPHER_VALIDATE_RET( output != NULL ); in mbedtls_cipher_update()
593 if( input == output && in mbedtls_cipher_update()
639 output += block_size; in mbedtls_cipher_update()
693 input, output ) ) ) in mbedtls_cipher_update()
825 output[data_len] = 0x80; in add_one_and_zeros_padding()
827 output[data_len + i] = 0x00; in add_one_and_zeros_padding()
865 output[data_len + i - 1] = 0x00; in add_zeros_and_len_padding()
904 output[i] = 0x00; in add_zeros_padding()
950 CIPHER_VALIDATE_RET( output != NULL ); in mbedtls_cipher_finish()
1040 ((void) output); in mbedtls_cipher_finish()
[all …]
A Dchachapoly.c187 unsigned char *output ) in mbedtls_chachapoly_update() argument
192 CHACHAPOLY_VALIDATE_RET( len == 0 || output != NULL ); in mbedtls_chachapoly_update()
285 unsigned char *output, in chachapoly_crypt_and_tag() argument
314 unsigned char *output, in mbedtls_chachapoly_encrypt_and_tag() argument
322 CHACHAPOLY_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_chachapoly_encrypt_and_tag()
326 input, output, tag ) ); in mbedtls_chachapoly_encrypt_and_tag()
336 unsigned char *output ) in mbedtls_chachapoly_auth_decrypt() argument
347 CHACHAPOLY_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_chachapoly_auth_decrypt()
362 mbedtls_platform_zeroize( output, length ); in mbedtls_chachapoly_auth_decrypt()
480 unsigned char output[200]; in mbedtls_chachapoly_self_test() local
[all …]
A Dpadlock.c77 unsigned char output[16] ) in mbedtls_padlock_xcryptecb()
106 memcpy( output, blk, 16 ); in mbedtls_padlock_xcryptecb()
119 unsigned char *output ) in mbedtls_padlock_xcryptcbc() argument
129 ( (long) output & 15 ) != 0 ) in mbedtls_padlock_xcryptcbc()
154 "m" (rk), "m" (input), "m" (output), "m" (iw) in mbedtls_padlock_xcryptcbc()
A Ddes.c627 MBEDTLS_PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des_crypt_ecb()
659 ret = mbedtls_des_crypt_ecb( ctx, output, output ); in mbedtls_des_crypt_cbc()
662 memcpy( iv, output, 8 ); in mbedtls_des_crypt_cbc()
665 output += 8; in mbedtls_des_crypt_cbc()
679 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_des_crypt_cbc()
684 output += 8; in mbedtls_des_crypt_cbc()
765 ret = mbedtls_des3_crypt_ecb( ctx, output, output ); in mbedtls_des3_crypt_cbc()
768 memcpy( iv, output, 8 ); in mbedtls_des3_crypt_cbc()
771 output += 8; in mbedtls_des3_crypt_cbc()
785 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_des3_crypt_cbc()
[all …]
A Dcipher_wrap.c150 output ); in aes_crypt_cbc_wrap()
160 input, output ); in aes_crypt_cfb128_wrap()
680 output ); in camellia_crypt_ecb_wrap()
689 input, output ); in camellia_crypt_cbc_wrap()
1064 output ); in aria_crypt_ecb_wrap()
1073 input, output ); in aria_crypt_cbc_wrap()
1454 output ); in des_crypt_cbc_wrap()
1463 output ); in des3_crypt_cbc_wrap()
1724 output ); in blowfish_crypt_ecb_wrap()
1730 unsigned char *output ) in blowfish_crypt_cbc_wrap() argument
[all …]
A Dmd.c615 unsigned char *output ) in mbedtls_md() argument
624 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()
691 ret = mbedtls_md_finish( &ctx, output ); in mbedtls_md_file()
778 return( mbedtls_md_finish( ctx, output ) ); in mbedtls_md_hmac_finish()
799 unsigned char *output ) in mbedtls_md_hmac() argument
[all …]
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Daes.h272 unsigned char output[16] );
322 unsigned char *output );
367 unsigned char *output );
417 unsigned char *output );
461 unsigned char *output );
516 unsigned char *output );
600 unsigned char *output );
617 unsigned char output[16] );
633 unsigned char output[16] );
653 unsigned char output[16] );
[all …]
A Dentropy_poll.h52 unsigned char *output, size_t len, size_t *olen );
60 unsigned char *output, size_t len, size_t *olen );
70 unsigned char *output, size_t len, size_t *olen );
78 unsigned char *output, size_t len, size_t *olen );
91 unsigned char *output, size_t len, size_t *olen );
101 unsigned char *output, size_t len, size_t *olen );
A Dcipher_internal.h53 const unsigned char *input, unsigned char *output );
59 unsigned char *output );
66 unsigned char *output );
74 unsigned char *output );
81 const unsigned char *input, unsigned char *output );
88 const unsigned char *input, unsigned char *output );
94 const unsigned char *input, unsigned char *output );
A Dcamellia.h142 unsigned char output[16] );
178 unsigned char *output );
225 unsigned char *output );
309 unsigned char *output );
A Dblowfish.h131 unsigned char output[MBEDTLS_BLOWFISH_BLOCKSIZE] );
167 unsigned char *output );
208 unsigned char *output );
281 unsigned char *output );
A Dmd2.h155 unsigned char output[16] );
223 unsigned char output[16] );
256 unsigned char output[16] );
280 unsigned char output[16] );
A Dmd4.h154 unsigned char output[16] );
224 unsigned char output[16] );
261 unsigned char output[16] );
285 unsigned char output[16] );
A Dmd5.h154 unsigned char output[16] );
224 unsigned char output[16] );
261 unsigned char output[16] );
285 unsigned char output[16] );
A Dripemd160.h116 unsigned char output[20] );
169 unsigned char output[20] );
197 unsigned char output[20] );
216 unsigned char output[20] );
A Dsha1.h170 unsigned char output[20] );
247 unsigned char output[20] );
294 unsigned char output[20] );
326 unsigned char output[20] );
A Daria.h170 unsigned char output[MBEDTLS_ARIA_BLOCKSIZE] );
219 unsigned char *output );
270 unsigned char *output );
357 unsigned char *output );
/optee_os-3.20.0/core/crypto/
A Dsm4.c164 uint8_t output[16]) in sm4_one_round()
204 uint8_t *output) in sm4_crypt_ecb() argument
211 output += 16; in sm4_crypt_ecb()
228 sm4_one_round(ctx->sk, output, output); in sm4_crypt_cbc()
229 memcpy(iv, output, 16); in sm4_crypt_cbc()
231 output += 16; in sm4_crypt_cbc()
240 output[i] = (uint8_t)(output[i] ^ iv[i]); in sm4_crypt_cbc()
243 output += 16; in sm4_crypt_cbc()
267 output += 16; in sm4_crypt_ctr()
323 output += 16; in sm4_crypt_xts()
[all …]
A Dsm3.h28 void sm3_final(struct sm3_context *ctx, uint8_t output[32]);
29 void sm3(const uint8_t *input, size_t ilen, uint8_t output[32]);
34 void sm3_hmac_final(struct sm3_context *ctx, uint8_t output[32]);
36 size_t ilen, uint8_t output[32]);
A Dsm4.h22 uint8_t *output);
24 const uint8_t *input, uint8_t *output);
26 const uint8_t *input, uint8_t *output);
29 const uint8_t *input, uint8_t *output);

Completed in 30 milliseconds

12345