Home
last modified time | relevance | path

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

/net-tools-3.4.0/tinydtls-0.8.2/aes/
Drijndael.c731 rijndaelKeySetupEnc(aes_u32 rk[/*4*(Nr + 1)*/], const aes_u8 cipherKey[], int keyBits) in rijndaelKeySetupEnc() argument
736 rk[0] = GETU32(cipherKey ); in rijndaelKeySetupEnc()
737 rk[1] = GETU32(cipherKey + 4); in rijndaelKeySetupEnc()
738 rk[2] = GETU32(cipherKey + 8); in rijndaelKeySetupEnc()
739 rk[3] = GETU32(cipherKey + 12); in rijndaelKeySetupEnc()
742 temp = rk[3]; in rijndaelKeySetupEnc()
743 rk[4] = rk[0] ^ in rijndaelKeySetupEnc()
749 rk[5] = rk[1] ^ rk[4]; in rijndaelKeySetupEnc()
750 rk[6] = rk[2] ^ rk[5]; in rijndaelKeySetupEnc()
751 rk[7] = rk[3] ^ rk[6]; in rijndaelKeySetupEnc()
[all …]
Drijndael.h62 int rijndaelKeySetupEnc(aes_u32 rk[/*4*(Nr + 1)*/], const aes_u8 cipherKey[], int keyBits);
63 int rijndaelKeySetupDec(aes_u32 rk[/*4*(Nr + 1)*/], const aes_u8 cipherKey[], int keyBits);
64 void rijndaelEncrypt(const aes_u32 rk[/*4*(Nr + 1)*/], int Nr, const aes_u8 pt[16], aes_u8 ct[16]);
/net-tools-3.4.0/mbedtls-2.4.0/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.c86 uint32_t *rk; in mbedtls_padlock_xcryptecb() local
91 rk = ctx->rk; in mbedtls_padlock_xcryptecb()
109 : "m" (ebx), "m" (ctrl), "m" (rk), "m" (blk) in mbedtls_padlock_xcryptecb()
129 uint32_t *rk; in mbedtls_padlock_xcryptcbc() local
138 rk = ctx->rk; in mbedtls_padlock_xcryptcbc()
160 "m" (rk), "m" (input), "m" (output), "m" (iw) in mbedtls_padlock_xcryptcbc()
Dcamellia.c353 RK = ctx->rk; in mbedtls_camellia_setkey_enc()
356 memset( RK, 0, sizeof(ctx->rk) ); in mbedtls_camellia_setkey_enc()
465 RK = ctx->rk; in mbedtls_camellia_setkey_dec()
466 SK = cty.rk + 24 * 2 + 8 * idx * 2; in mbedtls_camellia_setkey_dec()
506 RK = ctx->rk; in mbedtls_camellia_crypt_ecb()
Daes.c512 ctx->rk = RK = MBEDTLS_PADLOCK_ALIGN16( ctx->buf ); in mbedtls_aes_setkey_enc()
515 ctx->rk = RK = ctx->buf; in mbedtls_aes_setkey_enc()
519 return( mbedtls_aesni_setkey_enc( (unsigned char *) ctx->rk, key, keybits ) ); in mbedtls_aes_setkey_enc()
613 ctx->rk = RK = MBEDTLS_PADLOCK_ALIGN16( ctx->buf ); in mbedtls_aes_setkey_dec()
616 ctx->rk = RK = ctx->buf; in mbedtls_aes_setkey_dec()
627 mbedtls_aesni_inverse_key( (unsigned char *) ctx->rk, in mbedtls_aes_setkey_dec()
628 (const unsigned char *) cty.rk, ctx->nr ); in mbedtls_aes_setkey_dec()
633 SK = cty.rk + cty.nr * 4; in mbedtls_aes_setkey_dec()
720 RK = ctx->rk; in mbedtls_aes_encrypt()
777 RK = ctx->rk; in mbedtls_aes_decrypt()
/net-tools-3.4.0/mbedtls-2.4.0/include/mbedtls/
Daesni.h101 int mbedtls_aesni_setkey_enc( unsigned char *rk,
Dcamellia.h55 uint32_t rk[68]; /*!< CAMELLIA round keys */ member
Daes.h61 uint32_t *rk; /*!< AES round keys */ member