Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/aes/
A Daes.c145 rk[5] = rk[1] ^ rk[4]; in SETUP()
146 rk[6] = rk[2] ^ rk[5]; in SETUP()
147 rk[7] = rk[3] ^ rk[6]; in SETUP()
163 rk[ 7] = rk[ 1] ^ rk[ 6]; in SETUP()
164 rk[ 8] = rk[ 2] ^ rk[ 7]; in SETUP()
165 rk[ 9] = rk[ 3] ^ rk[ 8]; in SETUP()
169 rk[10] = rk[ 4] ^ rk[ 9]; in SETUP()
170 rk[11] = rk[ 5] ^ rk[10]; in SETUP()
185 rk[ 9] = rk[ 1] ^ rk[ 8]; in SETUP()
186 rk[10] = rk[ 2] ^ rk[ 9]; in SETUP()
[all …]
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
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 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 Daria.c499 ctx->rk[i][k] = ctx->rk[j][k]; 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()
536 a ^= ctx->rk[i][0]; in mbedtls_aria_crypt_ecb()
537 b ^= ctx->rk[i][1]; in mbedtls_aria_crypt_ecb()
538 c ^= ctx->rk[i][2]; in mbedtls_aria_crypt_ecb()
539 d ^= ctx->rk[i][3]; in mbedtls_aria_crypt_ecb()
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()
[all …]
A 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()
A 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()
/optee_os-3.20.0/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 …]
A Dghash-ce-core_a64.S380 .macro load_round_keys, rounds, rk
384 ld1 {v17.4s-v18.4s}, [\rk], #32
385 1111: ld1 {v19.4s-v20.4s}, [\rk], #32
386 2222: ld1 {v21.4s-v24.4s}, [\rk], #64
387 ld1 {v25.4s-v28.4s}, [\rk], #64
388 ld1 {v29.4s-v31.4s}, [\rk]
A Daes_modes_armv8a_ce_a32.S146 .macro prepare_key, rk, rounds
147 add ip, \rk, \rounds, lsl #4
148 vld1.8 {q8-q9}, [\rk] @ load first 2 round keys
/optee_os-3.20.0/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-3.20.0/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()
A Daes.c53 ctx.rk = ctx.buf; in crypto_aes_enc_block()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Daesni.h126 int mbedtls_aesni_setkey_enc( unsigned char *rk,
A Dcamellia.h67 uint32_t rk[68]; /*!< CAMELLIA round keys */ member
A Daria.h83 uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS + 1][MBEDTLS_ARIA_BLOCKSIZE / 4]; member
A Daes.h94 uint32_t *rk; /*!< AES round keys. */ member
/optee_os-3.20.0/core/crypto/
A Dsm4.c119 uint32_t rk) in sm4F() argument
121 return x0 ^ sm4Lt(x1 ^ x2 ^ x3 ^ rk); in sm4F()

Completed in 28 milliseconds