/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | entropy_poll.c | 74 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 D | xtea.c | 95 const unsigned char input[8], unsigned char output[8]) in mbedtls_xtea_crypt_ecb() 127 PUT_UINT32_BE( v0, output, 0 ); in mbedtls_xtea_crypt_ecb() 128 PUT_UINT32_BE( v1, output, 4 ); in mbedtls_xtea_crypt_ecb() 139 unsigned char *output) in mbedtls_xtea_crypt_cbc() argument 152 mbedtls_xtea_crypt_ecb( ctx, mode, input, output ); in mbedtls_xtea_crypt_cbc() 155 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc() 160 output += 8; in mbedtls_xtea_crypt_cbc() 169 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc() 171 mbedtls_xtea_crypt_ecb( ctx, mode, output, output ); in mbedtls_xtea_crypt_cbc() 172 memcpy( iv, output, 8 ); in mbedtls_xtea_crypt_cbc() [all …]
|
A D | nist_kw.c | 246 PUT_UINT32_BE( ( in_len & 0xffffffff ), output, in mbedtls_nist_kw_wrap() 259 memcpy( inbuff, output, 16 ); in mbedtls_nist_kw_wrap() 267 unsigned char *R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap() 268 unsigned char *A = output; in mbedtls_nist_kw_wrap() 296 R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap() 343 R = output + ( semiblocks - 2 ) * KW_SEMIBLOCK_LENGTH; in unwrap() 363 if( R == output ) in unwrap() 416 A, output, out_len ); in mbedtls_nist_kw_unwrap() 464 A, output, out_len ); in mbedtls_nist_kw_unwrap() 509 memset( output + Plen, 0, padlen ); in mbedtls_nist_kw_unwrap() [all …]
|
A D | blowfish.c | 243 BLOWFISH_VALIDATE_RET( output != NULL ); in mbedtls_blowfish_crypt_ecb() 257 PUT_UINT32_BE( X0, output, 0 ); in mbedtls_blowfish_crypt_ecb() 258 PUT_UINT32_BE( X1, output, 4 ); in mbedtls_blowfish_crypt_ecb() 272 unsigned char *output ) in mbedtls_blowfish_crypt_cbc() argument 294 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_blowfish_crypt_cbc() 299 output += MBEDTLS_BLOWFISH_BLOCKSIZE; in mbedtls_blowfish_crypt_cbc() 310 mbedtls_blowfish_crypt_ecb( ctx, mode, output, output ); in mbedtls_blowfish_crypt_cbc() 314 output += MBEDTLS_BLOWFISH_BLOCKSIZE; in mbedtls_blowfish_crypt_cbc() 333 unsigned char *output ) in mbedtls_blowfish_crypt_cfb64() argument 358 *output++ = (unsigned char)( c ^ iv[n] ); in mbedtls_blowfish_crypt_cfb64() [all …]
|
A D | cipher.c | 546 CIPHER_VALIDATE_RET( output != NULL ); in mbedtls_cipher_update() 602 if( input == output && in mbedtls_cipher_update() 648 output += block_size; in mbedtls_cipher_update() 702 input, output ) ) ) in mbedtls_cipher_update() 834 output[data_len] = 0x80; in add_one_and_zeros_padding() 836 output[data_len + i] = 0x00; in add_one_and_zeros_padding() 874 output[data_len + i - 1] = 0x00; in add_zeros_and_len_padding() 913 output[i] = 0x00; in add_zeros_padding() 959 CIPHER_VALIDATE_RET( output != NULL ); in mbedtls_cipher_finish() 1049 ((void) output); in mbedtls_cipher_finish() [all …]
|
A D | chacha20.c | 253 unsigned char *output ) in mbedtls_chacha20_update() argument 260 CHACHA20_VALIDATE_RET( size == 0 || output != 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() 305 output[offset + i] = input[offset + i] ^ ctx->keystream8[i]; in mbedtls_chacha20_update() 320 unsigned char* output ) in mbedtls_chacha20_crypt() argument 328 CHACHA20_VALIDATE_RET( data_len == 0 || output != NULL ); in mbedtls_chacha20_crypt() 340 ret = mbedtls_chacha20_update( &ctx, data_len, input, output ); in mbedtls_chacha20_crypt() 535 unsigned char output[381]; in mbedtls_chacha20_self_test() local 549 output ); in mbedtls_chacha20_self_test() [all …]
|
A D | cipher_wrap.c | 150 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 D | des.c | 649 PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des_crypt_ecb() 650 PUT_UINT32_BE( X, output, 4 ); in mbedtls_des_crypt_ecb() 680 mbedtls_des_crypt_ecb( ctx, output, output ); in mbedtls_des_crypt_cbc() 684 output += 8; in mbedtls_des_crypt_cbc() 696 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_des_crypt_cbc() 701 output += 8; in mbedtls_des_crypt_cbc() 748 PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des3_crypt_ecb() 779 mbedtls_des3_crypt_ecb( ctx, output, output ); in mbedtls_des3_crypt_cbc() 783 output += 8; in mbedtls_des3_crypt_cbc() 795 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_des3_crypt_cbc() [all …]
|
A D | chachapoly.c | 187 unsigned char *output ) in mbedtls_chachapoly_update() argument 192 CHACHAPOLY_VALIDATE_RET( len == 0 || output != NULL ); in mbedtls_chachapoly_update() 299 unsigned char *output, in chachapoly_crypt_and_tag() argument 328 unsigned char *output, in mbedtls_chachapoly_encrypt_and_tag() argument 336 CHACHAPOLY_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_chachapoly_encrypt_and_tag() 340 input, output, tag ) ); in mbedtls_chachapoly_encrypt_and_tag() 350 unsigned char *output ) in mbedtls_chachapoly_auth_decrypt() argument 361 CHACHAPOLY_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_chachapoly_auth_decrypt() 376 mbedtls_platform_zeroize( output, length ); in mbedtls_chachapoly_auth_decrypt() 494 unsigned char output[200]; in mbedtls_chachapoly_self_test() local [all …]
|
/optee_os/core/crypto/ |
A D | sm4.c | 164 uint8_t output[16]) in sm4_one_round() 180 PUT_UINT32_BE(ulbuf[35], output, 0); in sm4_one_round() 181 PUT_UINT32_BE(ulbuf[34], output, 4); 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() [all …]
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | aes.h | 261 unsigned char output[16] ); 310 unsigned char *output ); 354 unsigned char *output ); 403 unsigned char *output ); 446 unsigned char *output ); 500 unsigned char *output ); 587 unsigned char *output ); 603 unsigned char output[16] ); 618 unsigned char output[16] ); 638 unsigned char output[16] ); [all …]
|
A D | entropy_poll.h | 52 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 D | cipher_internal.h | 53 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 );
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | aes.h | 261 unsigned char output[16] ); 310 unsigned char *output ); 354 unsigned char *output ); 403 unsigned char *output ); 446 unsigned char *output ); 500 unsigned char *output ); 587 unsigned char *output ); 603 unsigned char output[16] ); 618 unsigned char output[16] ); 638 unsigned char output[16] ); [all …]
|
A D | entropy_poll.h | 52 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 D | cipher_internal.h | 53 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 );
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | aes.h | 261 unsigned char output[16] ); 310 unsigned char *output ); 354 unsigned char *output ); 403 unsigned char *output ); 446 unsigned char *output ); 500 unsigned char *output ); 587 unsigned char *output ); 603 unsigned char output[16] ); 618 unsigned char output[16] ); 638 unsigned char output[16] ); [all …]
|
A D | entropy_poll.h | 52 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 D | cipher_internal.h | 53 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 );
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | aes.h | 261 unsigned char output[16] ); 310 unsigned char *output ); 354 unsigned char *output ); 403 unsigned char *output ); 446 unsigned char *output ); 500 unsigned char *output ); 587 unsigned char *output ); 603 unsigned char output[16] ); 618 unsigned char output[16] ); 638 unsigned char output[16] ); [all …]
|
A D | entropy_poll.h | 52 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 D | cipher_internal.h | 53 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 );
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | aes.h | 261 unsigned char output[16] ); 310 unsigned char *output ); 354 unsigned char *output ); 403 unsigned char *output ); 446 unsigned char *output ); 500 unsigned char *output ); 587 unsigned char *output ); 603 unsigned char output[16] ); 618 unsigned char output[16] ); 638 unsigned char output[16] ); [all …]
|
A D | entropy_poll.h | 52 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 D | cipher_internal.h | 53 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 );
|