/AliOS-Things-master/components/SDL2/src/image/ |
A D | IMG_xpm.c | 88 int hash; in hash_key() local 90 hash = 0; in hash_key() 92 hash = hash * 33 + *key++; in hash_key() 104 hash = (struct color_hash *)SDL_calloc(1, sizeof(*hash)); in create_colorhash() 105 if (!hash) in create_colorhash() 111 hash->size = s; in create_colorhash() 118 SDL_free(hash); in create_colorhash() 141 hash->next_free = hash->entries; in create_colorhash() 142 return hash; in create_colorhash() 158 #define QUICK_COLORHASH(hash, key) ((hash)->table[*(Uint8 *)(key)]->color) argument [all …]
|
/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | builtin_hash.py | 3 print(hash(False)) 4 print(hash(True)) 7 print(hash in {hash:1}) # hash function 10 hash([]) 20 print(hash(A())) 26 hash(B()) 33 hash(C()) 42 hash(D()) 50 print(hash(E()))
|
A D | types2.py | 2 print(hash(type) != 0) 3 print(hash(int) != 0) 4 print(hash(list) != 0) 6 print(hash(Foo) != 0)
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | pk_wrap.c | 73 const unsigned char *hash, size_t hash_len, in rsa_verify_wrap() argument 105 const unsigned char *hash, size_t hash_len, in rsa_sign_wrap() argument 119 md_alg, (unsigned int) hash_len, hash, sig ) ); in rsa_sign_wrap() 233 const unsigned char *hash, size_t hash_len, 255 const unsigned char *hash, size_t hash_len, in eckey_sign_wrap() argument 281 const unsigned char *hash, size_t hash_len, 511 hash, hash_len, sig, sig_len, in ecdsa_verify_rs_wrap() 648 unsigned char hash[32]; in rsa_alt_check_pair() local 655 memset( hash, 0x2a, sizeof( hash ) ); in rsa_alt_check_pair() 658 hash, sizeof( hash ), in rsa_alt_check_pair() [all …]
|
A D | pk.c | 242 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_restartable() argument 248 hash != NULL ); in mbedtls_pk_verify_restartable() 289 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify() argument 292 return( mbedtls_pk_verify_restartable( ctx, md_alg, hash, hash_len, in mbedtls_pk_verify() 301 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_ext() argument 306 hash != NULL ); in mbedtls_pk_verify_ext() 336 md_alg, (unsigned int) hash_len, hash, in mbedtls_pk_verify_ext() 364 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign_restartable() argument 371 hash != NULL ); in mbedtls_pk_sign_restartable() 412 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign() argument [all …]
|
/AliOS-Things-master/components/freetype/src/cache/ |
A D | ftccache.h | 62 FT_PtrDist hash; /* used for hashing too */ member 76 #define FTC_NODE__TOP_FOR_HASH( cache, hash ) \ argument 78 ( ( ( ( hash ) & ( cache )->mask ) < ( cache )->p ) \ 79 ? ( ( hash ) & ( ( cache )->mask * 2 + 1 ) ) \ 80 : ( ( hash ) & ( cache )->mask ) ) ) 84 FT_PtrDist hash ); 85 #define FTC_NODE__TOP_FOR_HASH( cache, hash ) \ argument 86 ftc_get_top_node_for_hash( ( cache ), ( hash ) ) 182 FT_PtrDist hash, 189 FT_PtrDist hash, [all …]
|
A D | ftccache.c | 92 FT_PtrDist hash ) in ftc_get_top_node_for_hash() argument 98 idx = (FT_UInt)( hash & cache->mask ); in ftc_get_top_node_for_hash() 100 idx = (FT_UInt)( hash & ( 2 * cache->mask + 1 ) ); in ftc_get_top_node_for_hash() 153 if ( node->hash & ( mask + 1 ) ) in ftc_cache_resize() 417 FT_PtrDist hash, in ftc_cache_add() argument 420 node->hash = hash; in ftc_cache_add() 445 FT_PtrDist hash, in FTC_Cache_NewNode() argument 472 ftc_cache_add( cache, hash, node ); in FTC_Cache_NewNode() 484 FT_PtrDist hash, in FTC_Cache_Lookup() argument 511 if ( node->hash == hash && in FTC_Cache_Lookup() [all …]
|
A D | ftcbasic.c | 287 FT_PtrDist hash; in FTC_ImageCache_Lookup() local 324 hash, gindex, in FTC_ImageCache_Lookup() 330 hash, gindex, in FTC_ImageCache_Lookup() 363 FT_PtrDist hash; in FTC_ImageCache_LookupScaler() local 392 hash, gindex, in FTC_ImageCache_LookupScaler() 474 FT_PtrDist hash; in FTC_SBitCache_Lookup() local 504 hash = FTC_BASIC_ATTR_HASH( &query.attrs ) + in FTC_SBitCache_Lookup() 511 hash, gindex, in FTC_SBitCache_Lookup() 517 hash, in FTC_SBitCache_Lookup() 552 FT_PtrDist hash; in FTC_SBitCache_LookupScaler() local [all …]
|
/AliOS-Things-master/components/ota/hal/ |
A D | ota_hal_ctrl.c | 98 unsigned char hash[32] = {0}; in ota_verify() local 109 memset(hash, 0x00, sizeof(hash)); in ota_verify() 110 ret = ota_hash_final(&hash_ctx, hash); in ota_verify() 112 ret = ota_hex2str(dst_hash, hash, sizeof(dst_hash), sizeof(hash)); in ota_verify() 114 ret = ota_check_hash(param->hash_type, param->hash, (char *)dst_hash); in ota_verify() 154 unsigned char hash[32] = {0}; in ota_verify_fsfile() local 163 memset(hash, 0x00, sizeof(hash)); in ota_verify_fsfile() 198 ret = ota_hash_final(&tmp_hash_ctx, hash); in ota_verify_fsfile() 200 ret = ota_hex2str(dst_hash, hash, sizeof(dst_hash), sizeof(hash)); in ota_verify_fsfile() 202 ret = ota_check_hash(param->hash_type, param->hash, (char *)dst_hash); in ota_verify_fsfile()
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | qstr.c | 56 #define Q_SET_HASH(q, hash) do { (q)[0] = (hash); } while (0) argument 60 #define Q_SET_HASH(q, hash) do { (q)[0] = (hash); (q)[1] = (hash) >> 8; } while (0) argument 62 #error unimplemented qstr hash decoding 91 mp_uint_t hash = 5381; in qstr_compute_hash() local 93 hash = ((hash << 5) + hash) ^ (*data); // hash * 33 ^ data in qstr_compute_hash() 95 hash &= Q_HASH_MASK; in qstr_compute_hash() 97 if (hash == 0) { in qstr_compute_hash() 98 hash++; in qstr_compute_hash() 100 return hash; in qstr_compute_hash() 248 mp_uint_t hash = qstr_compute_hash((const byte *)str, len); in qstr_from_strn() local [all …]
|
/AliOS-Things-master/components/mbedtls/programs/pkey/ |
A D | ecdsa.c | 123 unsigned char hash[32]; in main() local 182 if( ( ret = mbedtls_sha256_ret( message, sizeof( message ), hash, 0 ) ) != 0 ) in main() 190 dump_buf( " + Hash: ", hash, sizeof( hash ) ); in main() 199 hash, sizeof( hash ), in main() 239 hash, sizeof( hash ), in main()
|
/AliOS-Things-master/solutions/javascript_demo/ota_demo/ |
A D | ota_4g.js | 20 hash: '' property in info 46 console.log('hash is ' + res.hash); 53 info.hash = res.hash; 67 hash: info.hash,
|
A D | ota_wifi.js | 23 hash: '' property in info 52 console.log('hash is ' + res.hash); 59 info.hash = res.hash; 73 hash: info.hash,
|
/AliOS-Things-master/components/amp/example-js/ |
A D | ota.js | 20 hash: '' property in info 46 console.log('hash is ' + res.hash); 53 info.hash = res.hash; 67 hash: info.hash,
|
/AliOS-Things-master/components/mbedtls/programs/ |
A D | .gitignore | 7 hash/generic_sum 8 hash/hello 9 hash/md5sum 10 hash/sha1sum 11 hash/sha2sum
|
/AliOS-Things-master/components/py_engine/engine/lib/crypto-algorithms/ |
A D | sha256.c | 114 void sha256_final(CRYAL_SHA256_CTX *ctx, BYTE hash[]) in sha256_final() argument 149 hash[i] = (ctx->state[0] >> (24 - i * 8)) & 0x000000ff; in sha256_final() 150 hash[i + 4] = (ctx->state[1] >> (24 - i * 8)) & 0x000000ff; in sha256_final() 151 hash[i + 8] = (ctx->state[2] >> (24 - i * 8)) & 0x000000ff; in sha256_final() 152 hash[i + 12] = (ctx->state[3] >> (24 - i * 8)) & 0x000000ff; in sha256_final() 153 hash[i + 16] = (ctx->state[4] >> (24 - i * 8)) & 0x000000ff; in sha256_final() 154 hash[i + 20] = (ctx->state[5] >> (24 - i * 8)) & 0x000000ff; in sha256_final() 155 hash[i + 24] = (ctx->state[6] >> (24 - i * 8)) & 0x000000ff; in sha256_final() 156 hash[i + 28] = (ctx->state[7] >> (24 - i * 8)) & 0x000000ff; in sha256_final()
|
/AliOS-Things-master/components/ota/2ndboot/updater/xz/linux/lib/xz/ |
A D | xz_dec_stream.c | 103 struct xz_dec_hash hash; member 125 struct xz_dec_hash hash; member 281 s->block.hash.unpadded += 4; in dec_block() 283 s->block.hash.unpadded += 8; in dec_block() 287 s->block.hash.crc32 = xz_crc32( in dec_block() 289 sizeof(s->block.hash), s->block.hash.crc32); in dec_block() 346 s->index.hash.crc32 = xz_crc32( in dec_index() 348 sizeof(s->index.hash), in dec_index() 349 s->index.hash.crc32); in dec_index() 721 if (!memeq(&s->block.hash, &s->index.hash, in dec_main() [all …]
|
/AliOS-Things-master/components/ota/tools/xz/src/ |
A D | xz_dec_stream.c | 103 struct xz_dec_hash hash; member 125 struct xz_dec_hash hash; member 281 s->block.hash.unpadded += 4; in dec_block() 283 s->block.hash.unpadded += 8; in dec_block() 287 s->block.hash.crc32 = xz_crc32( in dec_block() 289 sizeof(s->block.hash), s->block.hash.crc32); in dec_block() 346 s->index.hash.crc32 = xz_crc32( in dec_index() 348 sizeof(s->index.hash), in dec_index() 349 s->index.hash.crc32); in dec_index() 721 if (!memeq(&s->block.hash, &s->index.hash, in dec_main() [all …]
|
/AliOS-Things-master/components/py_engine/engine/tools/ |
A D | cc1 | 52 hash = 5381 54 hash = (hash * 33) ^ ord(char) 56 return (hash & ((1 << (8 * bytes_in_qstr_hash)) - 1)) or 1 60 hash = compute_hash(key) 61 pos = hash % len(map) 80 hash = compute_hash(key) 81 pos = hash % len(map)
|
/AliOS-Things-master/components/py_engine/engine/genhdr/ |
A D | gen_qstr.py | 17 hash = 5381 19 hash = (hash * 33) ^ b 21 return (hash & ((1 << (8 * bytes_hash)) - 1)) or 1
|
/AliOS-Things-master/components/mbedtls/include/mbedtls/ |
A D | ecdsa.h | 285 const unsigned char *hash, size_t hlen, 331 const unsigned char *hash, size_t hlen, 388 const unsigned char *hash, size_t hlen, 423 const unsigned char *hash, size_t hlen, 458 const unsigned char *hash, size_t hlen,
|
A D | pk_internal.h | 52 const unsigned char *hash, size_t hash_len, 57 const unsigned char *hash, size_t hash_len, 65 const unsigned char *hash, size_t hash_len, 71 const unsigned char *hash, size_t hash_len,
|
A D | rsa.h | 918 const unsigned char *hash, 965 const unsigned char *hash, 1026 const unsigned char *hash, 1079 const unsigned char *hash, 1125 const unsigned char *hash, 1182 const unsigned char *hash, 1230 const unsigned char *hash,
|
/AliOS-Things-master/components/py_engine/tests/unix/ |
A D | extra_coverage.py | 14 print(hash(data[0])) 15 print(hash(data[1])) 16 print(hash(bytes(data[0], "utf8"))) 17 print(hash(str(data[1], "utf8")))
|
/AliOS-Things-master/components/py_engine/modules/ota/ |
A D | modappota.c | 36 char hash[64]; member 171 strncpy(ota_param.hash, ota_package_info->hash, in ota_verify_handler() 172 strlen(ota_package_info->hash)); in ota_verify_handler() 191 const char *hash = NULL; in py_ota_verify() local 210 hash = mp_obj_str_get_str(mp_obj_dict_get(data, index)); in py_ota_verify() 232 strncpy(ota_package_info->hash, hash, sizeof(ota_package_info->hash)); in py_ota_verify() 391 mp_obj_new_str(ota_package_info->hash, strlen(ota_package_info->hash))); in ota_trigger_notify() 474 strncpy(ota_package_info->hash, ota_param.hash, in customer_upgrade_cb() 475 sizeof(ota_package_info->hash)); in customer_upgrade_cb()
|