228 lines
11 KiB
Text
228 lines
11 KiB
Text
Parse RSA Key #1 (No password when required)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/test-ca.key":"NULL":MBEDTLS_ERR_PK_PASSWORD_REQUIRED
|
|
|
|
Parse RSA Key #2 (Correct password)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/test-ca.key":"PolarSSLTest":0
|
|
|
|
Parse RSA Key #3 (Wrong password)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/test-ca.key":"PolarSSLWRONG":MBEDTLS_ERR_PK_PASSWORD_MISMATCH
|
|
|
|
Parse RSA Key #4 (DES Encrypted)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_DES_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/keyfile.des":"testkey":0
|
|
|
|
Parse RSA Key #5 (3DES Encrypted)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_DES_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/keyfile.3des":"testkey":0
|
|
|
|
Parse RSA Key #6 (AES-128 Encrypted)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_AES_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/keyfile.aes128":"testkey":0
|
|
|
|
Parse RSA Key #7 (AES-192 Encrypted)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_AES_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/keyfile.aes192":"testkey":0
|
|
|
|
Parse RSA Key #8 (AES-256 Encrypted)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_AES_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/keyfile.aes256":"testkey":0
|
|
|
|
Parse RSA Key #9 (PKCS#8 wrapped)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_PEM_PARSE_C
|
|
pk_parse_keyfile_rsa:"data_files/format_gen.key":"":0
|
|
|
|
Parse RSA Key #10 (PKCS#8 encrypted SHA1-3DES)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS12_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_3des.key":"PolarSSLTest":0
|
|
|
|
Parse RSA Key #10.1 (PKCS#8 encrypted SHA1-3DES, wrong PW)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS12_C:MBEDTLS_CIPHER_MODE_CBC:MBEDTLS_CIPHER_PADDING_PKCS7
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_3des.key":"PolarSSLTes":MBEDTLS_ERR_PK_PASSWORD_MISMATCH
|
|
|
|
Parse RSA Key #10.2 (PKCS#8 encrypted SHA1-3DES, no PW)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS12_C
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_3des.key":"":MBEDTLS_ERR_PK_PASSWORD_REQUIRED
|
|
|
|
Parse RSA Key #11 (PKCS#8 encrypted SHA1-3DES DER)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PKCS12_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_3des.der":"PolarSSLTest":0
|
|
|
|
Parse RSA Key #12 (PKCS#8 encrypted SHA1-2DES)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS12_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_2des.key":"PolarSSLTest":0
|
|
|
|
Parse RSA Key #12.1 (PKCS#8 encrypted SHA1-2DES, wrong PW)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS12_C:MBEDTLS_CIPHER_MODE_CBC:MBEDTLS_CIPHER_PADDING_PKCS7
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_2des.key":"PolarSLTest":MBEDTLS_ERR_PK_PASSWORD_MISMATCH
|
|
|
|
Parse RSA Key #12.2 (PKCS#8 encrypted SHA1-2DES, no PW)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS12_C
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_2des.key":"":MBEDTLS_ERR_PK_PASSWORD_REQUIRED
|
|
|
|
Parse RSA Key #13 (PKCS#8 encrypted SHA1-RC4-128)
|
|
depends_on:MBEDTLS_ARC4_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS12_C
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_rc4_128.key":"PolarSSLTest":0
|
|
|
|
Parse RSA Key #13.1 (PKCS#8 encrypted SHA1-RC4-128, wrong PW)
|
|
depends_on:MBEDTLS_ARC4_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS12_C
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_rc4_128.key":"PolarSSLTe":MBEDTLS_ERR_PK_PASSWORD_MISMATCH
|
|
|
|
Parse RSA Key #13.2 (PKCS#8 encrypted SHA1-RC4-128, no PW)
|
|
depends_on:MBEDTLS_ARC4_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS12_C
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_rc4_128.key":"":MBEDTLS_ERR_PK_PASSWORD_REQUIRED
|
|
|
|
Parse RSA Key #14 (PKCS#8 encrypted v2 PBDFK2 3DES)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS5_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.key":"PolarSSLTest":0
|
|
|
|
Parse RSA Key #15 (PKCS#8 encrypted v2 PBDFK2 3DES, wrong PW)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS5_C:MBEDTLS_CIPHER_MODE_CBC:MBEDTLS_CIPHER_PADDING_PKCS7
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.key":"PolarSSLTes":MBEDTLS_ERR_PK_PASSWORD_MISMATCH
|
|
|
|
Parse RSA Key #16 (PKCS#8 encrypted v2 PBDFK2 3DES, no PW)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS5_C
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.key":"":MBEDTLS_ERR_PK_PASSWORD_REQUIRED
|
|
|
|
Parse RSA Key #17 (PKCS#8 encrypted v2 PBDFK2 3DES DER)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PKCS5_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.der":"PolarSSLTest":0
|
|
|
|
Parse RSA Key #18 (PKCS#8 encrypted v2 PBDFK2 3DES DER, wrong PW)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PKCS5_C:MBEDTLS_CIPHER_MODE_CBC:MBEDTLS_CIPHER_PADDING_PKCS7
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.der":"PolarSSLTes":MBEDTLS_ERR_PK_PASSWORD_MISMATCH
|
|
|
|
Parse RSA Key #19 (PKCS#8 encrypted v2 PBDFK2 3DES DER, no PW)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PKCS5_C
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.der":"":MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
|
|
|
|
Parse RSA Key #20 (PKCS#8 encrypted v2 PBDFK2 DES)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_PKCS5_C:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_des.key":"PolarSSLTest":0
|
|
|
|
Parse Public RSA Key #1 (PKCS#8 wrapped)
|
|
depends_on:MBEDTLS_MD5_C:MBEDTLS_PEM_PARSE_C
|
|
pk_parse_public_keyfile_rsa:"data_files/format_gen.pub":0
|
|
|
|
Parse Public EC Key #1 (RFC 5480, DER)
|
|
depends_on:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
pk_parse_public_keyfile_ec:"data_files/ec_pub.der":0
|
|
|
|
Parse Public EC Key #2 (RFC 5480, PEM)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
pk_parse_public_keyfile_ec:"data_files/ec_pub.pem":0
|
|
|
|
Parse Public EC Key #3 (RFC 5480, secp224r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP224R1_ENABLED
|
|
pk_parse_public_keyfile_ec:"data_files/ec_224_pub.pem":0
|
|
|
|
Parse Public EC Key #4 (RFC 5480, secp256r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
|
pk_parse_public_keyfile_ec:"data_files/ec_256_pub.pem":0
|
|
|
|
Parse Public EC Key #5 (RFC 5480, secp384r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
|
pk_parse_public_keyfile_ec:"data_files/ec_384_pub.pem":0
|
|
|
|
Parse Public EC Key #6 (RFC 5480, secp521r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP521R1_ENABLED
|
|
pk_parse_public_keyfile_ec:"data_files/ec_521_pub.pem":0
|
|
|
|
Parse Public EC Key #7 (RFC 5480, brainpoolP256r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_BP256R1_ENABLED
|
|
pk_parse_public_keyfile_ec:"data_files/ec_bp256_pub.pem":0
|
|
|
|
Parse Public EC Key #8 (RFC 5480, brainpoolP384r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_BP384R1_ENABLED
|
|
pk_parse_public_keyfile_ec:"data_files/ec_bp384_pub.pem":0
|
|
|
|
Parse Public EC Key #9 (RFC 5480, brainpoolP512r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_BP512R1_ENABLED
|
|
pk_parse_public_keyfile_ec:"data_files/ec_bp512_pub.pem":0
|
|
|
|
Parse EC Key #1 (SEC1 DER)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_prv.sec1.der":"NULL":0
|
|
|
|
Parse EC Key #1a (SEC1 DER, no optional part)
|
|
depends_on:POLARSSL_PEM_PARSE_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP256R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_prv.noopt.der":"NULL":0
|
|
|
|
Parse EC Key #2 (SEC1 PEM)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_prv.sec1.pem":"NULL":0
|
|
|
|
Parse EC Key #3 (SEC1 PEM encrypted)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED:MBEDTLS_CIPHER_MODE_CBC
|
|
pk_parse_keyfile_ec:"data_files/ec_prv.sec1.pw.pem":"polar":0
|
|
|
|
Parse EC Key #4 (PKCS8 DER)
|
|
depends_on:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_prv.pk8.der":"NULL":0
|
|
|
|
Parse EC Key #5 (PKCS8 PEM)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_prv.pk8.pem":"NULL":0
|
|
|
|
Parse EC Key #6 (PKCS8 encrypted DER)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_prv.pk8.pw.der":"polar":0
|
|
|
|
Parse EC Key #7 (PKCS8 encrypted PEM)
|
|
depends_on:MBEDTLS_DES_C:MBEDTLS_SHA1_C:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_prv.pk8.pw.pem":"polar":0
|
|
|
|
Parse EC Key #8 (SEC1 PEM, secp224r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP224R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_224_prv.pem":"NULL":0
|
|
|
|
Parse EC Key #9 (SEC1 PEM, secp256r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_256_prv.pem":"NULL":0
|
|
|
|
Parse EC Key #10 (SEC1 PEM, secp384r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_384_prv.pem":"NULL":0
|
|
|
|
Parse EC Key #11 (SEC1 PEM, secp521r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP521R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_521_prv.pem":"NULL":0
|
|
|
|
Parse EC Key #12 (SEC1 PEM, bp256r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_BP256R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_bp256_prv.pem":"NULL":0
|
|
|
|
Parse EC Key #13 (SEC1 PEM, bp384r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_BP384R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_bp384_prv.pem":"NULL":0
|
|
|
|
Parse EC Key #14 (SEC1 PEM, bp512r1)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_BP512R1_ENABLED
|
|
pk_parse_keyfile_ec:"data_files/ec_bp512_prv.pem":"NULL":0
|
|
|
|
Parse EC Key #15 (SEC1 DER, secp256k1, SpecifiedECDomain)
|
|
depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP256K1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED
|
|
pk_parse_keyfile_ec:"data_files/ec_prv.specdom.der":"NULL":0
|
|
|
|
Key ASN1 (Incorrect first tag)
|
|
pk_parse_key_rsa:"":"":MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
|
|
|
|
Key ASN1 (RSAPrivateKey, incorrect version tag)
|
|
pk_parse_key_rsa:"300100":"":MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
|
|
|
|
Key ASN1 (RSAPrivateKey, version tag missing)
|
|
pk_parse_key_rsa:"3000":"":MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
|
|
|
|
Key ASN1 (RSAPrivateKey, invalid version)
|
|
pk_parse_key_rsa:"3003020101":"":MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
|
|
|
|
Key ASN1 (RSAPrivateKey, correct version, incorrect tag)
|
|
pk_parse_key_rsa:"300402010000":"":MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
|
|
|
|
Key ASN1 (RSAPrivateKey, values present, length mismatch)
|
|
pk_parse_key_rsa:"301c02010002010102010102010102010102010102010102010102010100":"":MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
|
|
|
|
Key ASN1 (RSAPrivateKey, values present, check_privkey fails)
|
|
pk_parse_key_rsa:"301b020100020101020101020101020101020101020101020101020101":"":MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
|