Home
last modified time | relevance | path

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

/openthread-3.6.0/third_party/mbedtls/repo/library/
Daesni.c130 : "r" (ctx->nr), "r" (ctx->rk), "r" (mode), "r" (input), "r" (output) in mbedtls_aesni_crypt_ecb()
274 static void aesni_setkey_enc_128( unsigned char *rk, in aesni_setkey_enc_128() argument
317 : "r" (rk), "r" (key) in aesni_setkey_enc_128()
324 static void aesni_setkey_enc_192( unsigned char *rk, in aesni_setkey_enc_192() argument
374 : "r" (rk), "r" (key) in aesni_setkey_enc_192()
381 static void aesni_setkey_enc_256( unsigned char *rk, in aesni_setkey_enc_256() argument
440 : "r" (rk), "r" (key) in aesni_setkey_enc_256()
447 int mbedtls_aesni_setkey_enc( unsigned char *rk, in mbedtls_aesni_setkey_enc() argument
453 case 128: aesni_setkey_enc_128( rk, key ); break; in mbedtls_aesni_setkey_enc()
454 case 192: aesni_setkey_enc_192( rk, key ); break; in mbedtls_aesni_setkey_enc()
[all …]
Dpadlock.c80 uint32_t *rk; in mbedtls_padlock_xcryptecb() local
85 rk = ctx->rk; in mbedtls_padlock_xcryptecb()
103 : "m" (ebx), "m" (ctrl), "m" (rk), "m" (blk) in mbedtls_padlock_xcryptecb()
123 uint32_t *rk; in mbedtls_padlock_xcryptcbc() local
132 rk = ctx->rk; in mbedtls_padlock_xcryptcbc()
154 "m" (rk), "m" (input), "m" (output), "m" (iw) in mbedtls_padlock_xcryptcbc()
Daria.c466 aria_rot128( ctx->rk[i ], w[i], w2, 128 - 19 ); in mbedtls_aria_setkey_enc()
467 aria_rot128( ctx->rk[i + 4], w[i], w2, 128 - 31 ); in mbedtls_aria_setkey_enc()
468 aria_rot128( ctx->rk[i + 8], w[i], w2, 61 ); in mbedtls_aria_setkey_enc()
469 aria_rot128( ctx->rk[i + 12], w[i], w2, 31 ); in mbedtls_aria_setkey_enc()
471 aria_rot128( ctx->rk[16], w[0], w[1], 19 ); in mbedtls_aria_setkey_enc()
498 uint32_t t = ctx->rk[i][k]; in mbedtls_aria_setkey_dec()
499 ctx->rk[i][k] = ctx->rk[j][k]; in mbedtls_aria_setkey_dec()
500 ctx->rk[j][k] = t; in mbedtls_aria_setkey_dec()
507 aria_a( &ctx->rk[i][0], &ctx->rk[i][1], in mbedtls_aria_setkey_dec()
508 &ctx->rk[i][2], &ctx->rk[i][3] ); in mbedtls_aria_setkey_dec()
[all …]
Dcamellia.c331 RK = ctx->rk; in mbedtls_camellia_setkey_enc()
334 memset( RK, 0, sizeof(ctx->rk) ); in mbedtls_camellia_setkey_enc()
446 RK = ctx->rk; in mbedtls_camellia_setkey_dec()
447 SK = cty.rk + 24 * 2 + 8 * idx * 2; in mbedtls_camellia_setkey_dec()
492 RK = ctx->rk; in mbedtls_camellia_crypt_ecb()
Daes.c558 ctx->rk = RK = MBEDTLS_PADLOCK_ALIGN16( ctx->buf ); in mbedtls_aes_setkey_enc()
561 ctx->rk = RK = ctx->buf; in mbedtls_aes_setkey_enc()
565 return( mbedtls_aesni_setkey_enc( (unsigned char *) ctx->rk, key, keybits ) ); in mbedtls_aes_setkey_enc()
662 ctx->rk = RK = MBEDTLS_PADLOCK_ALIGN16( ctx->buf ); in mbedtls_aes_setkey_dec()
665 ctx->rk = RK = ctx->buf; in mbedtls_aes_setkey_dec()
676 mbedtls_aesni_inverse_key( (unsigned char *) ctx->rk, in mbedtls_aes_setkey_dec()
677 (const unsigned char *) cty.rk, ctx->nr ); in mbedtls_aes_setkey_dec()
682 SK = cty.rk + cty.nr * 4; in mbedtls_aes_setkey_dec()
846 uint32_t *RK = ctx->rk; in mbedtls_internal_aes_encrypt()
919 uint32_t *RK = ctx->rk; in mbedtls_internal_aes_decrypt()
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/
Daesni.h126 int mbedtls_aesni_setkey_enc( unsigned char *rk,
Dcamellia.h67 uint32_t rk[68]; /*!< CAMELLIA round keys */ member
Daria.h83 uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS + 1][MBEDTLS_ARIA_BLOCKSIZE / 4]; member
Daes.h94 uint32_t *rk; /*!< AES round keys. */ member