Fix some dependencies in tests

This commit is contained in:
Manuel Pégourié-Gonnard 2013-09-18 18:54:01 +02:00
parent 92e5b59355
commit 387a211fad
13 changed files with 39 additions and 16 deletions

View File

@ -255,7 +255,7 @@ static int pk_get_rsapubkey( unsigned char **p,
POLARSSL_ERR_ASN1_LENGTH_MISMATCH ); POLARSSL_ERR_ASN1_LENGTH_MISMATCH );
if( ( ret = rsa_check_pubkey( rsa ) ) != 0 ) if( ( ret = rsa_check_pubkey( rsa ) ) != 0 )
return( ret ); return( POLARSSL_ERR_PK_INVALID_PUBKEY );
rsa->len = mpi_size( &rsa->N ); rsa->len = mpi_size( &rsa->N );

View File

@ -135,7 +135,7 @@ void aes_decrypt_cbc( char *hex_key_string, char *hex_iv_string,
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:POLARSSL_CIPHER_MODE_CFB */
void aes_encrypt_cfb128( char *hex_key_string, char *hex_iv_string, void aes_encrypt_cfb128( char *hex_key_string, char *hex_iv_string,
char *hex_src_string, char *hex_dst_string ) char *hex_src_string, char *hex_dst_string )
{ {
@ -166,7 +166,7 @@ void aes_encrypt_cfb128( char *hex_key_string, char *hex_iv_string,
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:POLARSSL_CIPHER_MODE_CFB */
void aes_decrypt_cfb128( char *hex_key_string, char *hex_iv_string, void aes_decrypt_cfb128( char *hex_key_string, char *hex_iv_string,
char *hex_src_string, char *hex_dst_string ) char *hex_src_string, char *hex_dst_string )
{ {
@ -197,7 +197,7 @@ void aes_decrypt_cfb128( char *hex_key_string, char *hex_iv_string,
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:POLARSSL_SELFTEST_C */
void aes_selftest() void aes_selftest()
{ {
TEST_ASSERT( aes_self_test( 0 ) == 0 ); TEST_ASSERT( aes_self_test( 0 ) == 0 );

View File

@ -47,7 +47,7 @@ void base64_decode( char *src_string, char *dst_string, int result )
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:POLARSSL_SELFTEST_C */
void base64_selftest() void base64_selftest()
{ {
TEST_ASSERT( base64_self_test( 0 ) == 0 ); TEST_ASSERT( base64_self_test( 0 ) == 0 );

View File

@ -479,7 +479,7 @@ void check_padding( int pad_mode, char *input_str, int ret, int dlen_check )
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:POLARSSL_SELFTEST_C */
void cipher_selftest() void cipher_selftest()
{ {
TEST_ASSERT( cipher_self_test( 0 ) == 0 ); TEST_ASSERT( cipher_self_test( 0 ) == 0 );

View File

@ -1,29 +1,39 @@
ECDH primitive random #1 ECDH primitive random #1
depends_on:POLARSSL_ECP_DP_SECP192R1_ENABLED
ecdh_primitive_random:POLARSSL_ECP_DP_SECP192R1 ecdh_primitive_random:POLARSSL_ECP_DP_SECP192R1
ECDH primitive random #2 ECDH primitive random #2
depends_on:POLARSSL_ECP_DP_SECP224R1_ENABLED
ecdh_primitive_random:POLARSSL_ECP_DP_SECP224R1 ecdh_primitive_random:POLARSSL_ECP_DP_SECP224R1
ECDH primitive random #3 ECDH primitive random #3
depends_on:POLARSSL_ECP_DP_SECP256R1_ENABLED
ecdh_primitive_random:POLARSSL_ECP_DP_SECP256R1 ecdh_primitive_random:POLARSSL_ECP_DP_SECP256R1
ECDH primitive random #4 ECDH primitive random #4
depends_on:POLARSSL_ECP_DP_SECP384R1_ENABLED
ecdh_primitive_random:POLARSSL_ECP_DP_SECP384R1 ecdh_primitive_random:POLARSSL_ECP_DP_SECP384R1
ECDH primitive random #5 ECDH primitive random #5
depends_on:POLARSSL_ECP_DP_SECP521R1_ENABLED
ecdh_primitive_random:POLARSSL_ECP_DP_SECP521R1 ecdh_primitive_random:POLARSSL_ECP_DP_SECP521R1
ECDH primitive rfc 5903 p256 ECDH primitive rfc 5903 p256
depends_on:POLARSSL_ECP_DP_SECP256R1_ENABLED
ecdh_primitive_testvec:POLARSSL_ECP_DP_SECP256R1:"C88F01F510D9AC3F70A292DAA2316DE544E9AAB8AFE84049C62A9C57862D1433":"DAD0B65394221CF9B051E1FECA5787D098DFE637FC90B9EF945D0C3772581180":"5271A0461CDB8252D61F1C456FA3E59AB1F45B33ACCF5F58389E0577B8990BB3":"C6EF9C5D78AE012A011164ACB397CE2088685D8F06BF9BE0B283AB46476BEE53":"D12DFB5289C8D4F81208B70270398C342296970A0BCCB74C736FC7554494BF63":"56FBF3CA366CC23E8157854C13C58D6AAC23F046ADA30F8353E74F33039872AB":"D6840F6B42F6EDAFD13116E0E12565202FEF8E9ECE7DCE03812464D04B9442DE" ecdh_primitive_testvec:POLARSSL_ECP_DP_SECP256R1:"C88F01F510D9AC3F70A292DAA2316DE544E9AAB8AFE84049C62A9C57862D1433":"DAD0B65394221CF9B051E1FECA5787D098DFE637FC90B9EF945D0C3772581180":"5271A0461CDB8252D61F1C456FA3E59AB1F45B33ACCF5F58389E0577B8990BB3":"C6EF9C5D78AE012A011164ACB397CE2088685D8F06BF9BE0B283AB46476BEE53":"D12DFB5289C8D4F81208B70270398C342296970A0BCCB74C736FC7554494BF63":"56FBF3CA366CC23E8157854C13C58D6AAC23F046ADA30F8353E74F33039872AB":"D6840F6B42F6EDAFD13116E0E12565202FEF8E9ECE7DCE03812464D04B9442DE"
ECDH primitive rfc 5903 p384 ECDH primitive rfc 5903 p384
depends_on:POLARSSL_ECP_DP_SECP384R1_ENABLED
ecdh_primitive_testvec:POLARSSL_ECP_DP_SECP384R1:"099F3C7034D4A2C699884D73A375A67F7624EF7C6B3C0F160647B67414DCE655E35B538041E649EE3FAEF896783AB194":"667842D7D180AC2CDE6F74F37551F55755C7645C20EF73E31634FE72B4C55EE6DE3AC808ACB4BDB4C88732AEE95F41AA":"9482ED1FC0EEB9CAFC4984625CCFC23F65032149E0E144ADA024181535A0F38EEB9FCFF3C2C947DAE69B4C634573A81C":"41CB0779B4BDB85D47846725FBEC3C9430FAB46CC8DC5060855CC9BDA0AA2942E0308312916B8ED2960E4BD55A7448FC":"E558DBEF53EECDE3D3FCCFC1AEA08A89A987475D12FD950D83CFA41732BC509D0D1AC43A0336DEF96FDA41D0774A3571":"DCFBEC7AACF3196472169E838430367F66EEBE3C6E70C416DD5F0C68759DD1FFF83FA40142209DFF5EAAD96DB9E6386C":"11187331C279962D93D604243FD592CB9D0A926F422E47187521287E7156C5C4D603135569B9E9D09CF5D4A270F59746" ecdh_primitive_testvec:POLARSSL_ECP_DP_SECP384R1:"099F3C7034D4A2C699884D73A375A67F7624EF7C6B3C0F160647B67414DCE655E35B538041E649EE3FAEF896783AB194":"667842D7D180AC2CDE6F74F37551F55755C7645C20EF73E31634FE72B4C55EE6DE3AC808ACB4BDB4C88732AEE95F41AA":"9482ED1FC0EEB9CAFC4984625CCFC23F65032149E0E144ADA024181535A0F38EEB9FCFF3C2C947DAE69B4C634573A81C":"41CB0779B4BDB85D47846725FBEC3C9430FAB46CC8DC5060855CC9BDA0AA2942E0308312916B8ED2960E4BD55A7448FC":"E558DBEF53EECDE3D3FCCFC1AEA08A89A987475D12FD950D83CFA41732BC509D0D1AC43A0336DEF96FDA41D0774A3571":"DCFBEC7AACF3196472169E838430367F66EEBE3C6E70C416DD5F0C68759DD1FFF83FA40142209DFF5EAAD96DB9E6386C":"11187331C279962D93D604243FD592CB9D0A926F422E47187521287E7156C5C4D603135569B9E9D09CF5D4A270F59746"
ECDH primitive rfc 5903 p521 ECDH primitive rfc 5903 p521
depends_on:POLARSSL_ECP_DP_SECP521R1_ENABLED
ecdh_primitive_testvec:POLARSSL_ECP_DP_SECP521R1:"0037ADE9319A89F4DABDB3EF411AACCCA5123C61ACAB57B5393DCE47608172A095AA85A30FE1C2952C6771D937BA9777F5957B2639BAB072462F68C27A57382D4A52":"0015417E84DBF28C0AD3C278713349DC7DF153C897A1891BD98BAB4357C9ECBEE1E3BF42E00B8E380AEAE57C2D107564941885942AF5A7F4601723C4195D176CED3E":"017CAE20B6641D2EEB695786D8C946146239D099E18E1D5A514C739D7CB4A10AD8A788015AC405D7799DC75E7B7D5B6CF2261A6A7F1507438BF01BEB6CA3926F9582":"0145BA99A847AF43793FDD0E872E7CDFA16BE30FDC780F97BCCC3F078380201E9C677D600B343757A3BDBF2A3163E4C2F869CCA7458AA4A4EFFC311F5CB151685EB9":"00D0B3975AC4B799F5BEA16D5E13E9AF971D5E9B984C9F39728B5E5739735A219B97C356436ADC6E95BB0352F6BE64A6C2912D4EF2D0433CED2B6171640012D9460F":"015C68226383956E3BD066E797B623C27CE0EAC2F551A10C2C724D9852077B87220B6536C5C408A1D2AEBB8E86D678AE49CB57091F4732296579AB44FCD17F0FC56A":"01144C7D79AE6956BC8EDB8E7C787C4521CB086FA64407F97894E5E6B2D79B04D1427E73CA4BAA240A34786859810C06B3C715A3A8CC3151F2BEE417996D19F3DDEA" ecdh_primitive_testvec:POLARSSL_ECP_DP_SECP521R1:"0037ADE9319A89F4DABDB3EF411AACCCA5123C61ACAB57B5393DCE47608172A095AA85A30FE1C2952C6771D937BA9777F5957B2639BAB072462F68C27A57382D4A52":"0015417E84DBF28C0AD3C278713349DC7DF153C897A1891BD98BAB4357C9ECBEE1E3BF42E00B8E380AEAE57C2D107564941885942AF5A7F4601723C4195D176CED3E":"017CAE20B6641D2EEB695786D8C946146239D099E18E1D5A514C739D7CB4A10AD8A788015AC405D7799DC75E7B7D5B6CF2261A6A7F1507438BF01BEB6CA3926F9582":"0145BA99A847AF43793FDD0E872E7CDFA16BE30FDC780F97BCCC3F078380201E9C677D600B343757A3BDBF2A3163E4C2F869CCA7458AA4A4EFFC311F5CB151685EB9":"00D0B3975AC4B799F5BEA16D5E13E9AF971D5E9B984C9F39728B5E5739735A219B97C356436ADC6E95BB0352F6BE64A6C2912D4EF2D0433CED2B6171640012D9460F":"015C68226383956E3BD066E797B623C27CE0EAC2F551A10C2C724D9852077B87220B6536C5C408A1D2AEBB8E86D678AE49CB57091F4732296579AB44FCD17F0FC56A":"01144C7D79AE6956BC8EDB8E7C787C4521CB086FA64407F97894E5E6B2D79B04D1427E73CA4BAA240A34786859810C06B3C715A3A8CC3151F2BEE417996D19F3DDEA"
ECDH exchange #1 ECDH exchange #1
depends_on:POLARSSL_ECP_DP_SECP192R1_ENABLED
ecdh_exchange:POLARSSL_ECP_DP_SECP192R1 ecdh_exchange:POLARSSL_ECP_DP_SECP192R1
ECDH exchange #2 ECDH exchange #2
depends_on:POLARSSL_ECP_DP_SECP521R1_ENABLED
ecdh_exchange:POLARSSL_ECP_DP_SECP521R1 ecdh_exchange:POLARSSL_ECP_DP_SECP521R1

View File

@ -1,38 +1,51 @@
ECDSA primitive random #1 ECDSA primitive random #1
depends_on:POLARSSL_ECP_DP_SECP192R1_ENABLED
ecdsa_prim_random:POLARSSL_ECP_DP_SECP192R1 ecdsa_prim_random:POLARSSL_ECP_DP_SECP192R1
ECDSA primitive random #2 ECDSA primitive random #2
depends_on:POLARSSL_ECP_DP_SECP224R1_ENABLED
ecdsa_prim_random:POLARSSL_ECP_DP_SECP224R1 ecdsa_prim_random:POLARSSL_ECP_DP_SECP224R1
ECDSA primitive random #3 ECDSA primitive random #3
depends_on:POLARSSL_ECP_DP_SECP256R1_ENABLED
ecdsa_prim_random:POLARSSL_ECP_DP_SECP256R1 ecdsa_prim_random:POLARSSL_ECP_DP_SECP256R1
ECDSA primitive random #4 ECDSA primitive random #4
depends_on:POLARSSL_ECP_DP_SECP384R1_ENABLED
ecdsa_prim_random:POLARSSL_ECP_DP_SECP384R1 ecdsa_prim_random:POLARSSL_ECP_DP_SECP384R1
ECDSA primitive random #5 ECDSA primitive random #5
depends_on:POLARSSL_ECP_DP_SECP521R1_ENABLED
ecdsa_prim_random:POLARSSL_ECP_DP_SECP521R1 ecdsa_prim_random:POLARSSL_ECP_DP_SECP521R1
ECDSA primitive rfc 4754 p256 ECDSA primitive rfc 4754 p256
depends_on:POLARSSL_ECP_DP_SECP256R1_ENABLED
ecdsa_prim_test_vectors:POLARSSL_ECP_DP_SECP256R1:"DC51D3866A15BACDE33D96F992FCA99DA7E6EF0934E7097559C27F1614C88A7F":"2442A5CC0ECD015FA3CA31DC8E2BBC70BF42D60CBCA20085E0822CB04235E970":"6FC98BD7E50211A4A27102FA3549DF79EBCB4BF246B80945CDDFE7D509BBFD7D":"9E56F509196784D963D1C0A401510EE7ADA3DCC5DEE04B154BF61AF1D5A6DECE":"BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD":"CB28E0999B9C7715FD0A80D8E47A77079716CBBF917DD72E97566EA1C066957C":"86FA3BB4E26CAD5BF90B7F81899256CE7594BB1EA0C89212748BFF3B3D5B0315" ecdsa_prim_test_vectors:POLARSSL_ECP_DP_SECP256R1:"DC51D3866A15BACDE33D96F992FCA99DA7E6EF0934E7097559C27F1614C88A7F":"2442A5CC0ECD015FA3CA31DC8E2BBC70BF42D60CBCA20085E0822CB04235E970":"6FC98BD7E50211A4A27102FA3549DF79EBCB4BF246B80945CDDFE7D509BBFD7D":"9E56F509196784D963D1C0A401510EE7ADA3DCC5DEE04B154BF61AF1D5A6DECE":"BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD":"CB28E0999B9C7715FD0A80D8E47A77079716CBBF917DD72E97566EA1C066957C":"86FA3BB4E26CAD5BF90B7F81899256CE7594BB1EA0C89212748BFF3B3D5B0315"
ECDSA primitive rfc 4754 p384 ECDSA primitive rfc 4754 p384
depends_on:POLARSSL_ECP_DP_SECP256R1_ENABLED
ecdsa_prim_test_vectors:POLARSSL_ECP_DP_SECP384R1:"0BEB646634BA87735D77AE4809A0EBEA865535DE4C1E1DCB692E84708E81A5AF62E528C38B2A81B35309668D73524D9F":"96281BF8DD5E0525CA049C048D345D3082968D10FEDF5C5ACA0C64E6465A97EA5CE10C9DFEC21797415710721F437922":"447688BA94708EB6E2E4D59F6AB6D7EDFF9301D249FE49C33096655F5D502FAD3D383B91C5E7EDAA2B714CC99D5743CA":"B4B74E44D71A13D568003D7489908D564C7761E229C58CBFA18950096EB7463B854D7FA992F934D927376285E63414FA":"CB00753F45A35E8BB5A03D699AC65007272C32AB0EDED1631A8B605A43FF5BED8086072BA1E7CC2358BAECA134C825A7":"FB017B914E29149432D8BAC29A514640B46F53DDAB2C69948084E2930F1C8F7E08E07C9C63F2D21A07DCB56A6AF56EB3":"B263A1305E057F984D38726A1B46874109F417BCA112674C528262A40A629AF1CBB9F516CE0FA7D2FF630863A00E8B9F" ecdsa_prim_test_vectors:POLARSSL_ECP_DP_SECP384R1:"0BEB646634BA87735D77AE4809A0EBEA865535DE4C1E1DCB692E84708E81A5AF62E528C38B2A81B35309668D73524D9F":"96281BF8DD5E0525CA049C048D345D3082968D10FEDF5C5ACA0C64E6465A97EA5CE10C9DFEC21797415710721F437922":"447688BA94708EB6E2E4D59F6AB6D7EDFF9301D249FE49C33096655F5D502FAD3D383B91C5E7EDAA2B714CC99D5743CA":"B4B74E44D71A13D568003D7489908D564C7761E229C58CBFA18950096EB7463B854D7FA992F934D927376285E63414FA":"CB00753F45A35E8BB5A03D699AC65007272C32AB0EDED1631A8B605A43FF5BED8086072BA1E7CC2358BAECA134C825A7":"FB017B914E29149432D8BAC29A514640B46F53DDAB2C69948084E2930F1C8F7E08E07C9C63F2D21A07DCB56A6AF56EB3":"B263A1305E057F984D38726A1B46874109F417BCA112674C528262A40A629AF1CBB9F516CE0FA7D2FF630863A00E8B9F"
ECDSA primitive rfc 4754 p521 ECDSA primitive rfc 4754 p521
depends_on:POLARSSL_ECP_DP_SECP521R1_ENABLED
ecdsa_prim_test_vectors:POLARSSL_ECP_DP_SECP521R1:"0065FDA3409451DCAB0A0EAD45495112A3D813C17BFD34BDF8C1209D7DF5849120597779060A7FF9D704ADF78B570FFAD6F062E95C7E0C5D5481C5B153B48B375FA1":"0151518F1AF0F563517EDD5485190DF95A4BF57B5CBA4CF2A9A3F6474725A35F7AFE0A6DDEB8BEDBCD6A197E592D40188901CECD650699C9B5E456AEA5ADD19052A8":"006F3B142EA1BFFF7E2837AD44C9E4FF6D2D34C73184BBAD90026DD5E6E85317D9DF45CAD7803C6C20035B2F3FF63AFF4E1BA64D1C077577DA3F4286C58F0AEAE643":"00C1C2B305419F5A41344D7E4359933D734096F556197A9B244342B8B62F46F9373778F9DE6B6497B1EF825FF24F42F9B4A4BD7382CFC3378A540B1B7F0C1B956C2F":"DDAF35A193617ABACC417349AE20413112E6FA4E89A97EA20A9EEEE64B55D39A2192992A274FC1A836BA3C23A3FEEBBD454D4423643CE80E2A9AC94FA54CA49F":"0154FD3836AF92D0DCA57DD5341D3053988534FDE8318FC6AAAAB68E2E6F4339B19F2F281A7E0B22C269D93CF8794A9278880ED7DBB8D9362CAEACEE544320552251":"017705A7030290D1CEB605A9A1BB03FF9CDD521E87A696EC926C8C10C8362DF4975367101F67D1CF9BCCBF2F3D239534FA509E70AAC851AE01AAC68D62F866472660" ecdsa_prim_test_vectors:POLARSSL_ECP_DP_SECP521R1:"0065FDA3409451DCAB0A0EAD45495112A3D813C17BFD34BDF8C1209D7DF5849120597779060A7FF9D704ADF78B570FFAD6F062E95C7E0C5D5481C5B153B48B375FA1":"0151518F1AF0F563517EDD5485190DF95A4BF57B5CBA4CF2A9A3F6474725A35F7AFE0A6DDEB8BEDBCD6A197E592D40188901CECD650699C9B5E456AEA5ADD19052A8":"006F3B142EA1BFFF7E2837AD44C9E4FF6D2D34C73184BBAD90026DD5E6E85317D9DF45CAD7803C6C20035B2F3FF63AFF4E1BA64D1C077577DA3F4286C58F0AEAE643":"00C1C2B305419F5A41344D7E4359933D734096F556197A9B244342B8B62F46F9373778F9DE6B6497B1EF825FF24F42F9B4A4BD7382CFC3378A540B1B7F0C1B956C2F":"DDAF35A193617ABACC417349AE20413112E6FA4E89A97EA20A9EEEE64B55D39A2192992A274FC1A836BA3C23A3FEEBBD454D4423643CE80E2A9AC94FA54CA49F":"0154FD3836AF92D0DCA57DD5341D3053988534FDE8318FC6AAAAB68E2E6F4339B19F2F281A7E0B22C269D93CF8794A9278880ED7DBB8D9362CAEACEE544320552251":"017705A7030290D1CEB605A9A1BB03FF9CDD521E87A696EC926C8C10C8362DF4975367101F67D1CF9BCCBF2F3D239534FA509E70AAC851AE01AAC68D62F866472660"
ECDSA write-read random #1 ECDSA write-read random #1
depends_on:POLARSSL_ECP_DP_SECP192R1_ENABLED
ecdsa_write_read_random:POLARSSL_ECP_DP_SECP192R1 ecdsa_write_read_random:POLARSSL_ECP_DP_SECP192R1
ECDSA write-read random #2 ECDSA write-read random #2
depends_on:POLARSSL_ECP_DP_SECP224R1_ENABLED
ecdsa_write_read_random:POLARSSL_ECP_DP_SECP224R1 ecdsa_write_read_random:POLARSSL_ECP_DP_SECP224R1
ECDSA write-read random #3 ECDSA write-read random #3
depends_on:POLARSSL_ECP_DP_SECP256R1_ENABLED
ecdsa_write_read_random:POLARSSL_ECP_DP_SECP256R1 ecdsa_write_read_random:POLARSSL_ECP_DP_SECP256R1
ECDSA write-read random #4 ECDSA write-read random #4
depends_on:POLARSSL_ECP_DP_SECP384R1_ENABLED
ecdsa_write_read_random:POLARSSL_ECP_DP_SECP384R1 ecdsa_write_read_random:POLARSSL_ECP_DP_SECP384R1
ECDSA write-read random #5 ECDSA write-read random #5
depends_on:POLARSSL_ECP_DP_SECP521R1_ENABLED
ecdsa_write_read_random:POLARSSL_ECP_DP_SECP521R1 ecdsa_write_read_random:POLARSSL_ECP_DP_SECP521R1

View File

@ -515,7 +515,7 @@ void ecp_gen_keypair( int id )
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:POLARSSL_SELFTEST_C */
void ecp_selftest() void ecp_selftest()
{ {
TEST_ASSERT( ecp_self_test( 0 ) == 0 ); TEST_ASSERT( ecp_self_test( 0 ) == 0 );

View File

@ -108,7 +108,7 @@ void gcm_decrypt_and_verify( char *hex_key_string, char *hex_src_string,
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:POLARSSL_SELFTEST_C */
void gcm_selftest() void gcm_selftest()
{ {
TEST_ASSERT( gcm_self_test( 0 ) == 0 ); TEST_ASSERT( gcm_self_test( 0 ) == 0 );

View File

@ -681,7 +681,7 @@ void mpi_shift_r( int radix_X, char *input_X, int shift_X, int radix_A,
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:POLARSSL_SELFTEST_C */
void mpi_selftest() void mpi_selftest()
{ {
TEST_ASSERT( mpi_self_test( 0 ) == 0 ); TEST_ASSERT( mpi_self_test( 0 ) == 0 );

View File

@ -189,21 +189,21 @@ void sha512_file( char *filename, char *hex_hash_string )
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE depends_on:POLARSSL_SHA1_C */ /* BEGIN_CASE depends_on:POLARSSL_SHA1_C:POLARSSL_SELFTEST_C */
void sha1_selftest() void sha1_selftest()
{ {
TEST_ASSERT( sha1_self_test( 0 ) == 0 ); TEST_ASSERT( sha1_self_test( 0 ) == 0 );
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE depends_on:POLARSSL_SHA256_C */ /* BEGIN_CASE depends_on:POLARSSL_SHA256_C:POLARSSL_SELFTEST_C */
void sha256_selftest() void sha256_selftest()
{ {
TEST_ASSERT( sha256_self_test( 0 ) == 0 ); TEST_ASSERT( sha256_self_test( 0 ) == 0 );
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE depends_on:POLARSSL_SHA512_C */ /* BEGIN_CASE depends_on:POLARSSL_SHA512_C:POLARSSL_SELFTEST_C */
void sha512_selftest() void sha512_selftest()
{ {
TEST_ASSERT( sha512_self_test( 0 ) == 0 ); TEST_ASSERT( sha512_self_test( 0 ) == 0 );

View File

@ -527,11 +527,11 @@ x509parse_crt:"30753073a0030201028204deadbeef300d06092a864886f70d0101020500300c3
X509 Certificate ASN1 (TBSCertificate, pubkey, check failed) X509 Certificate ASN1 (TBSCertificate, pubkey, check failed)
depends_on:POLARSSL_RSA_C depends_on:POLARSSL_RSA_C
x509parse_crt:"30743072a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374301c300d06092A864886F70D0101010500030b0030080202ffff0202ffff":"":POLARSSL_ERR_RSA_KEY_CHECK_FAILED x509parse_crt:"30743072a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374301c300d06092A864886F70D0101010500030b0030080202ffff0202ffff":"":POLARSSL_ERR_PK_INVALID_PUBKEY
X509 Certificate ASN1 (TBSCertificate, pubkey, check failed, expanded length notation) X509 Certificate ASN1 (TBSCertificate, pubkey, check failed, expanded length notation)
depends_on:POLARSSL_RSA_C depends_on:POLARSSL_RSA_C
x509parse_crt:"308183308180a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210fffffffffffffffffffffffffffffffe0202ffff":"":POLARSSL_ERR_RSA_KEY_CHECK_FAILED x509parse_crt:"308183308180a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210fffffffffffffffffffffffffffffffe0202ffff":"":POLARSSL_ERR_PK_INVALID_PUBKEY
X509 Certificate ASN1 (TBSCertificate v3, Optional UIDs, Extensions not present) X509 Certificate ASN1 (TBSCertificate v3, Optional UIDs, Extensions not present)
depends_on:POLARSSL_RSA_C depends_on:POLARSSL_RSA_C

View File

@ -224,7 +224,7 @@ void x509parse_crl( char *crl_data, char *result_str, int result )
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE depends_on:POLARSSL_X509_CRT_PARSE_C */ /* BEGIN_CASE depends_on:POLARSSL_X509_CRT_PARSE_C:POLARSSL_SELFTEST_C */
void x509_selftest() void x509_selftest()
{ {
TEST_ASSERT( x509_self_test( 0 ) == 0 ); TEST_ASSERT( x509_self_test( 0 ) == 0 );

View File

@ -3,7 +3,7 @@
/* END_HEADER */ /* END_HEADER */
/* BEGIN_DEPENDENCIES /* BEGIN_DEPENDENCIES
*depends_on:POLARSSL_XTEA_C * depends_on:POLARSSL_XTEA_C
* END_DEPENDENCIES * END_DEPENDENCIES
*/ */