Searched refs:k_opad (Results 1 – 6 of 6) sorted by relevance
/AliOS-Things-master/components/linkkit/wrappers/platform/ssl/ |
A D | iotx_hmac.c | 48 k_opad[KEY_IOPAD_SIZE]; /* outer padding - key XORd with opad */ in iotx_hmac_md5() local 52 memset(k_opad, 0x5C, sizeof(k_opad)); in iotx_hmac_md5() 55 k_opad[index] = (unsigned char)(k_opad[index] ^ key[index]); in iotx_hmac_md5() 68 mbedtls_md5_update(&ctx, k_opad, KEY_IOPAD_SIZE); in iotx_hmac_md5() 85 k_opad[KEY_IOPAD_SIZE]; /* outer padding - key XORd with opad */ in iotx_hmac_sha1() local 89 memset(k_opad, 0x5C, sizeof(k_opad)); in iotx_hmac_sha1() 92 k_opad[index] = (unsigned char)(k_opad[index] ^ key[index]); in iotx_hmac_sha1() 104 mbedtls_sha1_update(&ctx, k_opad, KEY_IOPAD_SIZE); in iotx_hmac_sha1()
|
/AliOS-Things-master/components/linkkit/infra/ |
A D | infra_sha1.c | 335 k_opad[SHA1_KEY_IOPAD_SIZE]; /* outer padding - key XORd with opad */ in utils_hmac_sha1() local 349 memset(k_opad, 0, sizeof(k_opad)); in utils_hmac_sha1() 351 memcpy(k_opad, key, key_len); in utils_hmac_sha1() 356 k_opad[i] ^= 0x5c; in utils_hmac_sha1() 371 utils_sha1_update(&context, k_opad, in utils_hmac_sha1() 390 k_opad[SHA1_KEY_IOPAD_SIZE]; /* outer padding - key XORd with opad */ in utils_hmac_sha1_hex() local 404 memset(k_opad, 0, sizeof(k_opad)); in utils_hmac_sha1_hex() 406 memcpy(k_opad, key, key_len); in utils_hmac_sha1_hex() 411 k_opad[i] ^= 0x5c; in utils_hmac_sha1_hex() 426 utils_sha1_update(&context, k_opad, in utils_hmac_sha1_hex()
|
A D | infra_md5.c | 306 k_opad[MD5_KEY_IOPAD_SIZE]; /* outer padding - key XORd with opad */ in utils_hmac_md5() local 320 memset(k_opad, 0, sizeof(k_opad)); in utils_hmac_md5() 322 memcpy(k_opad, key, key_len); in utils_hmac_md5() 327 k_opad[i] ^= 0x5c; in utils_hmac_md5() 342 utils_md5_update(&context, k_opad, in utils_hmac_md5()
|
A D | infra_sha256.c | 274 k_opad[SHA256_KEY_IOPAD_SIZE]; /* outer padding - key XORd with opad */ in utils_hmac_sha256() local 287 memset(k_opad, 0, sizeof(k_opad)); in utils_hmac_sha256() 289 memcpy(k_opad, key, key_len); in utils_hmac_sha256() 294 k_opad[i] ^= 0x5c; in utils_hmac_sha256() 308 utils_sha256_update(&context, k_opad, in utils_hmac_sha256()
|
/AliOS-Things-master/components/mqtt/example/ |
A D | aiot_mqtt_sign.c | 343 unsigned char k_opad[SHA256_KEY_IOPAD_SIZE]; /* outer padding - key XORd with opad */ in utils_hmac_sha256() local 356 memset(k_opad, 0, sizeof(k_opad)); in utils_hmac_sha256() 358 memcpy(k_opad, key, key_len); in utils_hmac_sha256() 363 k_opad[i] ^= 0x5c; in utils_hmac_sha256() 376 utils_sha256_update(&context, k_opad, SHA256_KEY_IOPAD_SIZE); /* start with outer pad */ in utils_hmac_sha256()
|
/AliOS-Things-master/components/linksdk/core/utils/ |
A D | core_sha256.c | 272 uint8_t k_opad[SHA256_KEY_IOPAD_SIZE]; /* outer padding - key XORd with opad */ in core_hmac_sha256() local 285 memset(k_opad, 0, sizeof(k_opad)); in core_hmac_sha256() 287 memcpy(k_opad, key, key_len); in core_hmac_sha256() 292 k_opad[i] ^= 0x5c; in core_hmac_sha256() 305 core_sha256_update(&context, k_opad, SHA256_KEY_IOPAD_SIZE); /* start with outer pad */ in core_hmac_sha256()
|
Completed in 8 milliseconds