Home
last modified time | relevance | path

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

12

/optee_os/core/lib/libtomcrypt/src/ciphers/aes/
A Daes.c152 rk[5] = rk[1] ^ rk[4]; in SETUP()
153 rk[6] = rk[2] ^ rk[5]; in SETUP()
154 rk[7] = rk[3] ^ rk[6]; in SETUP()
170 rk[ 7] = rk[ 1] ^ rk[ 6]; in SETUP()
171 rk[ 8] = rk[ 2] ^ rk[ 7]; in SETUP()
172 rk[ 9] = rk[ 3] ^ rk[ 8]; in SETUP()
176 rk[10] = rk[ 4] ^ rk[ 9]; in SETUP()
177 rk[11] = rk[ 5] ^ rk[10]; in SETUP()
192 rk[ 9] = rk[ 1] ^ rk[ 8]; in SETUP()
193 rk[10] = rk[ 2] ^ rk[ 9]; in SETUP()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
A 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 …]
A 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()
A Daria.c521 ctx->rk[i][k] = ctx->rk[j][k]; in mbedtls_aria_setkey_dec()
529 aria_a( &ctx->rk[i][0], &ctx->rk[i][1], in mbedtls_aria_setkey_dec()
530 &ctx->rk[i][2], &ctx->rk[i][3] ); in mbedtls_aria_setkey_dec()
558 a ^= ctx->rk[i][0]; in mbedtls_aria_crypt_ecb()
559 b ^= ctx->rk[i][1]; in mbedtls_aria_crypt_ecb()
560 c ^= ctx->rk[i][2]; in mbedtls_aria_crypt_ecb()
561 d ^= ctx->rk[i][3]; in mbedtls_aria_crypt_ecb()
580 a ^= ctx->rk[i][0]; in mbedtls_aria_crypt_ecb()
581 b ^= ctx->rk[i][1]; in mbedtls_aria_crypt_ecb()
582 c ^= ctx->rk[i][2]; in mbedtls_aria_crypt_ecb()
[all …]
A Dcamellia.c354 RK = ctx->rk; in mbedtls_camellia_setkey_enc()
357 memset( RK, 0, sizeof(ctx->rk) ); in mbedtls_camellia_setkey_enc()
469 RK = ctx->rk; in mbedtls_camellia_setkey_dec()
470 SK = cty.rk + 24 * 2 + 8 * idx * 2; in mbedtls_camellia_setkey_dec()
515 RK = ctx->rk; in mbedtls_camellia_crypt_ecb()
/optee_os/core/arch/arm/crypto/
A Daes_armv8a_ce.h14 void ce_aes_ecb_encrypt(uint8_t out[], uint8_t const in[], uint8_t const rk[],
16 void ce_aes_ecb_decrypt(uint8_t out[], uint8_t const in[], uint8_t const rk[],
18 void ce_aes_cbc_encrypt(uint8_t out[], uint8_t const in[], uint8_t const rk[],
20 void ce_aes_cbc_decrypt(uint8_t out[], uint8_t const in[], uint8_t const rk[],
22 void ce_aes_ctr_encrypt(uint8_t out[], uint8_t const in[], uint8_t const rk[],
A Daes_modes_armv8a_ce_a64.S15 .macro load_round_keys, rounds, rk
19 ld1 {v17.16b-v18.16b}, [\rk], #32
20 1111: ld1 {v19.16b-v20.16b}, [\rk], #32
21 2222: ld1 {v21.16b-v24.16b}, [\rk], #64
22 ld1 {v25.16b-v28.16b}, [\rk], #64
23 ld1 {v29.16b-v31.16b}, [\rk]
27 .macro enc_prepare, rounds, rk, ignore
28 load_round_keys \rounds, \rk
33 load_round_keys \rounds, \rk
37 .macro dec_prepare, rounds, rk, ignore
[all …]
/optee_os/core/arch/arm/include/crypto/
A Dghash-ce-core.h25 void pmull_gcm_load_round_keys(const uint64_t rk[30], int rounds);
30 uint64_t ctr[], const uint64_t rk[], int rounds,
37 uint64_t ctr[], const uint64_t rk[], int rounds);
/optee_os/lib/libmbedtls/core/
A Dmbed_helpers.h35 #error Do not know how to copy mbedtls_aes_context::rk in mbed_copy_mbedtls_aes_context()
37 dst->rk = dst->buf; in mbed_copy_mbedtls_aes_context()
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Daesni.h126 int mbedtls_aesni_setkey_enc( unsigned char *rk,
A Dcamellia.h64 uint32_t rk[68]; /*!< CAMELLIA round keys */ member
A Daria.h79 uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS + 1][MBEDTLS_ARIA_BLOCKSIZE / 4]; member
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Daesni.h126 int mbedtls_aesni_setkey_enc( unsigned char *rk,
A Dcamellia.h64 uint32_t rk[68]; /*!< CAMELLIA round keys */ member
A Daria.h79 uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS + 1][MBEDTLS_ARIA_BLOCKSIZE / 4]; member
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Daesni.h126 int mbedtls_aesni_setkey_enc( unsigned char *rk,
A Dcamellia.h64 uint32_t rk[68]; /*!< CAMELLIA round keys */ member
A Daria.h79 uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS + 1][MBEDTLS_ARIA_BLOCKSIZE / 4]; member
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Daesni.h126 int mbedtls_aesni_setkey_enc( unsigned char *rk,
A Dcamellia.h64 uint32_t rk[68]; /*!< CAMELLIA round keys */ member
A Daria.h79 uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS + 1][MBEDTLS_ARIA_BLOCKSIZE / 4]; member
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Daesni.h126 int mbedtls_aesni_setkey_enc( unsigned char *rk,
A Dcamellia.h64 uint32_t rk[68]; /*!< CAMELLIA round keys */ member
A Daria.h79 uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS + 1][MBEDTLS_ARIA_BLOCKSIZE / 4]; member
/optee_os/core/crypto/
A Dsm4.c119 uint32_t rk) in sm4F() argument
121 return x0 ^ sm4Lt(x1 ^ x2 ^ x3 ^ rk); in sm4F()

Completed in 55 milliseconds

12