Home
last modified time | relevance | path

Searched refs:A (Results 1 – 25 of 83) sorted by relevance

1234

/net-tools-3.7.0/mbedtls-2.4.0/library/
Dsha256.c185 uint32_t A[8]; in mbedtls_sha256_process() local
189 A[i] = ctx->state[i]; in mbedtls_sha256_process()
199 P( A[0], A[1], A[2], A[3], A[4], A[5], A[6], A[7], W[i], K[i] ); in mbedtls_sha256_process()
201 temp1 = A[7]; A[7] = A[6]; A[6] = A[5]; A[5] = A[4]; A[4] = A[3]; in mbedtls_sha256_process()
202 A[3] = A[2]; A[2] = A[1]; A[1] = A[0]; A[0] = temp1; in mbedtls_sha256_process()
210 P( A[0], A[1], A[2], A[3], A[4], A[5], A[6], A[7], W[i+0], K[i+0] ); in mbedtls_sha256_process()
211 P( A[7], A[0], A[1], A[2], A[3], A[4], A[5], A[6], W[i+1], K[i+1] ); in mbedtls_sha256_process()
212 P( A[6], A[7], A[0], A[1], A[2], A[3], A[4], A[5], W[i+2], K[i+2] ); in mbedtls_sha256_process()
213 P( A[5], A[6], A[7], A[0], A[1], A[2], A[3], A[4], W[i+3], K[i+3] ); in mbedtls_sha256_process()
214 P( A[4], A[5], A[6], A[7], A[0], A[1], A[2], A[3], W[i+4], K[i+4] ); in mbedtls_sha256_process()
[all …]
Dmd5.c114 uint32_t X[16], A, B, C, D; in mbedtls_md5_process() local
140 A = ctx->state[0]; in mbedtls_md5_process()
147 P( A, B, C, D, 0, 7, 0xD76AA478 ); in mbedtls_md5_process()
148 P( D, A, B, C, 1, 12, 0xE8C7B756 ); in mbedtls_md5_process()
149 P( C, D, A, B, 2, 17, 0x242070DB ); in mbedtls_md5_process()
150 P( B, C, D, A, 3, 22, 0xC1BDCEEE ); in mbedtls_md5_process()
151 P( A, B, C, D, 4, 7, 0xF57C0FAF ); in mbedtls_md5_process()
152 P( D, A, B, C, 5, 12, 0x4787C62A ); in mbedtls_md5_process()
153 P( C, D, A, B, 6, 17, 0xA8304613 ); in mbedtls_md5_process()
154 P( B, C, D, A, 7, 22, 0xFD469501 ); in mbedtls_md5_process()
[all …]
Dripemd160.c117 uint32_t A, B, C, D, E, Ap, Bp, Cp, Dp, Ep, X[16]; in mbedtls_ripemd160_process() local
136 A = Ap = ctx->state[0]; in mbedtls_ripemd160_process()
163 P2( A, B, C, D, E, 0, 11, 5, 8 ); in mbedtls_ripemd160_process()
164 P2( E, A, B, C, D, 1, 14, 14, 9 ); in mbedtls_ripemd160_process()
165 P2( D, E, A, B, C, 2, 15, 7, 9 ); in mbedtls_ripemd160_process()
166 P2( C, D, E, A, B, 3, 12, 0, 11 ); in mbedtls_ripemd160_process()
167 P2( B, C, D, E, A, 4, 5, 9, 13 ); in mbedtls_ripemd160_process()
168 P2( A, B, C, D, E, 5, 8, 2, 15 ); in mbedtls_ripemd160_process()
169 P2( E, A, B, C, D, 6, 7, 11, 15 ); in mbedtls_ripemd160_process()
170 P2( D, E, A, B, C, 7, 9, 4, 5 ); in mbedtls_ripemd160_process()
[all …]
Dsha1.c115 uint32_t temp, W[16], A, B, C, D, E; in mbedtls_sha1_process() local
148 A = ctx->state[0]; in mbedtls_sha1_process()
157 P( A, B, C, D, E, W[0] ); in mbedtls_sha1_process()
158 P( E, A, B, C, D, W[1] ); in mbedtls_sha1_process()
159 P( D, E, A, B, C, W[2] ); in mbedtls_sha1_process()
160 P( C, D, E, A, B, W[3] ); in mbedtls_sha1_process()
161 P( B, C, D, E, A, W[4] ); in mbedtls_sha1_process()
162 P( A, B, C, D, E, W[5] ); in mbedtls_sha1_process()
163 P( E, A, B, C, D, W[6] ); in mbedtls_sha1_process()
164 P( D, E, A, B, C, W[7] ); in mbedtls_sha1_process()
[all …]
Dmd4.c115 uint32_t X[16], A, B, C, D; in mbedtls_md4_process() local
136 A = ctx->state[0]; in mbedtls_md4_process()
144 P( A, B, C, D, X[ 0], 3 ); in mbedtls_md4_process()
145 P( D, A, B, C, X[ 1], 7 ); in mbedtls_md4_process()
146 P( C, D, A, B, X[ 2], 11 ); in mbedtls_md4_process()
147 P( B, C, D, A, X[ 3], 19 ); in mbedtls_md4_process()
148 P( A, B, C, D, X[ 4], 3 ); in mbedtls_md4_process()
149 P( D, A, B, C, X[ 5], 7 ); in mbedtls_md4_process()
150 P( C, D, A, B, X[ 6], 11 ); in mbedtls_md4_process()
151 P( B, C, D, A, X[ 7], 19 ); in mbedtls_md4_process()
[all …]
Dhavege.c87 A = &WALK[PT1 ]; RES[i++] ^= *A; \
92 IN = (*A >> (1)) ^ (*A << (31)) ^ CLK; \
93 *A = (*B >> (2)) ^ (*B << (30)) ^ CLK; \
98 A = &WALK[PT1 ^ 2]; RES[i++] ^= *A; \
103 if( PTEST & 1 ) SWAP( A, C ); \
105 IN = (*A >> (5)) ^ (*A << (27)) ^ CLK; \
106 *A = (*B >> (6)) ^ (*B << (26)) ^ CLK; \
111 A = &WALK[PT1 ^ 4]; \
131 RES[i++] ^= *A; \
136 IN = (*A >> ( 9)) ^ (*A << (23)) ^ CLK; \
[all …]
Dbignum.c882 int mbedtls_mpi_add_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_add_abs() argument
890 const mbedtls_mpi *T = A; A = X; B = T; in mbedtls_mpi_add_abs()
893 if( X != A ) in mbedtls_mpi_add_abs()
894 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( X, A ) ); in mbedtls_mpi_add_abs()
959 int mbedtls_mpi_sub_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_sub_abs() argument
965 if( mbedtls_mpi_cmp_abs( A, B ) < 0 ) in mbedtls_mpi_sub_abs()
976 if( X != A ) in mbedtls_mpi_sub_abs()
977 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( X, A ) ); in mbedtls_mpi_sub_abs()
1002 int mbedtls_mpi_add_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_add_mpi() argument
1004 int ret, s = A->s; in mbedtls_mpi_add_mpi()
[all …]
Daes.c138 V(19,FE,FE,E7), V(62,D7,D7,B5), V(E6,AB,AB,4D), V(9A,76,76,EC), \
143 V(C2,B7,B7,75), V(1C,FD,FD,E1), V(AE,93,93,3D), V(6A,26,26,4C), \
144 V(5A,36,36,6C), V(41,3F,3F,7E), V(02,F7,F7,F5), V(4F,CC,CC,83), \
146 V(93,71,71,E2), V(73,D8,D8,AB), V(53,31,31,62), V(3F,15,15,2A), \
148 V(28,18,18,30), V(A1,96,96,37), V(0F,05,05,0A), V(B5,9A,9A,2F), \
151 V(1B,09,09,12), V(9E,83,83,1D), V(74,2C,2C,58), V(2E,1A,1A,34), \
152 V(2D,1B,1B,36), V(B2,6E,6E,DC), V(EE,5A,5A,B4), V(FB,A0,A0,5B), \
157 V(BE,6A,6A,D4), V(46,CB,CB,8D), V(D9,BE,BE,67), V(4B,39,39,72), \
158 V(DE,4A,4A,94), V(D4,4C,4C,98), V(E8,58,58,B0), V(4A,CF,CF,85), \
159 V(6B,D0,D0,BB), V(2A,EF,EF,C5), V(E5,AA,AA,4F), V(16,FB,FB,ED), \
[all …]
Dsha512.c203 uint64_t A, B, C, D, E, F, G, H; in mbedtls_sha512_process() local
235 A = ctx->state[0]; in mbedtls_sha512_process()
247 P( A, B, C, D, E, F, G, H, W[i], K[i] ); i++; in mbedtls_sha512_process()
248 P( H, A, B, C, D, E, F, G, W[i], K[i] ); i++; in mbedtls_sha512_process()
249 P( G, H, A, B, C, D, E, F, W[i], K[i] ); i++; in mbedtls_sha512_process()
250 P( F, G, H, A, B, C, D, E, W[i], K[i] ); i++; in mbedtls_sha512_process()
251 P( E, F, G, H, A, B, C, D, W[i], K[i] ); i++; in mbedtls_sha512_process()
252 P( D, E, F, G, H, A, B, C, W[i], K[i] ); i++; in mbedtls_sha512_process()
253 P( C, D, E, F, G, H, A, B, W[i], K[i] ); i++; in mbedtls_sha512_process()
254 P( B, C, D, E, F, G, H, A, W[i], K[i] ); i++; in mbedtls_sha512_process()
[all …]
Decp_curves.c585 ecp_mpi_load( &grp->A, a, alen ); in ecp_group_load()
663 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &grp->A, 16, "01DB42" ) ); in ecp_use_curve25519()
823 #define A( i ) N->p + i * WIDTH macro
824 #define ADD( i ) add64( p, A( i ), &c )
852 #undef A
877 #define LOAD32 cur = A( i );
882 #define A( j ) N->p[j] macro
888 #define A( j ) j % 2 ? (uint32_t)( N->p[j/2] >> 32 ) : (uint32_t)( N->p[j/2] ) macro
915 #define ADD( j ) add32( &cur, A( j ), &c );
916 #define SUB( j ) sub32( &cur, A( j ), &c );
[all …]
/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_mpi.function244 mbedtls_mpi A, X, Y, Z;
245 mbedtls_mpi_init( &A ); mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Y ); mbedtls_mpi_init( &Z );
249 TEST_ASSERT( mbedtls_mpi_read_string( &A, radix_A, input_A ) == 0 );
251 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &Z, &A ) == 0 );
254 mbedtls_mpi_free( &A ); mbedtls_mpi_free( &X ); mbedtls_mpi_free( &Y ); mbedtls_mpi_free( &Z );
307 mbedtls_mpi X, Y, A;
308 mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Y ); mbedtls_mpi_init( &A );
312 TEST_ASSERT( mbedtls_mpi_lset( &A, input_A ) == 0 );
314 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &Y, &A ) == 0 );
317 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &Y, &A ) != 0 );
[all …]
Dtest_suite_ccm.data140 CCM encrypt and tag NIST VTT AES-128 #1 (P=24, N=13, A=32, T=4)
144 CCM encrypt and tag NIST VTT AES-128 #2 (P=24, N=13, A=32, T=6)
148 CCM encrypt and tag NIST VTT AES-128 #3 (P=24, N=13, A=32, T=8)
152 CCM encrypt and tag NIST VTT AES-128 #4 (P=24, N=13, A=32, T=10)
156 CCM encrypt and tag NIST VTT AES-128 #5 (P=24, N=13, A=32, T=12)
160 CCM encrypt and tag NIST VTT AES-128 #6 (P=24, N=13, A=32, T=14)
164 CCM encrypt and tag NIST VTT AES-128 #7 (P=24, N=13, A=32, T=16)
168 CCM encrypt and tag NIST VTT AES-192 #1 (P=24, N=13, A=32, T=4)
172 CCM encrypt and tag NIST VTT AES-192 #2 (P=24, N=13, A=32, T=6)
176 CCM encrypt and tag NIST VTT AES-192 #3 (P=24, N=13, A=32, T=8)
[all …]
Dtest_suite_cipher.ccm.data1 AES-128-CCM test vector NIST #1 (P=0, N=7, A=0, T=4)
5 AES-128-CCM test vector NIST #2 (P=0, N=7, A=0, T=4)
9 AES-128-CCM test vector NIST #3 (P=0, N=7, A=0, T=16)
13 AES-128-CCM test vector NIST #4 (P=0, N=7, A=0, T=16)
17 AES-128-CCM test vector NIST #5 (P=0, N=13, A=0, T=4)
21 AES-128-CCM test vector NIST #6 (P=0, N=13, A=0, T=4)
25 AES-128-CCM test vector NIST #7 (P=0, N=13, A=0, T=16)
29 AES-128-CCM test vector NIST #8 (P=0, N=13, A=0, T=16)
33 AES-128-CCM test vector NIST #9 (P=24, N=7, A=0, T=4)
37 AES-128-CCM test vector NIST #10 (P=24, N=7, A=0, T=4)
[all …]
/net-tools-3.7.0/tinydtls-0.8.2/ecc/
Decc.c108 static void setZero(uint32_t *A, const int length){ in setZero() argument
109 memset(A, 0x0, length * sizeof(uint32_t)); in setZero()
119 static int isSame(const uint32_t *A, const uint32_t *B, uint8_t length){ in isSame() argument
120 return !memcmp(A, B, length * sizeof(uint32_t)); in isSame()
124 static int isGreater(const uint32_t *A, const uint32_t *B, uint8_t length){ in isGreater() argument
128 if(A[i] > B[i]) in isGreater()
130 if(A[i] < B[i]) in isGreater()
180 static void fieldModP(uint32_t *A, const uint32_t *B) in fieldModP() argument
188 copy(B,A,arrayLength); in fieldModP()
195 fieldAdd(A,tempm,ecc_prime_r,tempm2); in fieldModP()
[all …]
Decc.h74 void ecc_fieldModP(uint32_t *A, const uint32_t *B);
75 void ecc_fieldModO(const uint32_t *A, uint32_t *result, uint8_t length);
76 void ecc_fieldInv(const uint32_t *A, const uint32_t *modulus, const uint32_t *reducer, uint32_t *B);
80 int ecc_isSame(const uint32_t *A, const uint32_t *B, uint8_t length);
81 void ecc_setZero(uint32_t *A, const int length);
82 int ecc_isOne(const uint32_t* A);
83 void ecc_rshift(uint32_t* A);
84 int ecc_isGreater(const uint32_t *A, const uint32_t *B, uint8_t length);
/net-tools-3.7.0/tinydtls-0.8.2/
Dccm.c37 #define CCM_FLAGS(A,M,L) (((A > 0) << 6) | (((M - 2)/2) << 3) | (L - 1)) argument
41 #define SET_COUNTER(A,L,cnt,C) { \ argument
43 memset((A) + DTLS_CCM_BLOCKSIZE - (L), 0, (L)); \
46 (A)[i] |= (C) & 0xFF; \
151 unsigned char A[DTLS_CCM_BLOCKSIZE], in encrypt()
156 SET_COUNTER(A, L, counter, counter_tmp); in encrypt()
157 rijndael_encrypt(ctx, A, S); in encrypt()
184 unsigned char A[DTLS_CCM_BLOCKSIZE]; /* A_i blocks for encryption input */ in dtls_ccm_encrypt_message() local
195 A[0] = L-1; in dtls_ccm_encrypt_message()
198 memcpy(A + 1, nonce, DTLS_CCM_BLOCKSIZE - L); in dtls_ccm_encrypt_message()
[all …]
Dnumeric.h32 #define min(A,B) ((A) <= (B) ? (A) : (B)) argument
36 #define max(A,B) ((A) < (B) ? (B) : (A)) argument
Dsession.c39 #define _dtls_address_equals_impl(A,B) \ argument
40 ((A)->size == (B)->size \
41 && (A)->port == (B)->port \
42 && uip_ipaddr_cmp(&((A)->addr),&((B)->addr)) \
43 && (A)->ifindex == (B)->ifindex)
Dcrypto.c191 unsigned char A[DTLS_HMAC_DIGEST_SIZE]; in dtls_p_hash() local
205 dlen = dtls_hmac_finalize(hmac_a, A); in dtls_p_hash()
215 dtls_hmac_update(hmac_p, A, dlen); in dtls_p_hash()
227 dtls_hmac_update(hmac_a, A, dlen); in dtls_p_hash()
228 dtls_hmac_finalize(hmac_a, A); in dtls_p_hash()
232 dtls_hmac_update(hmac_p, A, dlen); in dtls_p_hash()
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/
Dbignum.h464 int mbedtls_mpi_add_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
476 int mbedtls_mpi_sub_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
488 int mbedtls_mpi_add_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
500 int mbedtls_mpi_sub_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
512 int mbedtls_mpi_add_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint b );
524 int mbedtls_mpi_sub_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint b );
536 int mbedtls_mpi_mul_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B );
550 int mbedtls_mpi_mul_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_uint b );
566 int mbedtls_mpi_div_mpi( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B…
582 int mbedtls_mpi_div_int( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, mbedtls_mpi_sint b );
[all …]
/net-tools-3.7.0/libcoap/include/coap/
Daddress.h30 #define _coap_address_equals_impl(A, B) (!!ip_addr_cmp(&(A)->addr,&(B)->addr)) argument
32 #define _coap_address_isany_impl(A) ip_addr_isany(&(A)->addr) argument
45 #define _coap_address_equals_impl(A,B) \ argument
46 ((A)->port == (B)->port \
47 && uip_ipaddr_cmp(&((A)->addr),&((B)->addr)))
50 #define _coap_address_isany_impl(A) 0 argument
/net-tools-3.7.0/libcoap/examples/
Dcoap-rd.txt.in13 coap-rd - A CoAP Resource Directory based on libcoap
17 *coap-rd* [*-A* addr] [*-g* group] [*-p* port] [*-v* num]
26 *-A* addr::
43 coap-rd -A ::1
49 coap-rd -A ::1 -p 13011
56 coap-rd -A 2001:db8:81a8:0:6ef0:dead:feed:beef -v 5
63 coap-rd -A 2001:db8:81a8:0:6ef0:dead:feed:beef -g FF02:FD
Dcoap-server.txt.in17 *coap-server* [*-A* addr] [*-g* group] [*-p* port] [*-v* num]
26 *-A* addr::
43 coap-server -A ::1
49 coap-server -A ::1 -p 13011
56 coap-server -A 2001:db8:81a8:0:6ef0:dead:feed:beef -v 5
63 coap-server -A 2001:db8:81a8:0:6ef0:dead:feed:beef -g FF02:FD
/net-tools-3.7.0/mbedtls-2.4.0/yotta/data/example-hashing/
DREADME.md9 * A computer with the following software installed:
14 * A serial terminal emulator (Like screen, pySerial and cu).
16 * A micro-USB cable.
/net-tools-3.7.0/mbedtls-2.4.0/yotta/data/example-authcrypt/
DREADME.md9 * A computer with the following software installed:
14 * A serial terminal emulator (Like screen, pySerial and cu).
16 * A micro-USB cable.

1234