Home
last modified time | relevance | path

Searched refs:k_ipad (Results 1 – 6 of 6) sorted by relevance

/AliOS-Things-master/components/linkkit/wrappers/platform/ssl/
A Diotx_hmac.c46 k_ipad[KEY_IOPAD_SIZE]; /* inner padding - key XORd with ipad */ in iotx_hmac_md5() local
51 memset(k_ipad, 0x36, sizeof(k_ipad)); in iotx_hmac_md5()
54 k_ipad[index] = (unsigned char)(k_ipad[index] ^ key[index]); in iotx_hmac_md5()
61 mbedtls_md5_update(&ctx, k_ipad, KEY_IOPAD_SIZE); in iotx_hmac_md5()
83 k_ipad[KEY_IOPAD_SIZE]; /* inner padding - key XORd with ipad */ in iotx_hmac_sha1() local
88 memset(k_ipad, 0x36, sizeof(k_ipad)); in iotx_hmac_sha1()
91 k_ipad[index] = (unsigned char)(k_ipad[index] ^ key[index]); in iotx_hmac_sha1()
97 mbedtls_sha1_update(&ctx, k_ipad, KEY_IOPAD_SIZE); in iotx_hmac_sha1()
/AliOS-Things-master/components/linkkit/infra/
A Dinfra_sha1.c333 k_ipad[SHA1_KEY_IOPAD_SIZE]; /* inner padding - key XORd with ipad */ in utils_hmac_sha1() local
348 memset(k_ipad, 0, sizeof(k_ipad)); in utils_hmac_sha1()
350 memcpy(k_ipad, key, key_len); in utils_hmac_sha1()
355 k_ipad[i] ^= 0x36; in utils_hmac_sha1()
362 utils_sha1_update(&context, k_ipad, in utils_hmac_sha1()
388 k_ipad[SHA1_KEY_IOPAD_SIZE]; /* inner padding - key XORd with ipad */ in utils_hmac_sha1_hex() local
403 memset(k_ipad, 0, sizeof(k_ipad)); in utils_hmac_sha1_hex()
405 memcpy(k_ipad, key, key_len); in utils_hmac_sha1_hex()
410 k_ipad[i] ^= 0x36; in utils_hmac_sha1_hex()
417 utils_sha1_update(&context, k_ipad, in utils_hmac_sha1_hex()
A Dinfra_md5.c304 k_ipad[MD5_KEY_IOPAD_SIZE]; /* inner padding - key XORd with ipad */ in utils_hmac_md5() local
319 memset(k_ipad, 0, sizeof(k_ipad)); in utils_hmac_md5()
321 memcpy(k_ipad, key, key_len); in utils_hmac_md5()
326 k_ipad[i] ^= 0x36; in utils_hmac_md5()
333 utils_md5_update(&context, k_ipad, in utils_hmac_md5()
A Dinfra_sha256.c272 k_ipad[SHA256_KEY_IOPAD_SIZE]; /* inner padding - key XORd with ipad */ in utils_hmac_sha256() local
286 memset(k_ipad, 0, sizeof(k_ipad)); in utils_hmac_sha256()
288 memcpy(k_ipad, key, key_len); in utils_hmac_sha256()
293 k_ipad[i] ^= 0x36; in utils_hmac_sha256()
300 utils_sha256_update(&context, k_ipad, in utils_hmac_sha256()
/AliOS-Things-master/components/mqtt/example/
A Daiot_mqtt_sign.c342 unsigned char k_ipad[SHA256_KEY_IOPAD_SIZE]; /* inner padding - key XORd with ipad */ in utils_hmac_sha256() local
355 memset(k_ipad, 0, sizeof(k_ipad)); in utils_hmac_sha256()
357 memcpy(k_ipad, key, key_len); in utils_hmac_sha256()
362 k_ipad[i] ^= 0x36; in utils_hmac_sha256()
369 utils_sha256_update(&context, k_ipad, SHA256_KEY_IOPAD_SIZE); /* start with inner pad */ in utils_hmac_sha256()
/AliOS-Things-master/components/linksdk/core/utils/
A Dcore_sha256.c271 uint8_t k_ipad[SHA256_KEY_IOPAD_SIZE]; /* inner padding - key XORd with ipad */ in core_hmac_sha256() local
284 memset(k_ipad, 0, sizeof(k_ipad)); in core_hmac_sha256()
286 memcpy(k_ipad, key, key_len); in core_hmac_sha256()
291 k_ipad[i] ^= 0x36; in core_hmac_sha256()
298 core_sha256_update(&context, k_ipad, SHA256_KEY_IOPAD_SIZE); /* start with inner pad */ in core_hmac_sha256()

Completed in 8 milliseconds