Home
last modified time | relevance | path

Searched refs:SK (Results 1 – 4 of 4) sorted by relevance

/net-tools-3.7.0/mbedtls-2.4.0/library/
Dcamellia.c454 uint32_t *SK; in mbedtls_camellia_setkey_dec() local
466 SK = cty.rk + 24 * 2 + 8 * idx * 2; 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()
471 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
473 for( i = 22 + 8 * idx, SK -= 6; i > 0; i--, SK -= 4 ) in mbedtls_camellia_setkey_dec()
475 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
476 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
479 SK -= 2; in mbedtls_camellia_setkey_dec()
[all …]
Ddes.c294 T = *SK++ ^ X; \
300 T = *SK++ ^ ((X << 28) | (X >> 4)); \
424 void mbedtls_des_setkey( uint32_t SK[32], const unsigned char key[MBEDTLS_DES_KEY_SIZE] ) in mbedtls_des_setkey()
467 *SK++ = ((X << 4) & 0x24000000) | ((X << 28) & 0x10000000) in mbedtls_des_setkey()
479 *SK++ = ((X << 15) & 0x20000000) | ((X << 17) & 0x10000000) in mbedtls_des_setkey()
635 uint32_t X, Y, T, *SK; in mbedtls_des_crypt_ecb() local
637 SK = ctx->sk; in mbedtls_des_crypt_ecb()
722 uint32_t X, Y, T, *SK; in mbedtls_des3_crypt_ecb() local
724 SK = ctx->sk; in mbedtls_des3_crypt_ecb()
Daes.c604 uint32_t *SK; in mbedtls_aes_setkey_dec() local
633 SK = cty.rk + cty.nr * 4; in mbedtls_aes_setkey_dec()
635 *RK++ = *SK++; in mbedtls_aes_setkey_dec()
636 *RK++ = *SK++; in mbedtls_aes_setkey_dec()
637 *RK++ = *SK++; in mbedtls_aes_setkey_dec()
638 *RK++ = *SK++; in mbedtls_aes_setkey_dec()
640 for( i = ctx->nr - 1, SK -= 8; i > 0; i--, SK -= 8 ) in mbedtls_aes_setkey_dec()
642 for( j = 0; j < 4; j++, SK++ ) in mbedtls_aes_setkey_dec()
644 *RK++ = RT0[ FSb[ ( *SK ) & 0xFF ] ] ^ in mbedtls_aes_setkey_dec()
645 RT1[ FSb[ ( *SK >> 8 ) & 0xFF ] ] ^ in mbedtls_aes_setkey_dec()
[all …]
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/
Ddes.h281 void mbedtls_des_setkey( uint32_t SK[32],