Home
last modified time | relevance | path

Searched refs:RK (Results 1 – 2 of 2) sorted by relevance

/net-tools-2.7.6/mbedtls-2.4.0/library/
Dcamellia.c297 RK[indexes[(INDEX)][(OFFSET)][i]] = TK[ i ]; \
347 uint32_t *RK; in mbedtls_camellia_setkey_enc() local
353 RK = ctx->rk; in mbedtls_camellia_setkey_enc()
356 memset( RK, 0, sizeof(ctx->rk) ); in mbedtls_camellia_setkey_enc()
437 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc()
453 uint32_t *RK; in mbedtls_camellia_setkey_dec() local
465 RK = ctx->rk; in mbedtls_camellia_setkey_dec()
468 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
469 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
470 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
[all …]
Daes.c488 uint32_t *RK; in mbedtls_aes_setkey_enc() local
512 ctx->rk = RK = MBEDTLS_PADLOCK_ALIGN16( ctx->buf ); in mbedtls_aes_setkey_enc()
515 ctx->rk = RK = ctx->buf; in mbedtls_aes_setkey_enc()
524 GET_UINT32_LE( RK[i], key, i << 2 ); in mbedtls_aes_setkey_enc()
531 for( i = 0; i < 10; i++, RK += 4 ) in mbedtls_aes_setkey_enc()
533 RK[4] = RK[0] ^ RCON[i] ^ in mbedtls_aes_setkey_enc()
534 ( (uint32_t) FSb[ ( RK[3] >> 8 ) & 0xFF ] ) ^ in mbedtls_aes_setkey_enc()
535 ( (uint32_t) FSb[ ( RK[3] >> 16 ) & 0xFF ] << 8 ) ^ in mbedtls_aes_setkey_enc()
536 ( (uint32_t) FSb[ ( RK[3] >> 24 ) & 0xFF ] << 16 ) ^ in mbedtls_aes_setkey_enc()
537 ( (uint32_t) FSb[ ( RK[3] ) & 0xFF ] << 24 ); in mbedtls_aes_setkey_enc()
[all …]