/aosp_15_r20/external/mbedtls/library/ |
H A D | chacha20.c | 169 ctx->state[4] = MBEDTLS_GET_UINT32_LE(key, 0); in mbedtls_chacha20_setkey() 170 ctx->state[5] = MBEDTLS_GET_UINT32_LE(key, 4); in mbedtls_chacha20_setkey() 171 ctx->state[6] = MBEDTLS_GET_UINT32_LE(key, 8); in mbedtls_chacha20_setkey() 172 ctx->state[7] = MBEDTLS_GET_UINT32_LE(key, 12); in mbedtls_chacha20_setkey() 173 ctx->state[8] = MBEDTLS_GET_UINT32_LE(key, 16); in mbedtls_chacha20_setkey() 174 ctx->state[9] = MBEDTLS_GET_UINT32_LE(key, 20); in mbedtls_chacha20_setkey() 175 ctx->state[10] = MBEDTLS_GET_UINT32_LE(key, 24); in mbedtls_chacha20_setkey() 176 ctx->state[11] = MBEDTLS_GET_UINT32_LE(key, 28); in mbedtls_chacha20_setkey() 189 ctx->state[13] = MBEDTLS_GET_UINT32_LE(nonce, 0); in mbedtls_chacha20_starts() 190 ctx->state[14] = MBEDTLS_GET_UINT32_LE(nonce, 4); in mbedtls_chacha20_starts() [all …]
|
H A D | md5.c | 71 local.X[0] = MBEDTLS_GET_UINT32_LE(data, 0); in mbedtls_internal_md5_process() 72 local.X[1] = MBEDTLS_GET_UINT32_LE(data, 4); in mbedtls_internal_md5_process() 73 local.X[2] = MBEDTLS_GET_UINT32_LE(data, 8); in mbedtls_internal_md5_process() 74 local.X[3] = MBEDTLS_GET_UINT32_LE(data, 12); in mbedtls_internal_md5_process() 75 local.X[4] = MBEDTLS_GET_UINT32_LE(data, 16); in mbedtls_internal_md5_process() 76 local.X[5] = MBEDTLS_GET_UINT32_LE(data, 20); in mbedtls_internal_md5_process() 77 local.X[6] = MBEDTLS_GET_UINT32_LE(data, 24); in mbedtls_internal_md5_process() 78 local.X[7] = MBEDTLS_GET_UINT32_LE(data, 28); in mbedtls_internal_md5_process() 79 local.X[8] = MBEDTLS_GET_UINT32_LE(data, 32); in mbedtls_internal_md5_process() 80 local.X[9] = MBEDTLS_GET_UINT32_LE(data, 36); in mbedtls_internal_md5_process() [all …]
|
H A D | poly1305.c | 94 d0 = MBEDTLS_GET_UINT32_LE(input, offset + 0); in poly1305_process() 95 d1 = MBEDTLS_GET_UINT32_LE(input, offset + 4); in poly1305_process() 96 d2 = MBEDTLS_GET_UINT32_LE(input, offset + 8); in poly1305_process() 97 d3 = MBEDTLS_GET_UINT32_LE(input, offset + 12); in poly1305_process() 246 ctx->r[0] = MBEDTLS_GET_UINT32_LE(key, 0) & 0x0FFFFFFFU; in mbedtls_poly1305_starts() 247 ctx->r[1] = MBEDTLS_GET_UINT32_LE(key, 4) & 0x0FFFFFFCU; in mbedtls_poly1305_starts() 248 ctx->r[2] = MBEDTLS_GET_UINT32_LE(key, 8) & 0x0FFFFFFCU; in mbedtls_poly1305_starts() 249 ctx->r[3] = MBEDTLS_GET_UINT32_LE(key, 12) & 0x0FFFFFFCU; in mbedtls_poly1305_starts() 251 ctx->s[0] = MBEDTLS_GET_UINT32_LE(key, 16); in mbedtls_poly1305_starts() 252 ctx->s[1] = MBEDTLS_GET_UINT32_LE(key, 20); in mbedtls_poly1305_starts() [all …]
|
H A D | ripemd160.c | 76 local.X[0] = MBEDTLS_GET_UINT32_LE(data, 0); in mbedtls_internal_ripemd160_process() 77 local.X[1] = MBEDTLS_GET_UINT32_LE(data, 4); in mbedtls_internal_ripemd160_process() 78 local.X[2] = MBEDTLS_GET_UINT32_LE(data, 8); in mbedtls_internal_ripemd160_process() 79 local.X[3] = MBEDTLS_GET_UINT32_LE(data, 12); in mbedtls_internal_ripemd160_process() 80 local.X[4] = MBEDTLS_GET_UINT32_LE(data, 16); in mbedtls_internal_ripemd160_process() 81 local.X[5] = MBEDTLS_GET_UINT32_LE(data, 20); in mbedtls_internal_ripemd160_process() 82 local.X[6] = MBEDTLS_GET_UINT32_LE(data, 24); in mbedtls_internal_ripemd160_process() 83 local.X[7] = MBEDTLS_GET_UINT32_LE(data, 28); in mbedtls_internal_ripemd160_process() 84 local.X[8] = MBEDTLS_GET_UINT32_LE(data, 32); in mbedtls_internal_ripemd160_process() 85 local.X[9] = MBEDTLS_GET_UINT32_LE(data, 36); in mbedtls_internal_ripemd160_process() [all …]
|
H A D | aria.c | 374 w[0][0] = MBEDTLS_GET_UINT32_LE(key, 0); in mbedtls_aria_setkey_enc() 375 w[0][1] = MBEDTLS_GET_UINT32_LE(key, 4); in mbedtls_aria_setkey_enc() 376 w[0][2] = MBEDTLS_GET_UINT32_LE(key, 8); in mbedtls_aria_setkey_enc() 377 w[0][3] = MBEDTLS_GET_UINT32_LE(key, 12); in mbedtls_aria_setkey_enc() 381 w[1][0] = MBEDTLS_GET_UINT32_LE(key, 16); // 192 bit key in mbedtls_aria_setkey_enc() 382 w[1][1] = MBEDTLS_GET_UINT32_LE(key, 20); in mbedtls_aria_setkey_enc() 385 w[1][2] = MBEDTLS_GET_UINT32_LE(key, 24); // 256 bit key in mbedtls_aria_setkey_enc() 386 w[1][3] = MBEDTLS_GET_UINT32_LE(key, 28); in mbedtls_aria_setkey_enc() 460 a = MBEDTLS_GET_UINT32_LE(input, 0); in mbedtls_aria_crypt_ecb() 461 b = MBEDTLS_GET_UINT32_LE(input, 4); in mbedtls_aria_crypt_ecb() [all …]
|
H A D | psa_crypto_storage.c | 286 version = MBEDTLS_GET_UINT32_LE(storage_format->version, 0); in psa_parse_key_data_from_storage() 291 *key_data_length = MBEDTLS_GET_UINT32_LE(storage_format->data_len, 0); in psa_parse_key_data_from_storage() 307 attr->lifetime = MBEDTLS_GET_UINT32_LE(storage_format->lifetime, 0); in psa_parse_key_data_from_storage() 310 attr->policy.usage = MBEDTLS_GET_UINT32_LE(storage_format->policy, 0); in psa_parse_key_data_from_storage() 311 attr->policy.alg = MBEDTLS_GET_UINT32_LE(storage_format->policy, sizeof(uint32_t)); in psa_parse_key_data_from_storage() 312 attr->policy.alg2 = MBEDTLS_GET_UINT32_LE(storage_format->policy, 2 * sizeof(uint32_t)); in psa_parse_key_data_from_storage()
|
H A D | aes.c | 650 RK[i] = MBEDTLS_GET_UINT32_LE(key, i << 2); in mbedtls_aes_setkey_enc() 930 t.X[0] = MBEDTLS_GET_UINT32_LE(input, 0); t.X[0] ^= *RK++; in mbedtls_internal_aes_encrypt() 931 t.X[1] = MBEDTLS_GET_UINT32_LE(input, 4); t.X[1] ^= *RK++; in mbedtls_internal_aes_encrypt() 932 t.X[2] = MBEDTLS_GET_UINT32_LE(input, 8); t.X[2] ^= *RK++; in mbedtls_internal_aes_encrypt() 933 t.X[3] = MBEDTLS_GET_UINT32_LE(input, 12); t.X[3] ^= *RK++; in mbedtls_internal_aes_encrypt() 992 t.X[0] = MBEDTLS_GET_UINT32_LE(input, 0); t.X[0] ^= *RK++; in mbedtls_internal_aes_decrypt() 993 t.X[1] = MBEDTLS_GET_UINT32_LE(input, 4); t.X[1] ^= *RK++; in mbedtls_internal_aes_decrypt() 994 t.X[2] = MBEDTLS_GET_UINT32_LE(input, 8); t.X[2] ^= *RK++; in mbedtls_internal_aes_decrypt() 995 t.X[3] = MBEDTLS_GET_UINT32_LE(input, 12); t.X[3] ^= *RK++; in mbedtls_internal_aes_decrypt()
|
H A D | alignment.h | 273 #define MBEDTLS_GET_UINT32_LE(data, offset) \ macro
|
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/library/ |
H A D | chacha20.c | 169 ctx->state[4] = MBEDTLS_GET_UINT32_LE(key, 0); in mbedtls_chacha20_setkey() 170 ctx->state[5] = MBEDTLS_GET_UINT32_LE(key, 4); in mbedtls_chacha20_setkey() 171 ctx->state[6] = MBEDTLS_GET_UINT32_LE(key, 8); in mbedtls_chacha20_setkey() 172 ctx->state[7] = MBEDTLS_GET_UINT32_LE(key, 12); in mbedtls_chacha20_setkey() 173 ctx->state[8] = MBEDTLS_GET_UINT32_LE(key, 16); in mbedtls_chacha20_setkey() 174 ctx->state[9] = MBEDTLS_GET_UINT32_LE(key, 20); in mbedtls_chacha20_setkey() 175 ctx->state[10] = MBEDTLS_GET_UINT32_LE(key, 24); in mbedtls_chacha20_setkey() 176 ctx->state[11] = MBEDTLS_GET_UINT32_LE(key, 28); in mbedtls_chacha20_setkey() 189 ctx->state[13] = MBEDTLS_GET_UINT32_LE(nonce, 0); in mbedtls_chacha20_starts() 190 ctx->state[14] = MBEDTLS_GET_UINT32_LE(nonce, 4); in mbedtls_chacha20_starts() [all …]
|
H A D | md5.c | 71 local.X[0] = MBEDTLS_GET_UINT32_LE(data, 0); in mbedtls_internal_md5_process() 72 local.X[1] = MBEDTLS_GET_UINT32_LE(data, 4); in mbedtls_internal_md5_process() 73 local.X[2] = MBEDTLS_GET_UINT32_LE(data, 8); in mbedtls_internal_md5_process() 74 local.X[3] = MBEDTLS_GET_UINT32_LE(data, 12); in mbedtls_internal_md5_process() 75 local.X[4] = MBEDTLS_GET_UINT32_LE(data, 16); in mbedtls_internal_md5_process() 76 local.X[5] = MBEDTLS_GET_UINT32_LE(data, 20); in mbedtls_internal_md5_process() 77 local.X[6] = MBEDTLS_GET_UINT32_LE(data, 24); in mbedtls_internal_md5_process() 78 local.X[7] = MBEDTLS_GET_UINT32_LE(data, 28); in mbedtls_internal_md5_process() 79 local.X[8] = MBEDTLS_GET_UINT32_LE(data, 32); in mbedtls_internal_md5_process() 80 local.X[9] = MBEDTLS_GET_UINT32_LE(data, 36); in mbedtls_internal_md5_process() [all …]
|
H A D | poly1305.c | 94 d0 = MBEDTLS_GET_UINT32_LE(input, offset + 0); in poly1305_process() 95 d1 = MBEDTLS_GET_UINT32_LE(input, offset + 4); in poly1305_process() 96 d2 = MBEDTLS_GET_UINT32_LE(input, offset + 8); in poly1305_process() 97 d3 = MBEDTLS_GET_UINT32_LE(input, offset + 12); in poly1305_process() 246 ctx->r[0] = MBEDTLS_GET_UINT32_LE(key, 0) & 0x0FFFFFFFU; in mbedtls_poly1305_starts() 247 ctx->r[1] = MBEDTLS_GET_UINT32_LE(key, 4) & 0x0FFFFFFCU; in mbedtls_poly1305_starts() 248 ctx->r[2] = MBEDTLS_GET_UINT32_LE(key, 8) & 0x0FFFFFFCU; in mbedtls_poly1305_starts() 249 ctx->r[3] = MBEDTLS_GET_UINT32_LE(key, 12) & 0x0FFFFFFCU; in mbedtls_poly1305_starts() 251 ctx->s[0] = MBEDTLS_GET_UINT32_LE(key, 16); in mbedtls_poly1305_starts() 252 ctx->s[1] = MBEDTLS_GET_UINT32_LE(key, 20); in mbedtls_poly1305_starts() [all …]
|
H A D | ripemd160.c | 76 local.X[0] = MBEDTLS_GET_UINT32_LE(data, 0); in mbedtls_internal_ripemd160_process() 77 local.X[1] = MBEDTLS_GET_UINT32_LE(data, 4); in mbedtls_internal_ripemd160_process() 78 local.X[2] = MBEDTLS_GET_UINT32_LE(data, 8); in mbedtls_internal_ripemd160_process() 79 local.X[3] = MBEDTLS_GET_UINT32_LE(data, 12); in mbedtls_internal_ripemd160_process() 80 local.X[4] = MBEDTLS_GET_UINT32_LE(data, 16); in mbedtls_internal_ripemd160_process() 81 local.X[5] = MBEDTLS_GET_UINT32_LE(data, 20); in mbedtls_internal_ripemd160_process() 82 local.X[6] = MBEDTLS_GET_UINT32_LE(data, 24); in mbedtls_internal_ripemd160_process() 83 local.X[7] = MBEDTLS_GET_UINT32_LE(data, 28); in mbedtls_internal_ripemd160_process() 84 local.X[8] = MBEDTLS_GET_UINT32_LE(data, 32); in mbedtls_internal_ripemd160_process() 85 local.X[9] = MBEDTLS_GET_UINT32_LE(data, 36); in mbedtls_internal_ripemd160_process() [all …]
|
H A D | aria.c | 366 w[0][0] = MBEDTLS_GET_UINT32_LE(key, 0); in mbedtls_aria_setkey_enc() 367 w[0][1] = MBEDTLS_GET_UINT32_LE(key, 4); in mbedtls_aria_setkey_enc() 368 w[0][2] = MBEDTLS_GET_UINT32_LE(key, 8); in mbedtls_aria_setkey_enc() 369 w[0][3] = MBEDTLS_GET_UINT32_LE(key, 12); in mbedtls_aria_setkey_enc() 373 w[1][0] = MBEDTLS_GET_UINT32_LE(key, 16); // 192 bit key in mbedtls_aria_setkey_enc() 374 w[1][1] = MBEDTLS_GET_UINT32_LE(key, 20); in mbedtls_aria_setkey_enc() 377 w[1][2] = MBEDTLS_GET_UINT32_LE(key, 24); // 256 bit key in mbedtls_aria_setkey_enc() 378 w[1][3] = MBEDTLS_GET_UINT32_LE(key, 28); in mbedtls_aria_setkey_enc() 449 a = MBEDTLS_GET_UINT32_LE(input, 0); in mbedtls_aria_crypt_ecb() 450 b = MBEDTLS_GET_UINT32_LE(input, 4); in mbedtls_aria_crypt_ecb() [all …]
|
H A D | psa_crypto_storage.c | 286 version = MBEDTLS_GET_UINT32_LE(storage_format->version, 0); in psa_parse_key_data_from_storage() 291 *key_data_length = MBEDTLS_GET_UINT32_LE(storage_format->data_len, 0); in psa_parse_key_data_from_storage() 307 attr->lifetime = MBEDTLS_GET_UINT32_LE(storage_format->lifetime, 0); in psa_parse_key_data_from_storage() 310 attr->policy.usage = MBEDTLS_GET_UINT32_LE(storage_format->policy, 0); in psa_parse_key_data_from_storage() 311 attr->policy.alg = MBEDTLS_GET_UINT32_LE(storage_format->policy, sizeof(uint32_t)); in psa_parse_key_data_from_storage() 312 attr->policy.alg2 = MBEDTLS_GET_UINT32_LE(storage_format->policy, 2 * sizeof(uint32_t)); in psa_parse_key_data_from_storage()
|
H A D | psa_its_file.c | 101 p_info->size = MBEDTLS_GET_UINT32_LE(header.size, 0); in psa_its_read_file() 102 p_info->flags = MBEDTLS_GET_UINT32_LE(header.flags, 0); in psa_its_read_file()
|
H A D | aes.c | 614 RK[i] = MBEDTLS_GET_UINT32_LE(key, i << 2); in mbedtls_aes_setkey_enc() 894 t.X[0] = MBEDTLS_GET_UINT32_LE(input, 0); t.X[0] ^= *RK++; in mbedtls_internal_aes_encrypt() 895 t.X[1] = MBEDTLS_GET_UINT32_LE(input, 4); t.X[1] ^= *RK++; in mbedtls_internal_aes_encrypt() 896 t.X[2] = MBEDTLS_GET_UINT32_LE(input, 8); t.X[2] ^= *RK++; in mbedtls_internal_aes_encrypt() 897 t.X[3] = MBEDTLS_GET_UINT32_LE(input, 12); t.X[3] ^= *RK++; in mbedtls_internal_aes_encrypt() 956 t.X[0] = MBEDTLS_GET_UINT32_LE(input, 0); t.X[0] ^= *RK++; in mbedtls_internal_aes_decrypt() 957 t.X[1] = MBEDTLS_GET_UINT32_LE(input, 4); t.X[1] ^= *RK++; in mbedtls_internal_aes_decrypt() 958 t.X[2] = MBEDTLS_GET_UINT32_LE(input, 8); t.X[2] ^= *RK++; in mbedtls_internal_aes_decrypt() 959 t.X[3] = MBEDTLS_GET_UINT32_LE(input, 12); t.X[3] ^= *RK++; in mbedtls_internal_aes_decrypt()
|
H A D | alignment.h | 448 #define MBEDTLS_GET_UINT32_LE(data, offset) \ macro
|
/aosp_15_r20/external/mbedtls/tests/suites/ |
H A D | test_suite_alignment.function | 281 read = MBEDTLS_GET_UINT32_LE(x, offset);
|
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/suites/ |
H A D | test_suite_alignment.function | 281 read = MBEDTLS_GET_UINT32_LE(x, offset);
|