ReactOS 0.4.16-dev-297-gc569aee
|
Go to the source code of this file.
Classes | |
struct | tag_rc2_key |
struct | tag_des_key |
struct | tag_des3_key |
struct | tag_aes_key |
struct | tag_md2_state |
struct | rc4_prng |
union | Prng_state |
struct | mp_int |
struct | Rsa_key |
Typedefs | |
typedef ULONG64 | ulong64 |
typedef ULONG32 | ulong32 |
typedef struct tag_rc2_key | rc2_key |
typedef struct tag_des_key | des_key |
typedef struct tag_des3_key | des3_key |
typedef struct tag_aes_key | aes_key |
typedef struct tag_md2_state | md2_state |
typedef union Prng_state | prng_state |
typedef unsigned long | mp_digit |
typedef ulong64 | mp_word |
typedef int | mp_err |
typedef int | ltm_prime_callback(unsigned char *dst, int len, void *dat) |
typedef struct Rsa_key | rsa_key |
Variables | |
const char * | mp_s_rmap |
#define DIGIT_BIT 28 |
Definition at line 186 of file tomcrypt.h.
Definition at line 91 of file tomcrypt.h.
#define LTM_PRIME_2MSB_OFF 0x0004 /* force 2nd MSB to 0 */ |
Definition at line 211 of file tomcrypt.h.
#define LTM_PRIME_2MSB_ON 0x0008 /* force 2nd MSB to 1 */ |
Definition at line 212 of file tomcrypt.h.
Definition at line 209 of file tomcrypt.h.
Definition at line 210 of file tomcrypt.h.
#define MAX_RSA_SIZE 16384 |
Definition at line 454 of file tomcrypt.h.
#define MIN_RSA_SIZE 384 |
Definition at line 453 of file tomcrypt.h.
Definition at line 188 of file tomcrypt.h.
Definition at line 190 of file tomcrypt.h.
Definition at line 194 of file tomcrypt.h.
Definition at line 195 of file tomcrypt.h.
Definition at line 249 of file tomcrypt.h.
Definition at line 250 of file tomcrypt.h.
Definition at line 248 of file tomcrypt.h.
Definition at line 193 of file tomcrypt.h.
#define mp_mag_size | ( | mp | ) | mp_unsigned_bin_size(mp) |
Definition at line 439 of file tomcrypt.h.
Definition at line 189 of file tomcrypt.h.
Definition at line 201 of file tomcrypt.h.
#define MP_NEG 1 /* negative */ |
Definition at line 198 of file tomcrypt.h.
Definition at line 206 of file tomcrypt.h.
Definition at line 200 of file tomcrypt.h.
Definition at line 219 of file tomcrypt.h.
#define mp_prime_random | ( | a, | |
t, | |||
size, | |||
bbs, | |||
cb, | |||
dat | |||
) | mp_prime_random_ex(a, t, ((size) * 8) + 1, (bbs==1)?LTM_PRIME_BBS:0, cb, dat) |
Definition at line 399 of file tomcrypt.h.
Definition at line 203 of file tomcrypt.h.
#define mp_raw_size | ( | mp | ) | mp_signed_bin_size(mp) |
Definition at line 436 of file tomcrypt.h.
Definition at line 438 of file tomcrypt.h.
Definition at line 435 of file tomcrypt.h.
Definition at line 442 of file tomcrypt.h.
Definition at line 444 of file tomcrypt.h.
Definition at line 445 of file tomcrypt.h.
#define mp_tomag | ( | mp, | |
str | |||
) | mp_to_unsigned_bin((mp), (str)) |
Definition at line 440 of file tomcrypt.h.
Definition at line 443 of file tomcrypt.h.
#define mp_toraw | ( | mp, | |
str | |||
) | mp_to_signed_bin((mp), (str)) |
Definition at line 437 of file tomcrypt.h.
Definition at line 202 of file tomcrypt.h.
Definition at line 222 of file tomcrypt.h.
Definition at line 205 of file tomcrypt.h.
Definition at line 197 of file tomcrypt.h.
#define PK_PRIVATE 0 /* PK private keys */ |
Definition at line 449 of file tomcrypt.h.
#define PK_PUBLIC 1 /* PK public keys */ |
Definition at line 450 of file tomcrypt.h.
#define PRIME_SIZE 256 |
Definition at line 371 of file tomcrypt.h.
typedef struct tag_aes_key aes_key |
typedef struct tag_des3_key des3_key |
typedef struct tag_des_key des_key |
Definition at line 231 of file tomcrypt.h.
typedef struct tag_md2_state md2_state |
Definition at line 184 of file tomcrypt.h.
Definition at line 214 of file tomcrypt.h.
Definition at line 185 of file tomcrypt.h.
typedef union Prng_state prng_state |
typedef struct tag_rc2_key rc2_key |
Definition at line 84 of file tomcrypt.h.
Definition at line 79 of file tomcrypt.h.
anonymous enum |
Definition at line 42 of file tomcrypt.h.
Definition at line 1165 of file aes.c.
Referenced by encrypt_block_impl(), and KsecDecryptMemoryAes().
Definition at line 1064 of file aes.c.
Referenced by encrypt_block_impl(), and KsecEncryptMemoryAes().
Definition at line 937 of file aes.c.
Referenced by KsecGetAesKey(), KsecInitializeEncryptionSupport(), and setup_key_impl().
Definition at line 1485 of file des.c.
Referenced by encrypt_block_impl(), and KsecDecryptMemoryDes3().
Definition at line 1473 of file des.c.
Referenced by encrypt_block_impl(), and KsecEncryptMemoryDes3().
Definition at line 1432 of file des.c.
Referenced by KsecGetDes3Key(), KsecInitializeEncryptionSupport(), and setup_key_impl().
Definition at line 1416 of file des.c.
Referenced by setup_key_impl().
Definition at line 125 of file md2.c.
Referenced by finalize_hash_impl().
Definition at line 891 of file mpi.c.
Referenced by fast_mp_invmod(), mp_div(), mp_invmod_slow(), mp_karatsuba_mul(), mp_karatsuba_sqr(), mp_mod(), mp_reduce(), and rsa_exptmod().
Definition at line 1032 of file mpi.c.
Referenced by fast_mp_invmod(), mp_exptmod(), mp_invmod_slow(), mp_lcm(), rsa_exptmod(), rsa_free(), and rsa_make_key().
Definition at line 1046 of file mpi.c.
Referenced by fast_mp_invmod(), mp_div(), mp_invmod_slow(), mp_prime_miller_rabin(), mp_reduce(), and rsa_exptmod().
Definition at line 1067 of file mpi.c.
Referenced by fast_mp_invmod(), mp_invmod_slow(), mp_prime_is_prime(), mp_prime_miller_rabin(), mp_reduce(), and rsa_make_key().
Definition at line 1156 of file mpi.c.
Referenced by fast_mp_invmod(), mp_abs(), mp_div(), mp_div_2d(), mp_div_d(), mp_exptmod_fast(), mp_init_copy(), mp_invmod_slow(), mp_mod_2d(), mp_mul_2d(), rsa_make_key(), and s_mp_exptmod().
Definition at line 1203 of file mpi.c.
Referenced by encrypt_block_impl(), mp_div(), mp_exptmod_fast(), mp_montgomery_calc_normalization(), mp_reduce_2k(), mp_reduce_2k_setup(), mp_unsigned_bin_size(), and s_mp_exptmod().
Definition at line 1917 of file mpi.c.
Referenced by mp_exptmod(), mp_prime_miller_rabin(), and rsa_exptmod().
Definition at line 2228 of file mpi.c.
Referenced by mp_lcm(), and rsa_make_key().
Definition at line 2320 of file mpi.c.
Referenced by export_private_key_impl(), and export_public_key_impl().
Definition at line 2344 of file mpi.c.
Referenced by duplicate_key_impl(), mp_div(), mp_gcd(), mp_prime_miller_rabin(), mp_reduce(), and mp_to_unsigned_bin().
Definition at line 2354 of file mpi.c.
Referenced by fast_mp_invmod(), import_private_key_impl(), import_public_key_impl(), mp_invmod_slow(), mp_lcm(), rsa_exptmod(), and rsa_make_key().
Definition at line 2391 of file mpi.c.
Referenced by mp_exptmod(), and rsa_make_key().
Definition at line 2807 of file mpi.c.
Referenced by rsa_make_key().
Definition at line 2847 of file mpi.c.
Referenced by mp_exptmod_fast(), mp_mulmod(), mp_sqrmod(), rsa_make_key(), and s_mp_exptmod().
Definition at line 3107 of file mpi.c.
Referenced by mp_exptmod_fast(), mp_karatsuba_mul(), mp_lcm(), mp_mulmod(), mp_reduce(), rsa_exptmod(), rsa_make_key(), and s_mp_exptmod().
Definition at line 3138 of file mpi.c.
Referenced by mp_exptmod_fast(), and rsa_exptmod().
Definition at line 3382 of file mpi.c.
Referenced by rand_prime().
int mp_prime_random_ex | ( | mp_int * | a, |
int | t, | ||
int | size, | ||
int | flags, | ||
ltm_prime_callback | cb, | ||
void * | dat | ||
) |
Definition at line 3412 of file mpi.c.
Referenced by rand_prime().
Definition at line 3502 of file mpi.c.
Referenced by import_private_key_impl(), import_public_key_impl(), mp_prime_random_ex(), and rsa_exptmod().
Definition at line 3687 of file mpi.c.
Referenced by import_private_key_impl(), import_public_key_impl(), and rsa_make_key().
Definition at line 3714 of file mpi.c.
Referenced by rsa_make_key().
Definition at line 3771 of file mpi.c.
Referenced by fast_mp_invmod(), mp_div(), mp_invmod_slow(), mp_karatsuba_mul(), mp_karatsuba_sqr(), mp_reduce(), and rsa_exptmod().
Definition at line 3808 of file mpi.c.
Referenced by mp_add_d(), mp_prime_miller_rabin(), mp_prime_random_ex(), and rsa_make_key().
Definition at line 3875 of file mpi.c.
Referenced by export_private_key_impl(), export_public_key_impl(), and rsa_exptmod().
Definition at line 3899 of file mpi.c.
Referenced by export_private_key_impl(), export_public_key_impl(), and rsa_exptmod().
Definition at line 159 of file rc2.c.
Referenced by encrypt_block_impl().
Definition at line 111 of file rc2.c.
Referenced by encrypt_block_impl().
Definition at line 53 of file rc2.c.
Referenced by setup_key_impl().
Definition at line 41 of file rc4.c.
Referenced by setup_key_impl().
int rc4_ready | ( | prng_state * | prng | ) |
int rc4_start | ( | prng_state * | prng | ) |
Definition at line 33 of file rc4.c.
Referenced by setup_key_impl().
int rsa_exptmod | ( | const unsigned char * | in, |
unsigned long | inlen, | ||
unsigned char * | out, | ||
unsigned long * | outlen, | ||
int | which, | ||
rsa_key * | key | ||
) |
Definition at line 180 of file rsa.c.
Referenced by encrypt_block_impl().
Definition at line 87 of file rsa.c.
Referenced by new_key_impl().