Searched refs:sum (Results 1 – 4 of 4) sorted by relevance
/net-tools-latest/mbedtls-2.4.0/library/ |
D | xtea.c | 116 uint32_t sum = 0, delta = 0x9E3779B9; in mbedtls_xtea_crypt_ecb() local 120 v0 += (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + k[sum & 3]); in mbedtls_xtea_crypt_ecb() 121 sum += delta; in mbedtls_xtea_crypt_ecb() 122 v1 += (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + k[(sum>>11) & 3]); in mbedtls_xtea_crypt_ecb() 127 uint32_t delta = 0x9E3779B9, sum = delta * 32; in mbedtls_xtea_crypt_ecb() local 131 v1 -= (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + k[(sum>>11) & 3]); in mbedtls_xtea_crypt_ecb() 132 sum -= delta; in mbedtls_xtea_crypt_ecb() 133 v0 -= (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + k[sum & 3]); in mbedtls_xtea_crypt_ecb()
|
D | md.c | 332 unsigned char sum[MBEDTLS_MD_MAX_SIZE]; in mbedtls_md_hmac_starts() local 343 ctx->md_info->finish_func( ctx->md_ctx, sum ); in mbedtls_md_hmac_starts() 346 key = sum; in mbedtls_md_hmac_starts() 361 mbedtls_zeroize( sum, sizeof( sum ) ); in mbedtls_md_hmac_starts()
|
/net-tools-latest/mbedtls-2.4.0/programs/hash/ |
D | generic_sum.c | 50 static int generic_wrapper( const mbedtls_md_info_t *md_info, char *filename, unsigned char *sum ) in generic_wrapper() argument 52 int ret = mbedtls_md_file( md_info, filename, sum ); in generic_wrapper() 66 unsigned char sum[MBEDTLS_MD_MAX_SIZE]; in generic_print() local 68 if( generic_wrapper( md_info, filename, sum ) != 0 ) in generic_print() 72 mbedtls_printf( "%02x", sum[i] ); in generic_print() 85 unsigned char sum[MBEDTLS_MD_MAX_SIZE]; in generic_check() local 128 if( generic_wrapper( md_info, line + 2 + 2 * mbedtls_md_get_size( md_info ), sum ) != 0 ) in generic_check() 137 sprintf( buf + i * 2, "%02x", sum[i] ); in generic_check()
|
/net-tools-latest/mbedtls-2.4.0/tests/suites/ |
D | helpers.function | 365 uint32_t i, *k, sum, delta=0x9E3779B9; 376 sum = 0; 381 + info->v1 ) ^ ( sum + k[sum & 3] ); 382 sum += delta; 384 + info->v0 ) ^ ( sum + k[( sum>>11 ) & 3] );
|