Home
last modified time | relevance | path

Searched refs:N (Results 1 – 25 of 47) sorted by relevance

12

/net-tools-latest/mbedtls-2.4.0/tests/suites/
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 …]
Dtest_suite_ecp.function163 mbedtls_mpi N, R;
165 mbedtls_mpi_init( &N ); mbedtls_mpi_init( &R );
168 TEST_ASSERT( mbedtls_mpi_read_string( &N, 16, N_str ) == 0 );
173 * Store correct result before we touch N
175 TEST_ASSERT( mbedtls_mpi_mod_mpi( &R, &N, &grp.P ) == 0 );
177 TEST_ASSERT( grp.modp( &N ) == 0 );
178 TEST_ASSERT( mbedtls_mpi_bitlen( &N ) <= grp.pbits + 3 );
183 TEST_ASSERT( mbedtls_mpi_mod_mpi( &N, &N, &grp.P ) == 0 );
184 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &N, &R ) == 0 );
187 mbedtls_mpi_free( &N ); mbedtls_mpi_free( &R );
[all …]
Dtest_suite_rsa.data261 RSA Check Private key #4 (No N)
285 RSA Check Public key #2 (Even N)
291 RSA Check Public key #4 (N exactly 128 bits)
294 RSA Check Public key #5 (N smaller than 128 bits)
297 RSA Check Public key #6 (N exactly 8192 bits)
300 RSA Check Public key #7 (N larger than 8192 bits)
315 RSA Check Public key #9 (E has size N-2)
318 RSA Check Public key #10 (E has size N)
324 RSA Check Public-Private key #2 (Public no N)
327 RSA Check Public-Private key #3 (Private no N)
[all …]
Dtest_suite_rsa.function45 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
95 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
142 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
206 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
258 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
296 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
341 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
388 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
449 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
526 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
[all …]
Dtest_suite_pkcs1_v21.function34 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
81 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
142 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
194 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
235 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
Dtest_suite_pkcs1_v15.function34 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
81 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
142 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
194 TEST_ASSERT( mbedtls_mpi_read_string( &ctx.N, radix_N, input_N ) == 0 );
/net-tools-latest/mbedtls-2.4.0/library/
Decp_curves.c587 ecp_mpi_load( &grp->N, n, nlen ); in ecp_group_load()
594 grp->nbits = mbedtls_mpi_bitlen( &grp->N ); in ecp_group_load()
823 #define A( i ) N->p + i * WIDTH
831 static int ecp_mod_p192( mbedtls_mpi *N ) in ecp_mod_p192() argument
838 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( N, 6 * WIDTH ) ); in ecp_mod_p192()
840 p = N->p; in ecp_mod_p192()
841 end = p + N->n; in ecp_mod_p192()
881 #define MAX32 N->n
882 #define A( j ) N->p[j]
883 #define STORE32 N->p[i] = cur;
[all …]
Decdsa.c61 if( mbedtls_mpi_cmp_mpi( x, &grp->N ) >= 0 ) in derive_mpi()
62 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( x, x, &grp->N ) ); in derive_mpi()
81 if( grp->N.p == NULL ) in mbedtls_ecdsa_sign()
98 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( r, &R.X, &grp->N ) ); in mbedtls_ecdsa_sign()
129 mbedtls_mpi_cmp_mpi( &t, &grp->N ) >= 0 ); in mbedtls_ecdsa_sign()
138 MBEDTLS_MPI_CHK( mbedtls_mpi_inv_mod( s, &k, &grp->N ) ); in mbedtls_ecdsa_sign()
140 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( s, s, &grp->N ) ); in mbedtls_ecdsa_sign()
211 if( grp->N.p == NULL ) in mbedtls_ecdsa_verify()
217 if( mbedtls_mpi_cmp_int( r, 1 ) < 0 || mbedtls_mpi_cmp_mpi( r, &grp->N ) >= 0 || in mbedtls_ecdsa_verify()
218 mbedtls_mpi_cmp_int( s, 1 ) < 0 || mbedtls_mpi_cmp_mpi( s, &grp->N ) >= 0 ) in mbedtls_ecdsa_verify()
[all …]
Dbignum.c1528 static void mpi_montg_init( mbedtls_mpi_uint *mm, const mbedtls_mpi *N ) in mpi_montg_init() argument
1530 mbedtls_mpi_uint x, m0 = N->p[0]; in mpi_montg_init()
1545 static int mpi_montmul( mbedtls_mpi *A, const mbedtls_mpi *B, const mbedtls_mpi *N, mbedtls_mpi_uin… in mpi_montmul() argument
1551 if( T->n < N->n + 1 || T->p == NULL ) in mpi_montmul()
1557 n = N->n; in mpi_montmul()
1569 mpi_mul_hlp( n, N->p, d, u1 ); in mpi_montmul()
1576 if( mbedtls_mpi_cmp_abs( A, N ) >= 0 ) in mpi_montmul()
1577 mpi_sub_hlp( n, N->p, A->p ); in mpi_montmul()
1588 static int mpi_montred( mbedtls_mpi *A, const mbedtls_mpi *N, mbedtls_mpi_uint mm, const mbedtls_mp… in mpi_montred() argument
1596 return( mpi_montmul( A, &U, N, mm, T ) ); in mpi_montred()
[all …]
Drsa.c128 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &ctx->N, &ctx->P, &ctx->Q ) ); in mbedtls_rsa_gen_key()
129 if( mbedtls_mpi_bitlen( &ctx->N ) != nbits ) in mbedtls_rsa_gen_key()
153 ctx->len = ( mbedtls_mpi_bitlen( &ctx->N ) + 7 ) >> 3; in mbedtls_rsa_gen_key()
175 if( !ctx->N.p || !ctx->E.p ) in mbedtls_rsa_check_pubkey()
178 if( ( ctx->N.p[0] & 1 ) == 0 || in mbedtls_rsa_check_pubkey()
182 if( mbedtls_mpi_bitlen( &ctx->N ) < 128 || in mbedtls_rsa_check_pubkey()
183 mbedtls_mpi_bitlen( &ctx->N ) > MBEDTLS_MPI_MAX_BITS ) in mbedtls_rsa_check_pubkey()
187 mbedtls_mpi_cmp_mpi( &ctx->E, &ctx->N ) >= 0 ) in mbedtls_rsa_check_pubkey()
229 if( mbedtls_mpi_cmp_mpi( &PQ, &ctx->N ) != 0 || in mbedtls_rsa_check_privkey()
266 if( mbedtls_mpi_cmp_mpi( &pub->N, &prv->N ) != 0 || in mbedtls_rsa_check_pub_priv()
[all …]
Decp.c334 mbedtls_mpi_free( &grp->N ); in mbedtls_ecp_group_free()
663 static int ecp_modp( mbedtls_mpi *N, const mbedtls_ecp_group *grp ) in ecp_modp() argument
668 return( mbedtls_mpi_mod_mpi( N, N, &grp->P ) ); in ecp_modp()
671 if( ( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) || in ecp_modp()
672 mbedtls_mpi_bitlen( N ) > 2 * grp->pbits ) in ecp_modp()
677 MBEDTLS_MPI_CHK( grp->modp( N ) ); in ecp_modp()
680 while( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) in ecp_modp()
681 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( N, N, &grp->P ) ); in ecp_modp()
683 while( mbedtls_mpi_cmp_mpi( N, &grp->P ) >= 0 ) in ecp_modp()
685 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_abs( N, N, &grp->P ) ); in ecp_modp()
[all …]
/net-tools-latest/mbedtls-2.4.0/programs/pkey/
Dmpi_demo.c51 mbedtls_mpi E, P, Q, N, H, D, X, Y, Z; in main() local
53 mbedtls_mpi_init( &E ); mbedtls_mpi_init( &P ); mbedtls_mpi_init( &Q ); mbedtls_mpi_init( &N ); in main()
60 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &N, &P, &Q ) ); in main()
63 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( " N = ", &N, 10, NULL ) ); in main()
82 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &Y, &X, &E, &N, NULL ) ); in main()
83 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &Z, &Y, &D, &N, NULL ) ); in main()
92 mbedtls_mpi_free( &E ); mbedtls_mpi_free( &P ); mbedtls_mpi_free( &Q ); mbedtls_mpi_free( &N ); in main()
Drsa_verify.c88 if( ( ret = mbedtls_mpi_read_file( &rsa.N, 16, f ) ) != 0 || in main()
96 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
Drsa_genkey.c108 if( ( ret = mbedtls_mpi_write_file( "N = ", &rsa.N, 16, fpub ) ) != 0 || in main()
125 if( ( ret = mbedtls_mpi_write_file( "N = " , &rsa.N , 16, fpriv ) ) != 0 || in main()
Drsa_pub.txt1 N = A1D46FBA2318F8DCEF16C280948B1CF27966B9B47225ED2989F8D74B45BD36049C0AAB5AD0FF003553BA843C8E12782…
Drsa_encrypt.c115 if( ( return_val = mbedtls_mpi_read_file( &rsa.N, 16, f ) ) != 0 || in main()
125 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
Drsa_sign.c90 if( ( ret = mbedtls_mpi_read_file( &rsa.N , 16, f ) ) != 0 || in main()
104 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
Drsa_priv.txt1 N = A1D46FBA2318F8DCEF16C280948B1CF27966B9B47225ED2989F8D74B45BD36049C0AAB5AD0FF003553BA843C8E12782…
Drsa_decrypt.c116 if( ( return_val = mbedtls_mpi_read_file( &rsa.N , 16, f ) ) != 0 || in main()
132 rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3; in main()
/net-tools-latest/libcoap/include/coap/
Dpdu.h96 #define COAP_RESPONSE_CODE(N) (((N)/100 << 5) | (N)%100) argument
/net-tools-latest/mbedtls-2.4.0/tests/data_files/
Dserver9.req.sha38411 5MzolOYyT+N+QFGV0pdCNpX7QppfNdFyFAmWXa171RzG
Dserver1.req.cert_type10 MBMwEQYJYIZIAYb4QgEBBAQDAgBAMA0GCSqGSIb3DQEBBQUAA4IBAQB95Pkjpg/N
/net-tools-latest/mbedtls-2.4.0/programs/test/
Dssl_cert_test.c217 ret = mbedtls_mpi_cmp_mpi(&mbedtls_pk_rsa( pk )->N, &mbedtls_pk_rsa( clicert.pk )->N); in main()
/net-tools-latest/mbedtls-2.4.0/tests/data_files/dir4/
Dcert13.crt10 N+7aasTQmDGWGOt7fk7AEl0EI8lDvr2O/5q6ad9jRCkxyq3lJwRy+M3MdVKgA1On

12