Home
last modified time | relevance | path

Searched refs:rk (Results 1 – 10 of 10) sorted by relevance

/mbedtls/library/
A Daesni.c273 rk[1] = aesni_set_rk_128(rk[0], _mm_aeskeygenassist_si128(rk[0], 0x01)); in aesni_setkey_enc_128()
274 rk[2] = aesni_set_rk_128(rk[1], _mm_aeskeygenassist_si128(rk[1], 0x02)); in aesni_setkey_enc_128()
275 rk[3] = aesni_set_rk_128(rk[2], _mm_aeskeygenassist_si128(rk[2], 0x04)); in aesni_setkey_enc_128()
276 rk[4] = aesni_set_rk_128(rk[3], _mm_aeskeygenassist_si128(rk[3], 0x08)); in aesni_setkey_enc_128()
397 aesni_set_rk_256(rk[0], rk[1], _mm_aeskeygenassist_si128(rk[1], 0x01), &rk[2], &rk[3]); in aesni_setkey_enc_256()
398 aesni_set_rk_256(rk[2], rk[3], _mm_aeskeygenassist_si128(rk[3], 0x02), &rk[4], &rk[5]); in aesni_setkey_enc_256()
399 aesni_set_rk_256(rk[4], rk[5], _mm_aeskeygenassist_si128(rk[5], 0x04), &rk[6], &rk[7]); in aesni_setkey_enc_256()
400 aesni_set_rk_256(rk[6], rk[7], _mm_aeskeygenassist_si128(rk[7], 0x08), &rk[8], &rk[9]); in aesni_setkey_enc_256()
401 aesni_set_rk_256(rk[8], rk[9], _mm_aeskeygenassist_si128(rk[9], 0x10), &rk[10], &rk[11]); in aesni_setkey_enc_256()
402 aesni_set_rk_256(rk[10], rk[11], _mm_aeskeygenassist_si128(rk[11], 0x20), &rk[12], &rk[13]); in aesni_setkey_enc_256()
[all …]
A Dpadlock.c63 uint32_t *rk; in mbedtls_padlock_xcryptecb() local
68 rk = ctx->buf + ctx->rk_offset; in mbedtls_padlock_xcryptecb()
70 if (((long) rk & 15) != 0) { in mbedtls_padlock_xcryptecb()
91 : "m" (ebx), "m" (ctrl), "m" (rk), "m" (blk) in mbedtls_padlock_xcryptecb()
112 uint32_t *rk; in mbedtls_padlock_xcryptcbc() local
117 rk = ctx->buf + ctx->rk_offset; in mbedtls_padlock_xcryptcbc()
121 ((long) rk & 15) != 0) { in mbedtls_padlock_xcryptcbc()
146 "m" (rk), "m" (input), "m" (output), "m" (iw) in mbedtls_padlock_xcryptcbc()
A Daria.c423 ctx->rk[i][k] = ctx->rk[j][k]; in mbedtls_aria_setkey_dec()
430 aria_a(&ctx->rk[i][0], &ctx->rk[i][1], in mbedtls_aria_setkey_dec()
431 &ctx->rk[i][2], &ctx->rk[i][3]); in mbedtls_aria_setkey_dec()
456 a ^= ctx->rk[i][0]; in mbedtls_aria_crypt_ecb()
457 b ^= ctx->rk[i][1]; in mbedtls_aria_crypt_ecb()
458 c ^= ctx->rk[i][2]; in mbedtls_aria_crypt_ecb()
459 d ^= ctx->rk[i][3]; in mbedtls_aria_crypt_ecb()
479 a ^= ctx->rk[i][0]; in mbedtls_aria_crypt_ecb()
480 b ^= ctx->rk[i][1]; in mbedtls_aria_crypt_ecb()
481 c ^= ctx->rk[i][2]; in mbedtls_aria_crypt_ecb()
[all …]
A Daesce.c327 static void aesce_setkey_enc(unsigned char *rk, in aesce_setkey_enc() argument
342 const uint32_t *rko_end = (uint32_t *) rk + round_keys_len_in_words; in aesce_setkey_enc()
344 memcpy(rk, key, key_len_in_words * 4); in aesce_setkey_enc()
346 for (uint32_t *rki = (uint32_t *) rk; in aesce_setkey_enc()
350 size_t iteration = (size_t) (rki - (uint32_t *) rk) / key_len_in_words; in aesce_setkey_enc()
384 int mbedtls_aesce_setkey_enc(unsigned char *rk, in mbedtls_aesce_setkey_enc() argument
392 aesce_setkey_enc(rk, key, bits); in mbedtls_aesce_setkey_enc()
A Dcamellia.c303 RK = ctx->rk; in mbedtls_camellia_setkey_enc()
306 memset(RK, 0, sizeof(ctx->rk)); in mbedtls_camellia_setkey_enc()
423 RK = ctx->rk; in mbedtls_camellia_setkey_dec()
424 SK = cty.rk + 24 * 2 + 8 * idx * 2; in mbedtls_camellia_setkey_dec()
467 RK = ctx->rk; in mbedtls_camellia_crypt_ecb()
A Daesce.h119 int mbedtls_aesce_setkey_enc(unsigned char *rk,
A Daesni.h151 int mbedtls_aesni_setkey_enc(unsigned char *rk,
/mbedtls/include/mbedtls/
A Dcamellia.h43 uint32_t MBEDTLS_PRIVATE(rk)[68]; /*!< CAMELLIA round keys */
A Daria.h55 uint32_t MBEDTLS_PRIVATE(rk)[MBEDTLS_ARIA_MAX_ROUNDS + 1][MBEDTLS_ARIA_BLOCKSIZE / 4];
/mbedtls/docs/architecture/
A Dalternative-implementations.md49 …SNI_C` or `MBEDTLS_PADLOCK_C` is enabled, `mbedtls_aes_context` must have the fields `nr` and `rk`.

Completed in 15 milliseconds