/net-tools-3.6.0/tinydtls-0.8.2/ecc/ |
D | ecc.h | 43 extern const uint32_t ecc_g_point_x[8]; 44 extern const uint32_t ecc_g_point_y[8]; 47 void ecc_ec_mult(const uint32_t *px, const uint32_t *py, const uint32_t *secret, uint32_t *resultx,… 49 static inline void ecc_ecdh(const uint32_t *px, const uint32_t *py, const uint32_t *secret, uint32_… in ecc_ecdh() 52 int ecc_ecdsa_validate(const uint32_t *x, const uint32_t *y, const uint32_t *e, const uint32_t *r, … 53 int ecc_ecdsa_sign(const uint32_t *d, const uint32_t *e, const uint32_t *k, uint32_t *r, uint32_t *… 55 int ecc_is_valid_key(const uint32_t * priv_key); 56 static inline void ecc_gen_pub_key(const uint32_t *priv_key, uint32_t *pub_x, uint32_t *pub_y) in ecc_gen_pub_key() 63 void ecc_ec_add(const uint32_t *px, const uint32_t *py, const uint32_t *qx, const uint32_t *qy, uin… 64 void ecc_ec_double(const uint32_t *px, const uint32_t *py, uint32_t *Dx, uint32_t *Dy); [all …]
|
D | ecc.c | 43 static uint32_t add( const uint32_t *x, const uint32_t *y, uint32_t *result, uint8_t length){ in add() 54 return (uint32_t)d; in add() 57 static uint32_t sub( const uint32_t *x, const uint32_t *y, uint32_t *result, uint8_t length){ in sub() 66 return (uint32_t)d; in sub() 69 static void rshiftby(const uint32_t *in, uint8_t in_size, uint32_t *out, uint8_t out_size, uint8_t … in rshiftby() 80 static const uint32_t ecc_prime_m[8] = {0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 85 static const uint32_t ecc_prime_r[8] = {0x00000001, 0x00000000, 0x00000000, 0xffffffff, 89 static const uint32_t ecc_order_m[9] = {0xFC632551, 0xF3B9CAC2, 0xA7179E84, 0xBCE6FAAD, 93 static const uint32_t ecc_order_r[8] = {0x039CDAAF, 0x0C46353D, 0x58E8617B, 0x43190552, 96 static const uint32_t ecc_order_mu[9] = {0xEEDF9BFE, 0x012FFD85, 0xDF1A6C21, 0x43190552, [all …]
|
D | testecc.c | 55 uint32_t BasePointx[8] = { 0xd898c296, 0xf4a13945, 0x2deb33a0, 0x77037d81, 59 uint32_t BasePointy[8] = { 0x37bf51f5, 0xcbb64068, 0x6b315ece, 0x2bce3357, 63 uint32_t Sx[8] = { 0x89da97c9, 0xb77cab39, 0x221a8fa0, 0x617519b3, 67 uint32_t Sy[8] = { 0x3042a256, 0xb6350b24, 0x53cec576, 0x702de80f, 71 uint32_t Tx[8] = { 0x35e0986b, 0xbb8cf92e, 0x61c89575, 0x39540dc8, 75 uint32_t Ty[8] = { 0xc8b24316, 0xb656e9d8, 0x598b9e7a, 0xf61a8a52, 79 uint32_t secret[8] = { 0x2ffb06fd, 0x6522468b, 0x3072708b, 0xd0c7a893, 83 uint32_t resultAddx[8] = { 0x545a067e, 0x553cf35a, 0xac476bd4, 0x70349191, 87 uint32_t resultAddy[8] = { 0x744ac264, 0x6d013011, 0x5aa5c9d4, 0xc33b1331, 91 uint32_t resultDoublex[8] = { 0xdb6127b0, 0x2a860ffc, 0xb17481b8, 0xdf6c22f3, [all …]
|
D | testfield.c | 49 uint32_t null[8] = { 0x00000000,0x00000000,0x00000000,0x00000000, 51 uint32_t null64[16] = { 0x00000000,0x00000000,0x00000000,0x00000000, 55 uint32_t one[8] = { 0x00000001,0x00000000,0x00000000,0x00000000, 57 uint32_t one64[16] = { 0x00000001,0x00000000,0x00000000,0x00000000, 61 uint32_t two[8] = { 0x00000002,0x00000000,0x00000000,0x00000000, 63 uint32_t two64[16] = { 0x00000002,0x00000000,0x00000000,0x00000000, 67 uint32_t three[8] = { 0x00000003,0x00000000,0x00000000,0x00000000, 69 uint32_t four[8] = {0x00000004,0x00000000,0x00000000,0x00000000, 71 uint32_t four64[16] = { 0x00000004,0x00000000,0x00000000,0x00000000, 75 uint32_t six[8] = { 0x00000006,0x00000000,0x00000000,0x00000000, [all …]
|
D | test_helper.h | 40 extern const uint32_t ecc_prime_m[8]; 41 extern const uint32_t ecc_prime_r[8]; 44 void ecc_printNumber(const uint32_t *x, int numberLength); 45 void ecc_setRandom(uint32_t *secret);
|
D | test_helper.c | 44 void ecc_printNumber(const uint32_t *x, int numberLength){ //here the values are turned to MSB! in ecc_printNumber() 53 void ecc_setRandom(uint32_t *secret){ in ecc_setRandom() 61 const uint32_t ecc_prime_m[8] = {0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 66 const uint32_t ecc_prime_r[8] = {0x00000001, 0x00000000, 0x00000000, 0xffffffff,
|
/net-tools-3.6.0/tinydtls-0.8.2/ |
D | numeric.h | 53 static inline int dtls_int_to_uint24(unsigned char *field, uint32_t value) in dtls_int_to_uint24() 61 static inline int dtls_int_to_uint32(unsigned char *field, uint32_t value) in dtls_int_to_uint32() 105 static inline uint32_t dtls_uint24_to_int(const unsigned char *field) in dtls_uint24_to_int() 107 return ((uint32_t)field[0] << 16) in dtls_uint24_to_int() 108 | ((uint32_t)field[1] << 8) in dtls_uint24_to_int() 109 | (uint32_t)field[2]; in dtls_uint24_to_int() 112 static inline uint32_t dtls_uint32_to_int(const unsigned char *field) in dtls_uint32_to_int() 114 return ((uint32_t)field[0] << 24) in dtls_uint32_to_int() 115 | ((uint32_t)field[1] << 16) in dtls_uint32_to_int() 116 | ((uint32_t)field[2] << 8) in dtls_uint32_to_int() [all …]
|
D | crypto.c | 343 uint32_t *result) { in dtls_ec_key_to_uint32() 346 for (i = (key_size / sizeof(uint32_t)) - 1; i >= 0 ; i--) { in dtls_ec_key_to_uint32() 347 *result = dtls_uint32_to_int(&key[i * sizeof(uint32_t)]); in dtls_ec_key_to_uint32() 352 static void dtls_ec_key_from_uint32(const uint32_t *key, size_t key_size, in dtls_ec_key_from_uint32() 356 for (i = (key_size / sizeof(uint32_t)) - 1; i >= 0 ; i--) { in dtls_ec_key_from_uint32() 362 int dtls_ec_key_from_uint32_asn1(const uint32_t *key, size_t key_size, in dtls_ec_key_from_uint32_asn1() 368 for (i = (key_size / sizeof(uint32_t)) - 1; i >= 0 ; i--) { in dtls_ec_key_from_uint32_asn1() 404 uint32_t priv[8]; in dtls_ecdh_pre_master_secret() 405 uint32_t pub_x[8]; in dtls_ecdh_pre_master_secret() 406 uint32_t pub_y[8]; in dtls_ecdh_pre_master_secret() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | blowfish.c | 53 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \ 54 | ( (uint32_t) (b)[(i) + 1] << 16 ) \ 55 | ( (uint32_t) (b)[(i) + 2] << 8 ) \ 56 | ( (uint32_t) (b)[(i) + 3] ); \ 70 static const uint32_t P[MBEDTLS_BLOWFISH_ROUNDS + 2] = { 79 static const uint32_t S[4][256]; 81 static uint32_t F( mbedtls_blowfish_context *ctx, uint32_t x ) in F() 84 uint32_t y; in F() 100 static void blowfish_enc( mbedtls_blowfish_context *ctx, uint32_t *xl, uint32_t *xr ) in blowfish_enc() 102 uint32_t Xl, Xr, temp; in blowfish_enc() [all …]
|
D | aes.c | 68 (n) = ( (uint32_t) (b)[(i) ] ) \ 69 | ( (uint32_t) (b)[(i) + 1] << 8 ) \ 70 | ( (uint32_t) (b)[(i) + 2] << 16 ) \ 71 | ( (uint32_t) (b)[(i) + 3] << 24 ); \ 201 static const uint32_t FT0[256] = { FT }; 205 static const uint32_t FT1[256] = { FT }; 209 static const uint32_t FT2[256] = { FT }; 213 static const uint32_t FT3[256] = { FT }; 328 static const uint32_t RT0[256] = { RT }; 332 static const uint32_t RT1[256] = { RT }; [all …]
|
D | des.c | 62 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \ 63 | ( (uint32_t) (b)[(i) + 1] << 16 ) \ 64 | ( (uint32_t) (b)[(i) + 2] << 8 ) \ 65 | ( (uint32_t) (b)[(i) + 3] ); \ 82 static const uint32_t SB1[64] = 102 static const uint32_t SB2[64] = 122 static const uint32_t SB3[64] = 142 static const uint32_t SB4[64] = 162 static const uint32_t SB5[64] = 182 static const uint32_t SB6[64] = [all …]
|
D | padlock.c | 86 uint32_t *rk; in mbedtls_padlock_xcryptecb() 87 uint32_t *blk; in mbedtls_padlock_xcryptecb() 88 uint32_t *ctrl; in mbedtls_padlock_xcryptecb() 129 uint32_t *rk; in mbedtls_padlock_xcryptcbc() 130 uint32_t *iw; in mbedtls_padlock_xcryptcbc() 131 uint32_t *ctrl; in mbedtls_padlock_xcryptcbc()
|
D | camellia.c | 62 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \ 63 | ( (uint32_t) (b)[(i) + 1] << 16 ) \ 64 | ( (uint32_t) (b)[(i) + 2] << 8 ) \ 65 | ( (uint32_t) (b)[(i) + 3] ); \ 301 static void camellia_feistel( const uint32_t x[2], const uint32_t k[2], in camellia_feistel() 302 uint32_t z[2]) in camellia_feistel() 304 uint32_t I0, I1; in camellia_feistel() 308 I0 = ((uint32_t) SBOX1((I0 >> 24) & 0xFF) << 24) | in camellia_feistel() 309 ((uint32_t) SBOX2((I0 >> 16) & 0xFF) << 16) | in camellia_feistel() 310 ((uint32_t) SBOX3((I0 >> 8) & 0xFF) << 8) | in camellia_feistel() [all …]
|
D | xtea.c | 56 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \ 57 | ( (uint32_t) (b)[(i) + 1] << 16 ) \ 58 | ( (uint32_t) (b)[(i) + 2] << 8 ) \ 59 | ( (uint32_t) (b)[(i) + 3] ); \ 107 uint32_t *k, v0, v1, i; in mbedtls_xtea_crypt_ecb() 116 uint32_t sum = 0, delta = 0x9E3779B9; in mbedtls_xtea_crypt_ecb() 127 uint32_t delta = 0x9E3779B9, sum = delta * 32; in mbedtls_xtea_crypt_ecb()
|
D | sha256.c | 64 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \ 65 | ( (uint32_t) (b)[(i) + 1] << 16 ) \ 66 | ( (uint32_t) (b)[(i) + 2] << 8 ) \ 67 | ( (uint32_t) (b)[(i) + 3] ); \ 137 static const uint32_t K[] = 184 uint32_t temp1, temp2, W[64]; in mbedtls_sha256_process() 185 uint32_t A[8]; in mbedtls_sha256_process() 245 uint32_t left; in mbedtls_sha256_update() 253 ctx->total[0] += (uint32_t) ilen; in mbedtls_sha256_update() 256 if( ctx->total[0] < (uint32_t) ilen ) in mbedtls_sha256_update() [all …]
|
D | md4.c | 62 (n) = ( (uint32_t) (b)[(i) ] ) \ 63 | ( (uint32_t) (b)[(i) + 1] << 8 ) \ 64 | ( (uint32_t) (b)[(i) + 2] << 16 ) \ 65 | ( (uint32_t) (b)[(i) + 3] << 24 ); \ 115 uint32_t X[16], A, B, C, D; in mbedtls_md4_process() 223 uint32_t left; in mbedtls_md4_update() 231 ctx->total[0] += (uint32_t) ilen; in mbedtls_md4_update() 234 if( ctx->total[0] < (uint32_t) ilen ) in mbedtls_md4_update() 274 uint32_t last, padn; in mbedtls_md4_finish() 275 uint32_t high, low; in mbedtls_md4_finish()
|
D | md5.c | 61 (n) = ( (uint32_t) (b)[(i) ] ) \ 62 | ( (uint32_t) (b)[(i) + 1] << 8 ) \ 63 | ( (uint32_t) (b)[(i) + 2] << 16 ) \ 64 | ( (uint32_t) (b)[(i) + 3] << 24 ); \ 114 uint32_t X[16], A, B, C, D; in mbedtls_md5_process() 242 uint32_t left; in mbedtls_md5_update() 250 ctx->total[0] += (uint32_t) ilen; in mbedtls_md5_update() 253 if( ctx->total[0] < (uint32_t) ilen ) in mbedtls_md5_update() 291 uint32_t last, padn; in mbedtls_md5_finish() 292 uint32_t high, low; in mbedtls_md5_finish()
|
D | ssl_ticket.c | 72 key->generation_time = (uint32_t) mbedtls_time( NULL ); in ssl_ticket_gen_key() 101 uint32_t current_time = (uint32_t) mbedtls_time( NULL ); in ssl_ticket_update_keys() 102 uint32_t key_time = ctx->keys[ctx->active].generation_time; in ssl_ticket_update_keys() 125 uint32_t lifetime ) in mbedtls_ssl_ticket_setup() 290 uint32_t *ticket_lifetime ) in mbedtls_ssl_ticket_write() 457 (uint32_t)( current_time - session->start ) > ctx->ticket_lifetime ) in mbedtls_ssl_ticket_parse()
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | timing.h | 56 uint32_t int_ms; 57 uint32_t fin_ms; 100 void mbedtls_timing_set_delay( void *data, uint32_t int_ms, uint32_t fin_ms );
|
D | x509_crt.h | 109 uint32_t allowed_mds; /**< MDs for signatures */ 110 uint32_t allowed_pks; /**< PK algs for signatures */ 111 uint32_t allowed_curves; /**< Elliptic curves for ECDSA */ 112 uint32_t rsa_min_bitlen; /**< Minimum size for RSA keys */ 253 uint32_t flags ); 302 const char *cn, uint32_t *flags, 303 int (*f_vrfy)(void *, mbedtls_x509_crt *, int, uint32_t *), 337 const char *cn, uint32_t *flags, 338 int (*f_vrfy)(void *, mbedtls_x509_crt *, int, uint32_t *),
|
D | ssl_ticket.h | 49 uint32_t generation_time; /*!< key generation timestamp (seconds) */ 62 uint32_t ticket_lifetime; /*!< lifetime of tickets in seconds */ 108 uint32_t lifetime );
|
D | ssl.h | 485 uint32_t timeout ); 509 uint32_t int_ms, 510 uint32_t fin_ms ); 558 uint32_t verify_result; /*!< verification result */ 563 uint32_t ticket_lifetime; /*!< ticket lifetime hint */ 614 int (*f_vrfy)(void *, mbedtls_x509_crt *, int, uint32_t *); 637 unsigned char *, const unsigned char *, size_t *, uint32_t * ); 685 uint32_t read_timeout; /*!< timeout for mbedtls_ssl_read (ms) */ 688 uint32_t hs_timeout_min; /*!< initial value of the handshake 690 uint32_t hs_timeout_max; /*!< maximum value of the handshake [all …]
|
D | des.h | 55 uint32_t sk[32]; /*!< DES subkeys */ 64 uint32_t sk[96]; /*!< 3DES subkeys */ 281 void mbedtls_des_setkey( uint32_t SK[32],
|
D | ripemd160.h | 48 uint32_t total[2]; /*!< number of bytes processed */ 49 uint32_t state[5]; /*!< intermediate digest state */
|
D | sha1.h | 48 uint32_t total[2]; /*!< number of bytes processed */ 49 uint32_t state[5]; /*!< intermediate digest state */
|