Example program to test AES-GCM functionality. Used for a workshop

Dependencies:   mbed

Committer:
HannesTschofenig
Date:
Thu Sep 27 06:34:22 2018 +0000
Revision:
0:796d0f61a05b
Example AES-GCM test program

Who changed what in which revision?

UserRevisionLine numberNew contents of line
HannesTschofenig 0:796d0f61a05b 1 /*
HannesTschofenig 0:796d0f61a05b 2 * X.509 test certificates
HannesTschofenig 0:796d0f61a05b 3 *
HannesTschofenig 0:796d0f61a05b 4 * Copyright (C) 2006-2014, Brainspark B.V.
HannesTschofenig 0:796d0f61a05b 5 *
HannesTschofenig 0:796d0f61a05b 6 * This file is part of PolarSSL (http://www.polarssl.org)
HannesTschofenig 0:796d0f61a05b 7 * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
HannesTschofenig 0:796d0f61a05b 8 *
HannesTschofenig 0:796d0f61a05b 9 * All rights reserved.
HannesTschofenig 0:796d0f61a05b 10 *
HannesTschofenig 0:796d0f61a05b 11 * This program is free software; you can redistribute it and/or modify
HannesTschofenig 0:796d0f61a05b 12 * it under the terms of the GNU General Public License as published by
HannesTschofenig 0:796d0f61a05b 13 * the Free Software Foundation; either version 2 of the License, or
HannesTschofenig 0:796d0f61a05b 14 * (at your option) any later version.
HannesTschofenig 0:796d0f61a05b 15 *
HannesTschofenig 0:796d0f61a05b 16 * This program is distributed in the hope that it will be useful,
HannesTschofenig 0:796d0f61a05b 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
HannesTschofenig 0:796d0f61a05b 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
HannesTschofenig 0:796d0f61a05b 19 * GNU General Public License for more details.
HannesTschofenig 0:796d0f61a05b 20 *
HannesTschofenig 0:796d0f61a05b 21 * You should have received a copy of the GNU General Public License along
HannesTschofenig 0:796d0f61a05b 22 * with this program; if not, write to the Free Software Foundation, Inc.,
HannesTschofenig 0:796d0f61a05b 23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
HannesTschofenig 0:796d0f61a05b 24 */
HannesTschofenig 0:796d0f61a05b 25
HannesTschofenig 0:796d0f61a05b 26 #if !defined(POLARSSL_CONFIG_FILE)
HannesTschofenig 0:796d0f61a05b 27 #include "polarssl/config.h"
HannesTschofenig 0:796d0f61a05b 28 #else
HannesTschofenig 0:796d0f61a05b 29 #include POLARSSL_CONFIG_FILE
HannesTschofenig 0:796d0f61a05b 30 #endif
HannesTschofenig 0:796d0f61a05b 31
HannesTschofenig 0:796d0f61a05b 32 #if defined(POLARSSL_CERTS_C)
HannesTschofenig 0:796d0f61a05b 33
HannesTschofenig 0:796d0f61a05b 34 #if defined(POLARSSL_ECDSA_C)
HannesTschofenig 0:796d0f61a05b 35 #define TEST_CA_CRT_EC \
HannesTschofenig 0:796d0f61a05b 36 "-----BEGIN CERTIFICATE-----\r\n" \
HannesTschofenig 0:796d0f61a05b 37 "MIICUjCCAdegAwIBAgIJAMFD4n5iQ8zoMAoGCCqGSM49BAMCMD4xCzAJBgNVBAYT\r\n" \
HannesTschofenig 0:796d0f61a05b 38 "Ak5MMREwDwYDVQQKEwhQb2xhclNTTDEcMBoGA1UEAxMTUG9sYXJzc2wgVGVzdCBF\r\n" \
HannesTschofenig 0:796d0f61a05b 39 "QyBDQTAeFw0xMzA5MjQxNTQ5NDhaFw0yMzA5MjIxNTQ5NDhaMD4xCzAJBgNVBAYT\r\n" \
HannesTschofenig 0:796d0f61a05b 40 "Ak5MMREwDwYDVQQKEwhQb2xhclNTTDEcMBoGA1UEAxMTUG9sYXJzc2wgVGVzdCBF\r\n" \
HannesTschofenig 0:796d0f61a05b 41 "QyBDQTB2MBAGByqGSM49AgEGBSuBBAAiA2IABMPaKzRBN1gvh1b+/Im6KUNLTuBu\r\n" \
HannesTschofenig 0:796d0f61a05b 42 "ww5XUzM5WNRStJGVOQsj318XJGJI/BqVKc4sLYfCiFKAr9ZqqyHduNMcbli4yuiy\r\n" \
HannesTschofenig 0:796d0f61a05b 43 "aY7zQa0pw7RfdadHb9UZKVVpmlM7ILRmFmAzHqOBoDCBnTAdBgNVHQ4EFgQUnW0g\r\n" \
HannesTschofenig 0:796d0f61a05b 44 "JEkBPyvLeLUZvH4kydv7NnwwbgYDVR0jBGcwZYAUnW0gJEkBPyvLeLUZvH4kydv7\r\n" \
HannesTschofenig 0:796d0f61a05b 45 "NnyhQqRAMD4xCzAJBgNVBAYTAk5MMREwDwYDVQQKEwhQb2xhclNTTDEcMBoGA1UE\r\n" \
HannesTschofenig 0:796d0f61a05b 46 "AxMTUG9sYXJzc2wgVGVzdCBFQyBDQYIJAMFD4n5iQ8zoMAwGA1UdEwQFMAMBAf8w\r\n" \
HannesTschofenig 0:796d0f61a05b 47 "CgYIKoZIzj0EAwIDaQAwZgIxAMO0YnNWKJUAfXgSJtJxexn4ipg+kv4znuR50v56\r\n" \
HannesTschofenig 0:796d0f61a05b 48 "t4d0PCu412mUC6Nnd7izvtE2MgIxAP1nnJQjZ8BWukszFQDG48wxCCyci9qpdSMv\r\n" \
HannesTschofenig 0:796d0f61a05b 49 "uCjn8pwUOkABXK8Mss90fzCfCEOtIA==\r\n" \
HannesTschofenig 0:796d0f61a05b 50 "-----END CERTIFICATE-----\r\n"
HannesTschofenig 0:796d0f61a05b 51 const char test_ca_crt_ec[] = TEST_CA_CRT_EC;
HannesTschofenig 0:796d0f61a05b 52
HannesTschofenig 0:796d0f61a05b 53 const char test_ca_key_ec[] =
HannesTschofenig 0:796d0f61a05b 54 "-----BEGIN EC PRIVATE KEY-----\r\n"
HannesTschofenig 0:796d0f61a05b 55 "Proc-Type: 4,ENCRYPTED\r\n"
HannesTschofenig 0:796d0f61a05b 56 "DEK-Info: DES-EDE3-CBC,307EAB469933D64E\r\n"
HannesTschofenig 0:796d0f61a05b 57 "\r\n"
HannesTschofenig 0:796d0f61a05b 58 "IxbrRmKcAzctJqPdTQLA4SWyBYYGYJVkYEna+F7Pa5t5Yg/gKADrFKcm6B72e7DG\r\n"
HannesTschofenig 0:796d0f61a05b 59 "ihExtZI648s0zdYw6qSJ74vrPSuWDe5qm93BqsfVH9svtCzWHW0pm1p0KTBCFfUq\r\n"
HannesTschofenig 0:796d0f61a05b 60 "UsuWTITwJImcnlAs1gaRZ3sAWm7cOUidL0fo2G0fYUFNcYoCSLffCFTEHBuPnagb\r\n"
HannesTschofenig 0:796d0f61a05b 61 "a77x/sY1Bvii8S9/XhDTb6pTMx06wzrm\r\n"
HannesTschofenig 0:796d0f61a05b 62 "-----END EC PRIVATE KEY-----\r\n";
HannesTschofenig 0:796d0f61a05b 63
HannesTschofenig 0:796d0f61a05b 64 const char test_ca_pwd_ec[] = "PolarSSLTest";
HannesTschofenig 0:796d0f61a05b 65
HannesTschofenig 0:796d0f61a05b 66 const char test_srv_crt_ec[] =
HannesTschofenig 0:796d0f61a05b 67 "-----BEGIN CERTIFICATE-----\r\n"
HannesTschofenig 0:796d0f61a05b 68 "MIICHzCCAaWgAwIBAgIBCTAKBggqhkjOPQQDAjA+MQswCQYDVQQGEwJOTDERMA8G\r\n"
HannesTschofenig 0:796d0f61a05b 69 "A1UEChMIUG9sYXJTU0wxHDAaBgNVBAMTE1BvbGFyc3NsIFRlc3QgRUMgQ0EwHhcN\r\n"
HannesTschofenig 0:796d0f61a05b 70 "MTMwOTI0MTU1MjA0WhcNMjMwOTIyMTU1MjA0WjA0MQswCQYDVQQGEwJOTDERMA8G\r\n"
HannesTschofenig 0:796d0f61a05b 71 "A1UEChMIUG9sYXJTU0wxEjAQBgNVBAMTCWxvY2FsaG9zdDBZMBMGByqGSM49AgEG\r\n"
HannesTschofenig 0:796d0f61a05b 72 "CCqGSM49AwEHA0IABDfMVtl2CR5acj7HWS3/IG7ufPkGkXTQrRS192giWWKSTuUA\r\n"
HannesTschofenig 0:796d0f61a05b 73 "2CMR/+ov0jRdXRa9iojCa3cNVc2KKg76Aci07f+jgZ0wgZowCQYDVR0TBAIwADAd\r\n"
HannesTschofenig 0:796d0f61a05b 74 "BgNVHQ4EFgQUUGGlj9QH2deCAQzlZX+MY0anE74wbgYDVR0jBGcwZYAUnW0gJEkB\r\n"
HannesTschofenig 0:796d0f61a05b 75 "PyvLeLUZvH4kydv7NnyhQqRAMD4xCzAJBgNVBAYTAk5MMREwDwYDVQQKEwhQb2xh\r\n"
HannesTschofenig 0:796d0f61a05b 76 "clNTTDEcMBoGA1UEAxMTUG9sYXJzc2wgVGVzdCBFQyBDQYIJAMFD4n5iQ8zoMAoG\r\n"
HannesTschofenig 0:796d0f61a05b 77 "CCqGSM49BAMCA2gAMGUCMQCaLFzXptui5WQN8LlO3ddh1hMxx6tzgLvT03MTVK2S\r\n"
HannesTschofenig 0:796d0f61a05b 78 "C12r0Lz3ri/moSEpNZWqPjkCMCE2f53GXcYLqyfyJR078c/xNSUU5+Xxl7VZ414V\r\n"
HannesTschofenig 0:796d0f61a05b 79 "fGa5kHvHARBPc8YAIVIqDvHH1Q==\r\n"
HannesTschofenig 0:796d0f61a05b 80 "-----END CERTIFICATE-----\r\n";
HannesTschofenig 0:796d0f61a05b 81
HannesTschofenig 0:796d0f61a05b 82 const char test_srv_key_ec[] =
HannesTschofenig 0:796d0f61a05b 83 "-----BEGIN EC PRIVATE KEY-----\r\n"
HannesTschofenig 0:796d0f61a05b 84 "MHcCAQEEIPEqEyB2AnCoPL/9U/YDHvdqXYbIogTywwyp6/UfDw6noAoGCCqGSM49\r\n"
HannesTschofenig 0:796d0f61a05b 85 "AwEHoUQDQgAEN8xW2XYJHlpyPsdZLf8gbu58+QaRdNCtFLX3aCJZYpJO5QDYIxH/\r\n"
HannesTschofenig 0:796d0f61a05b 86 "6i/SNF1dFr2KiMJrdw1VzYoqDvoByLTt/w==\r\n"
HannesTschofenig 0:796d0f61a05b 87 "-----END EC PRIVATE KEY-----\r\n";
HannesTschofenig 0:796d0f61a05b 88
HannesTschofenig 0:796d0f61a05b 89 const char test_cli_crt_ec[] =
HannesTschofenig 0:796d0f61a05b 90 "-----BEGIN CERTIFICATE-----\r\n"
HannesTschofenig 0:796d0f61a05b 91 "MIICLDCCAbKgAwIBAgIBDTAKBggqhkjOPQQDAjA+MQswCQYDVQQGEwJOTDERMA8G\r\n"
HannesTschofenig 0:796d0f61a05b 92 "A1UEChMIUG9sYXJTU0wxHDAaBgNVBAMTE1BvbGFyc3NsIFRlc3QgRUMgQ0EwHhcN\r\n"
HannesTschofenig 0:796d0f61a05b 93 "MTMwOTI0MTU1MjA0WhcNMjMwOTIyMTU1MjA0WjBBMQswCQYDVQQGEwJOTDERMA8G\r\n"
HannesTschofenig 0:796d0f61a05b 94 "A1UEChMIUG9sYXJTU0wxHzAdBgNVBAMTFlBvbGFyU1NMIFRlc3QgQ2xpZW50IDIw\r\n"
HannesTschofenig 0:796d0f61a05b 95 "WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARX5a6xc9/TrLuTuIH/Eq7u5lOszlVT\r\n"
HannesTschofenig 0:796d0f61a05b 96 "9jQOzC7jYyUL35ji81xgNpbA1RgUcOV/n9VLRRjlsGzVXPiWj4dwo+THo4GdMIGa\r\n"
HannesTschofenig 0:796d0f61a05b 97 "MAkGA1UdEwQCMAAwHQYDVR0OBBYEFHoAX4Zk/OBd5REQO7LmO8QmP8/iMG4GA1Ud\r\n"
HannesTschofenig 0:796d0f61a05b 98 "IwRnMGWAFJ1tICRJAT8ry3i1Gbx+JMnb+zZ8oUKkQDA+MQswCQYDVQQGEwJOTDER\r\n"
HannesTschofenig 0:796d0f61a05b 99 "MA8GA1UEChMIUG9sYXJTU0wxHDAaBgNVBAMTE1BvbGFyc3NsIFRlc3QgRUMgQ0GC\r\n"
HannesTschofenig 0:796d0f61a05b 100 "CQDBQ+J+YkPM6DAKBggqhkjOPQQDAgNoADBlAjBKZQ17IIOimbmoD/yN7o89u3BM\r\n"
HannesTschofenig 0:796d0f61a05b 101 "lgOsjnhw3fIOoLIWy2WOGsk/LGF++DzvrRzuNiACMQCd8iem1XS4JK7haj8xocpU\r\n"
HannesTschofenig 0:796d0f61a05b 102 "LwjQje5PDGHfd3h9tP38Qknu5bJqws0md2KOKHyeV0U=\r\n"
HannesTschofenig 0:796d0f61a05b 103 "-----END CERTIFICATE-----\r\n";
HannesTschofenig 0:796d0f61a05b 104
HannesTschofenig 0:796d0f61a05b 105 const char test_cli_key_ec[] =
HannesTschofenig 0:796d0f61a05b 106 "-----BEGIN EC PRIVATE KEY-----\r\n"
HannesTschofenig 0:796d0f61a05b 107 "MHcCAQEEIPb3hmTxZ3/mZI3vyk7p3U3wBf+WIop6hDhkFzJhmLcqoAoGCCqGSM49\r\n"
HannesTschofenig 0:796d0f61a05b 108 "AwEHoUQDQgAEV+WusXPf06y7k7iB/xKu7uZTrM5VU/Y0Dswu42MlC9+Y4vNcYDaW\r\n"
HannesTschofenig 0:796d0f61a05b 109 "wNUYFHDlf5/VS0UY5bBs1Vz4lo+HcKPkxw==\r\n"
HannesTschofenig 0:796d0f61a05b 110 "-----END EC PRIVATE KEY-----\r\n";
HannesTschofenig 0:796d0f61a05b 111 #else
HannesTschofenig 0:796d0f61a05b 112 #define TEST_CA_CRT_EC
HannesTschofenig 0:796d0f61a05b 113 #endif /* POLARSSL_ECDSA_C */
HannesTschofenig 0:796d0f61a05b 114
HannesTschofenig 0:796d0f61a05b 115 #if defined(POLARSSL_RSA_C)
HannesTschofenig 0:796d0f61a05b 116 #define TEST_CA_CRT_RSA \
HannesTschofenig 0:796d0f61a05b 117 "-----BEGIN CERTIFICATE-----\r\n" \
HannesTschofenig 0:796d0f61a05b 118 "MIIDhzCCAm+gAwIBAgIBADANBgkqhkiG9w0BAQUFADA7MQswCQYDVQQGEwJOTDER\r\n" \
HannesTschofenig 0:796d0f61a05b 119 "MA8GA1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwHhcN\r\n" \
HannesTschofenig 0:796d0f61a05b 120 "MTEwMjEyMTQ0NDAwWhcNMjEwMjEyMTQ0NDAwWjA7MQswCQYDVQQGEwJOTDERMA8G\r\n" \
HannesTschofenig 0:796d0f61a05b 121 "A1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwggEiMA0G\r\n" \
HannesTschofenig 0:796d0f61a05b 122 "CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDA3zf8F7vglp0/ht6WMn1EpRagzSHx\r\n" \
HannesTschofenig 0:796d0f61a05b 123 "mdTs6st8GFgIlKXsm8WL3xoemTiZhx57wI053zhdcHgH057Zk+i5clHFzqMwUqny\r\n" \
HannesTschofenig 0:796d0f61a05b 124 "50BwFMtEonILwuVA+T7lpg6z+exKY8C4KQB0nFc7qKUEkHHxvYPZP9al4jwqj+8n\r\n" \
HannesTschofenig 0:796d0f61a05b 125 "YMPGn8u67GB9t+aEMr5P+1gmIgNb1LTV+/Xjli5wwOQuvfwu7uJBVcA0Ln0kcmnL\r\n" \
HannesTschofenig 0:796d0f61a05b 126 "R7EUQIN9Z/SG9jGr8XmksrUuEvmEF/Bibyc+E1ixVA0hmnM3oTDPb5Lc9un8rNsu\r\n" \
HannesTschofenig 0:796d0f61a05b 127 "KNF+AksjoBXyOGVkCeoMbo4bF6BxyLObyavpw/LPh5aPgAIynplYb6LVAgMBAAGj\r\n" \
HannesTschofenig 0:796d0f61a05b 128 "gZUwgZIwDAYDVR0TBAUwAwEB/zAdBgNVHQ4EFgQUtFrkpbPe0lL2udWmlQ/rPrzH\r\n" \
HannesTschofenig 0:796d0f61a05b 129 "/f8wYwYDVR0jBFwwWoAUtFrkpbPe0lL2udWmlQ/rPrzH/f+hP6Q9MDsxCzAJBgNV\r\n" \
HannesTschofenig 0:796d0f61a05b 130 "BAYTAk5MMREwDwYDVQQKEwhQb2xhclNTTDEZMBcGA1UEAxMQUG9sYXJTU0wgVGVz\r\n" \
HannesTschofenig 0:796d0f61a05b 131 "dCBDQYIBADANBgkqhkiG9w0BAQUFAAOCAQEAuP1U2ABUkIslsCfdlc2i94QHHYeJ\r\n" \
HannesTschofenig 0:796d0f61a05b 132 "SsR4EdgHtdciUI5I62J6Mom+Y0dT/7a+8S6MVMCZP6C5NyNyXw1GWY/YR82XTJ8H\r\n" \
HannesTschofenig 0:796d0f61a05b 133 "DBJiCTok5DbZ6SzaONBzdWHXwWwmi5vg1dxn7YxrM9d0IjxM27WNKs4sDQhZBQkF\r\n" \
HannesTschofenig 0:796d0f61a05b 134 "pjmfs2cb4oPl4Y9T9meTx/lvdkRYEug61Jfn6cA+qHpyPYdTH+UshITnmp5/Ztkf\r\n" \
HannesTschofenig 0:796d0f61a05b 135 "m/UTSLBNFNHesiTZeH31NcxYGdHSme9Nc/gfidRa0FLOCfWxRlFqAI47zG9jAQCZ\r\n" \
HannesTschofenig 0:796d0f61a05b 136 "7Z2mCGDNMhjQc+BYcdnl0lPXjdDK6V0qCg1dVewhUBcW5gZKzV7e9+DpVA==\r\n" \
HannesTschofenig 0:796d0f61a05b 137 "-----END CERTIFICATE-----\r\n"
HannesTschofenig 0:796d0f61a05b 138 const char test_ca_crt_rsa[] = TEST_CA_CRT_RSA;
HannesTschofenig 0:796d0f61a05b 139
HannesTschofenig 0:796d0f61a05b 140 const char test_ca_key_rsa[] =
HannesTschofenig 0:796d0f61a05b 141 "-----BEGIN RSA PRIVATE KEY-----\r\n"
HannesTschofenig 0:796d0f61a05b 142 "Proc-Type: 4,ENCRYPTED\r\n"
HannesTschofenig 0:796d0f61a05b 143 "DEK-Info: DES-EDE3-CBC,A8A95B05D5B7206B\r\n"
HannesTschofenig 0:796d0f61a05b 144 "\r\n"
HannesTschofenig 0:796d0f61a05b 145 "9Qd9GeArejl1GDVh2lLV1bHt0cPtfbh5h/5zVpAVaFpqtSPMrElp50Rntn9et+JA\r\n"
HannesTschofenig 0:796d0f61a05b 146 "7VOyboR+Iy2t/HU4WvA687k3Bppe9GwKHjHhtl//8xFKwZr3Xb5yO5JUP8AUctQq\r\n"
HannesTschofenig 0:796d0f61a05b 147 "Nb8CLlZyuUC+52REAAthdWgsX+7dJO4yabzUcQ22Tp9JSD0hiL43BlkWYUNK3dAo\r\n"
HannesTschofenig 0:796d0f61a05b 148 "PZlmiptjnzVTjg1MxsBSydZinWOLBV8/JQgxSPo2yD4uEfig28qbvQ2wNIn0pnAb\r\n"
HannesTschofenig 0:796d0f61a05b 149 "GxnSAOazkongEGfvcjIIs+LZN9gXFhxcOh6kc4Q/c99B7QWETwLLkYgZ+z1a9VY9\r\n"
HannesTschofenig 0:796d0f61a05b 150 "gEU7CwCxYCD+h9hY6FPmsK0/lC4O7aeRKpYq00rPPxs6i7phiexg6ax6yTMmArQq\r\n"
HannesTschofenig 0:796d0f61a05b 151 "QmK3TAsJm8V/J5AWpLEV6jAFgRGymGGHnof0DXzVWZidrcZJWTNuGEX90nB3ee2w\r\n"
HannesTschofenig 0:796d0f61a05b 152 "PXJEFWKoD3K3aFcSLdHYr3mLGxP7H9ThQai9VsycxZKS5kwvBKQ//YMrmFfwPk8x\r\n"
HannesTschofenig 0:796d0f61a05b 153 "vTeY4KZMaUrveEel5tWZC94RSMKgxR6cyE1nBXyTQnDOGbfpNNgBKxyKbINWoOJU\r\n"
HannesTschofenig 0:796d0f61a05b 154 "WJZAwlsQn+QzCDwpri7+sV1mS3gBE6UY7aQmnmiiaC2V3Hbphxct/en5QsfDOt1X\r\n"
HannesTschofenig 0:796d0f61a05b 155 "JczSfpRWLlbPznZg8OQh/VgCMA58N5DjOzTIK7sJJ5r+94ZBTCpgAMbF588f0NTR\r\n"
HannesTschofenig 0:796d0f61a05b 156 "KCe4yrxGJR7X02M4nvD4IwOlpsQ8xQxZtOSgXv4LkxvdU9XJJKWZ/XNKJeWztxSe\r\n"
HannesTschofenig 0:796d0f61a05b 157 "Z1vdTc2YfsDBA2SEv33vxHx2g1vqtw8SjDRT2RaQSS0QuSaMJimdOX6mTOCBKk1J\r\n"
HannesTschofenig 0:796d0f61a05b 158 "9Q5mXTrER+/LnK0jEmXsBXWA5bqqVZIyahXSx4VYZ7l7w/PHiUDtDgyRhMMKi4n2\r\n"
HannesTschofenig 0:796d0f61a05b 159 "iQvQcWSQTjrpnlJbca1/DkpRt3YwrvJwdqb8asZU2VrNETh5x0QVefDRLFiVpif/\r\n"
HannesTschofenig 0:796d0f61a05b 160 "tUaeAe/P1F8OkS7OIZDs1SUbv/sD2vMbhNkUoCms3/PvNtdnvgL4F0zhaDpKCmlT\r\n"
HannesTschofenig 0:796d0f61a05b 161 "P8vx49E7v5CyRNmED9zZg4o3wmMqrQO93PtTug3Eu9oVx1zPQM1NVMyBa2+f29DL\r\n"
HannesTschofenig 0:796d0f61a05b 162 "1nuTCeXdo9+ni45xx+jAI4DCwrRdhJ9uzZyC6962H37H6D+5naNvClFR1s6li1Gb\r\n"
HannesTschofenig 0:796d0f61a05b 163 "nqPoiy/OBsEx9CaDGcqQBp5Wme/3XW+6z1ISOx+igwNTVCT14mHdBMbya0eIKft5\r\n"
HannesTschofenig 0:796d0f61a05b 164 "X+GnwtgEMyCYyyWuUct8g4RzErcY9+yW9Om5Hzpx4zOuW4NPZgPDTgK+t2RSL/Yq\r\n"
HannesTschofenig 0:796d0f61a05b 165 "rE1njrgeGYcVeG3f+OftH4s6fPbq7t1A5ZgUscbLMBqr9tK+OqygR4EgKBPsH6Cz\r\n"
HannesTschofenig 0:796d0f61a05b 166 "L6zlv/2RV0qAHvVuDJcIDIgwY5rJtINEm32rhOeFNJwZS5MNIC1czXZx5//ugX7l\r\n"
HannesTschofenig 0:796d0f61a05b 167 "I4sy5nbVhwSjtAk8Xg5dZbdTZ6mIrb7xqH+fdakZor1khG7bC2uIwibD3cSl2XkR\r\n"
HannesTschofenig 0:796d0f61a05b 168 "wN48lslbHnqqagr6Xm1nNOSVl8C/6kbJEsMpLhAezfRtGwvOucoaE+WbeUNolGde\r\n"
HannesTschofenig 0:796d0f61a05b 169 "P/eQiddSf0brnpiLJRh7qZrl9XuqYdpUqnoEdMAfotDOID8OtV7gt8a48ad8VPW2\r\n"
HannesTschofenig 0:796d0f61a05b 170 "-----END RSA PRIVATE KEY-----\r\n";
HannesTschofenig 0:796d0f61a05b 171
HannesTschofenig 0:796d0f61a05b 172 const char test_ca_pwd_rsa[] = "PolarSSLTest";
HannesTschofenig 0:796d0f61a05b 173
HannesTschofenig 0:796d0f61a05b 174 const char test_srv_crt_rsa[] =
HannesTschofenig 0:796d0f61a05b 175 "-----BEGIN CERTIFICATE-----\r\n"
HannesTschofenig 0:796d0f61a05b 176 "MIIDNzCCAh+gAwIBAgIBAjANBgkqhkiG9w0BAQUFADA7MQswCQYDVQQGEwJOTDER\r\n"
HannesTschofenig 0:796d0f61a05b 177 "MA8GA1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwHhcN\r\n"
HannesTschofenig 0:796d0f61a05b 178 "MTEwMjEyMTQ0NDA2WhcNMjEwMjEyMTQ0NDA2WjA0MQswCQYDVQQGEwJOTDERMA8G\r\n"
HannesTschofenig 0:796d0f61a05b 179 "A1UEChMIUG9sYXJTU0wxEjAQBgNVBAMTCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcN\r\n"
HannesTschofenig 0:796d0f61a05b 180 "AQEBBQADggEPADCCAQoCggEBAMFNo93nzR3RBNdJcriZrA545Do8Ss86ExbQWuTN\r\n"
HannesTschofenig 0:796d0f61a05b 181 "owCIp+4ea5anUrSQ7y1yej4kmvy2NKwk9XfgJmSMnLAofaHa6ozmyRyWvP7BBFKz\r\n"
HannesTschofenig 0:796d0f61a05b 182 "NtSj+uGxdtiQwWG0ZlI2oiZTqqt0Xgd9GYLbKtgfoNkNHC1JZvdbJXNG6AuKT2kM\r\n"
HannesTschofenig 0:796d0f61a05b 183 "tQCQ4dqCEGZ9rlQri2V5kaHiYcPNQEkI7mgM8YuG0ka/0LiqEQMef1aoGh5EGA8P\r\n"
HannesTschofenig 0:796d0f61a05b 184 "hYvai0Re4hjGYi/HZo36Xdh98yeJKQHFkA4/J/EwyEoO79bex8cna8cFPXrEAjya\r\n"
HannesTschofenig 0:796d0f61a05b 185 "HT4P6DSYW8tzS1KW2BGiLICIaTla0w+w3lkvEcf36hIBMJcCAwEAAaNNMEswCQYD\r\n"
HannesTschofenig 0:796d0f61a05b 186 "VR0TBAIwADAdBgNVHQ4EFgQUpQXoZLjc32APUBJNYKhkr02LQ5MwHwYDVR0jBBgw\r\n"
HannesTschofenig 0:796d0f61a05b 187 "FoAUtFrkpbPe0lL2udWmlQ/rPrzH/f8wDQYJKoZIhvcNAQEFBQADggEBAJxnXClY\r\n"
HannesTschofenig 0:796d0f61a05b 188 "oHkbp70cqBrsGXLybA74czbO5RdLEgFs7rHVS9r+c293luS/KdliLScZqAzYVylw\r\n"
HannesTschofenig 0:796d0f61a05b 189 "UfRWvKMoWhHYKp3dEIS4xTXk6/5zXxhv9Rw8SGc8qn6vITHk1S1mPevtekgasY5Y\r\n"
HannesTschofenig 0:796d0f61a05b 190 "iWQuM3h4YVlRH3HHEMAD1TnAexfXHHDFQGe+Bd1iAbz1/sH9H8l4StwX6egvTK3M\r\n"
HannesTschofenig 0:796d0f61a05b 191 "wXRwkKkvjKaEDA9ATbZx0mI8LGsxSuCqe9r9dyjmttd47J1p1Rulz3CLzaRcVIuS\r\n"
HannesTschofenig 0:796d0f61a05b 192 "RRQfaD8neM9c1S/iJ/amTVqJxA1KOdOS5780WhPfSArA+g4qAmSjelc3p4wWpha8\r\n"
HannesTschofenig 0:796d0f61a05b 193 "zhuYwjVuX6JHG0c=\r\n"
HannesTschofenig 0:796d0f61a05b 194 "-----END CERTIFICATE-----\r\n";
HannesTschofenig 0:796d0f61a05b 195
HannesTschofenig 0:796d0f61a05b 196 const char test_srv_key_rsa[] =
HannesTschofenig 0:796d0f61a05b 197 "-----BEGIN RSA PRIVATE KEY-----\r\n"
HannesTschofenig 0:796d0f61a05b 198 "MIIEpAIBAAKCAQEAwU2j3efNHdEE10lyuJmsDnjkOjxKzzoTFtBa5M2jAIin7h5r\r\n"
HannesTschofenig 0:796d0f61a05b 199 "lqdStJDvLXJ6PiSa/LY0rCT1d+AmZIycsCh9odrqjObJHJa8/sEEUrM21KP64bF2\r\n"
HannesTschofenig 0:796d0f61a05b 200 "2JDBYbRmUjaiJlOqq3ReB30Zgtsq2B+g2Q0cLUlm91slc0boC4pPaQy1AJDh2oIQ\r\n"
HannesTschofenig 0:796d0f61a05b 201 "Zn2uVCuLZXmRoeJhw81ASQjuaAzxi4bSRr/QuKoRAx5/VqgaHkQYDw+Fi9qLRF7i\r\n"
HannesTschofenig 0:796d0f61a05b 202 "GMZiL8dmjfpd2H3zJ4kpAcWQDj8n8TDISg7v1t7HxydrxwU9esQCPJodPg/oNJhb\r\n"
HannesTschofenig 0:796d0f61a05b 203 "y3NLUpbYEaIsgIhpOVrTD7DeWS8Rx/fqEgEwlwIDAQABAoIBAQCXR0S8EIHFGORZ\r\n"
HannesTschofenig 0:796d0f61a05b 204 "++AtOg6eENxD+xVs0f1IeGz57Tjo3QnXX7VBZNdj+p1ECvhCE/G7XnkgU5hLZX+G\r\n"
HannesTschofenig 0:796d0f61a05b 205 "Z0jkz/tqJOI0vRSdLBbipHnWouyBQ4e/A1yIJdlBtqXxJ1KE/ituHRbNc4j4kL8Z\r\n"
HannesTschofenig 0:796d0f61a05b 206 "/r6pvwnTI0PSx2Eqs048YdS92LT6qAv4flbNDxMn2uY7s4ycS4Q8w1JXnCeaAnYm\r\n"
HannesTschofenig 0:796d0f61a05b 207 "WYI5wxO+bvRELR2Mcz5DmVnL8jRyml6l6582bSv5oufReFIbyPZbQWlXgYnpu6He\r\n"
HannesTschofenig 0:796d0f61a05b 208 "GTc7E1zKYQGG/9+DQUl/1vQuCPqQwny0tQoX2w5tdYpdMdVm+zkLtbajzdTviJJa\r\n"
HannesTschofenig 0:796d0f61a05b 209 "TWzL6lt5AoGBAN86+SVeJDcmQJcv4Eq6UhtRr4QGMiQMz0Sod6ettYxYzMgxtw28\r\n"
HannesTschofenig 0:796d0f61a05b 210 "CIrgpozCc+UaZJLo7UxvC6an85r1b2nKPCLQFaggJ0H4Q0J/sZOhBIXaoBzWxveK\r\n"
HannesTschofenig 0:796d0f61a05b 211 "nupceKdVxGsFi8CDy86DBfiyFivfBj+47BbaQzPBj7C4rK7UlLjab2rDAoGBAN2u\r\n"
HannesTschofenig 0:796d0f61a05b 212 "AM2gchoFiu4v1HFL8D7lweEpi6ZnMJjnEu/dEgGQJFjwdpLnPbsj4c75odQ4Gz8g\r\n"
HannesTschofenig 0:796d0f61a05b 213 "sw9lao9VVzbusoRE/JGI4aTdO0pATXyG7eG1Qu+5Yc1YGXcCrliA2xM9xx+d7f+s\r\n"
HannesTschofenig 0:796d0f61a05b 214 "mPzN+WIEg5GJDYZDjAzHG5BNvi/FfM1C9dOtjv2dAoGAF0t5KmwbjWHBhcVqO4Ic\r\n"
HannesTschofenig 0:796d0f61a05b 215 "BVvN3BIlc1ue2YRXEDlxY5b0r8N4XceMgKmW18OHApZxfl8uPDauWZLXOgl4uepv\r\n"
HannesTschofenig 0:796d0f61a05b 216 "whZC3EuWrSyyICNhLY21Ah7hbIEBPF3L3ZsOwC+UErL+dXWLdB56Jgy3gZaBeW7b\r\n"
HannesTschofenig 0:796d0f61a05b 217 "vDrEnocJbqCm7IukhXHOBK8CgYEAwqdHB0hqyNSzIOGY7v9abzB6pUdA3BZiQvEs\r\n"
HannesTschofenig 0:796d0f61a05b 218 "3LjHVd4HPJ2x0N8CgrBIWOE0q8+0hSMmeE96WW/7jD3fPWwCR5zlXknxBQsfv0gP\r\n"
HannesTschofenig 0:796d0f61a05b 219 "3BC5PR0Qdypz+d+9zfMf625kyit4T/hzwhDveZUzHnk1Cf+IG7Q+TOEnLnWAWBED\r\n"
HannesTschofenig 0:796d0f61a05b 220 "ISOWmrUCgYAFEmRxgwAc/u+D6t0syCwAYh6POtscq9Y0i9GyWk89NzgC4NdwwbBH\r\n"
HannesTschofenig 0:796d0f61a05b 221 "4AgahOxIxXx2gxJnq3yfkJfIjwf0s2DyP0kY2y6Ua1OeomPeY9mrIS4tCuDQ6LrE\r\n"
HannesTschofenig 0:796d0f61a05b 222 "TB6l9VGoxJL4fyHnZb8L5gGvnB1bbD8cL6YPaDiOhcRseC9vBiEuVg==\r\n"
HannesTschofenig 0:796d0f61a05b 223 "-----END RSA PRIVATE KEY-----\r\n";
HannesTschofenig 0:796d0f61a05b 224
HannesTschofenig 0:796d0f61a05b 225
HannesTschofenig 0:796d0f61a05b 226 const char test_cli_crt_rsa[] =
HannesTschofenig 0:796d0f61a05b 227 "-----BEGIN CERTIFICATE-----\r\n"
HannesTschofenig 0:796d0f61a05b 228 "MIIDPzCCAiegAwIBAgIBBDANBgkqhkiG9w0BAQUFADA7MQswCQYDVQQGEwJOTDER\r\n"
HannesTschofenig 0:796d0f61a05b 229 "MA8GA1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwHhcN\r\n"
HannesTschofenig 0:796d0f61a05b 230 "MTEwMjEyMTQ0NDA3WhcNMjEwMjEyMTQ0NDA3WjA8MQswCQYDVQQGEwJOTDERMA8G\r\n"
HannesTschofenig 0:796d0f61a05b 231 "A1UEChMIUG9sYXJTU0wxGjAYBgNVBAMTEVBvbGFyU1NMIENsaWVudCAyMIIBIjAN\r\n"
HannesTschofenig 0:796d0f61a05b 232 "BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyHTEzLn5tXnpRdkUYLB9u5Pyax6f\r\n"
HannesTschofenig 0:796d0f61a05b 233 "M60Nj4o8VmXl3ETZzGaFB9X4J7BKNdBjngpuG7fa8H6r7gwQk4ZJGDTzqCrSV/Uu\r\n"
HannesTschofenig 0:796d0f61a05b 234 "1C93KYRhTYJQj6eVSHD1bk2y1RPD0hrt5kPqQhTrdOrA7R/UV06p86jt0uDBMHEw\r\n"
HannesTschofenig 0:796d0f61a05b 235 "MjDV0/YI0FZPRo7yX/k9Z5GIMC5Cst99++UMd//sMcB4j7/Cf8qtbCHWjdmLao5v\r\n"
HannesTschofenig 0:796d0f61a05b 236 "4Jv4EFbMs44TFeY0BGbH7vk2DmqV9gmaBmf0ZXH4yqSxJeD+PIs1BGe64E92hfx/\r\n"
HannesTschofenig 0:796d0f61a05b 237 "/DZrtenNLQNiTrM9AM+vdqBpVoNq0qjU51Bx5rU2BXcFbXvI5MT9TNUhXwIDAQAB\r\n"
HannesTschofenig 0:796d0f61a05b 238 "o00wSzAJBgNVHRMEAjAAMB0GA1UdDgQWBBRxoQBzckAvVHZeM/xSj7zx3WtGITAf\r\n"
HannesTschofenig 0:796d0f61a05b 239 "BgNVHSMEGDAWgBS0WuSls97SUva51aaVD+s+vMf9/zANBgkqhkiG9w0BAQUFAAOC\r\n"
HannesTschofenig 0:796d0f61a05b 240 "AQEAAn86isAM8X+mVwJqeItt6E9slhEQbAofyk+diH1Lh8Y9iLlWQSKbw/UXYjx5\r\n"
HannesTschofenig 0:796d0f61a05b 241 "LLPZcniovxIcARC/BjyZR9g3UwTHNGNm+rwrqa15viuNOFBchykX/Orsk02EH7NR\r\n"
HannesTschofenig 0:796d0f61a05b 242 "Alw5WLPorYjED6cdVQgBl9ot93HdJogRiXCxErM7NC8/eP511mjq+uLDjLKH8ZPQ\r\n"
HannesTschofenig 0:796d0f61a05b 243 "8I4ekHJnroLsDkIwXKGIsvIBHQy2ac/NwHLCQOK6mfum1pRx52V4Utu5dLLjD5bM\r\n"
HannesTschofenig 0:796d0f61a05b 244 "xOBC7KU4xZKuMXXZM6/93Yb51K/J4ahf1TxJlTWXtnzDr9saEYdNy2SKY/6ZiDNH\r\n"
HannesTschofenig 0:796d0f61a05b 245 "D+stpAKiQLAWaAusIWKYEyw9MQ==\r\n"
HannesTschofenig 0:796d0f61a05b 246 "-----END CERTIFICATE-----\r\n";
HannesTschofenig 0:796d0f61a05b 247
HannesTschofenig 0:796d0f61a05b 248 const char test_cli_key_rsa[] =
HannesTschofenig 0:796d0f61a05b 249 "-----BEGIN RSA PRIVATE KEY-----\r\n"
HannesTschofenig 0:796d0f61a05b 250 "MIIEpAIBAAKCAQEAyHTEzLn5tXnpRdkUYLB9u5Pyax6fM60Nj4o8VmXl3ETZzGaF\r\n"
HannesTschofenig 0:796d0f61a05b 251 "B9X4J7BKNdBjngpuG7fa8H6r7gwQk4ZJGDTzqCrSV/Uu1C93KYRhTYJQj6eVSHD1\r\n"
HannesTschofenig 0:796d0f61a05b 252 "bk2y1RPD0hrt5kPqQhTrdOrA7R/UV06p86jt0uDBMHEwMjDV0/YI0FZPRo7yX/k9\r\n"
HannesTschofenig 0:796d0f61a05b 253 "Z5GIMC5Cst99++UMd//sMcB4j7/Cf8qtbCHWjdmLao5v4Jv4EFbMs44TFeY0BGbH\r\n"
HannesTschofenig 0:796d0f61a05b 254 "7vk2DmqV9gmaBmf0ZXH4yqSxJeD+PIs1BGe64E92hfx//DZrtenNLQNiTrM9AM+v\r\n"
HannesTschofenig 0:796d0f61a05b 255 "dqBpVoNq0qjU51Bx5rU2BXcFbXvI5MT9TNUhXwIDAQABAoIBAGdNtfYDiap6bzst\r\n"
HannesTschofenig 0:796d0f61a05b 256 "yhCiI8m9TtrhZw4MisaEaN/ll3XSjaOG2dvV6xMZCMV+5TeXDHOAZnY18Yi18vzz\r\n"
HannesTschofenig 0:796d0f61a05b 257 "4Ut2TnNFzizCECYNaA2fST3WgInnxUkV3YXAyP6CNxJaCmv2aA0yFr2kFVSeaKGt\r\n"
HannesTschofenig 0:796d0f61a05b 258 "ymvljNp2NVkvm7Th8fBQBO7I7AXhz43k0mR7XmPgewe8ApZOG3hstkOaMvbWAvWA\r\n"
HannesTschofenig 0:796d0f61a05b 259 "zCZupdDjZYjOJqlA4eEA4H8/w7F83r5CugeBE8LgEREjLPiyejrU5H1fubEY+h0d\r\n"
HannesTschofenig 0:796d0f61a05b 260 "l5HZBJ68ybTXfQ5U9o/QKA3dd0toBEhhdRUDGzWtjvwkEQfqF1reGWj/tod/gCpf\r\n"
HannesTschofenig 0:796d0f61a05b 261 "DFi6X0ECgYEA4wOv/pjSC3ty6TuOvKX2rOUiBrLXXv2JSxZnMoMiWI5ipLQt+RYT\r\n"
HannesTschofenig 0:796d0f61a05b 262 "VPafL/m7Dn6MbwjayOkcZhBwk5CNz5A6Q4lJ64Mq/lqHznRCQQ2Mc1G8eyDF/fYL\r\n"
HannesTschofenig 0:796d0f61a05b 263 "Ze2pLvwP9VD5jTc2miDfw+MnvJhywRRLcemDFP8k4hQVtm8PMp3ZmNECgYEA4gz7\r\n"
HannesTschofenig 0:796d0f61a05b 264 "wzObR4gn8ibe617uQPZjWzUj9dUHYd+in1gwBCIrtNnaRn9I9U/Q6tegRYpii4ys\r\n"
HannesTschofenig 0:796d0f61a05b 265 "c176NmU+umy6XmuSKV5qD9bSpZWG2nLFnslrN15Lm3fhZxoeMNhBaEDTnLT26yoi\r\n"
HannesTschofenig 0:796d0f61a05b 266 "33gp0mSSWy94ZEqipms+ULF6sY1ZtFW6tpGFoy8CgYAQHhnnvJflIs2ky4q10B60\r\n"
HannesTschofenig 0:796d0f61a05b 267 "ZcxFp3rtDpkp0JxhFLhiizFrujMtZSjYNm5U7KkgPVHhLELEUvCmOnKTt4ap/vZ0\r\n"
HannesTschofenig 0:796d0f61a05b 268 "BxJNe1GZH3pW6SAvGDQpl9sG7uu/vTFP+lCxukmzxB0DrrDcvorEkKMom7ZCCRvW\r\n"
HannesTschofenig 0:796d0f61a05b 269 "KZsZ6YeH2Z81BauRj218kQKBgQCUV/DgKP2985xDTT79N08jUo3hTP5MVYCCuj/+\r\n"
HannesTschofenig 0:796d0f61a05b 270 "UeEw1TvZcx3LJby7P6Xad6a1/BqveaGyFKIfEFIaBUBItk801sDDpDaYc4gL00Xc\r\n"
HannesTschofenig 0:796d0f61a05b 271 "7lFuBHOZkxJYlss5QrGpuOEl9ZwUt5IrFLBdYaKqNHzNVC1pCPfb/JyH6Dr2HUxq\r\n"
HannesTschofenig 0:796d0f61a05b 272 "gxUwAQKBgQCcU6G2L8AG9d9c0UpOyL1tMvFe5Ttw0KjlQVdsh1MP6yigYo9DYuwu\r\n"
HannesTschofenig 0:796d0f61a05b 273 "bHFVW2r0dBTqegP2/KTOxKzaHfC1qf0RGDsUoJCNJrd1cwoCLG8P2EF4w3OBrKqv\r\n"
HannesTschofenig 0:796d0f61a05b 274 "8u4ytY0F+Vlanj5lm3TaoHSVF1+NWPyOTiwevIECGKwSxvlki4fDAA==\r\n"
HannesTschofenig 0:796d0f61a05b 275 "-----END RSA PRIVATE KEY-----\r\n";
HannesTschofenig 0:796d0f61a05b 276 #else
HannesTschofenig 0:796d0f61a05b 277 #define TEST_CA_CRT_RSA
HannesTschofenig 0:796d0f61a05b 278 #endif /* POLARSSL_RSA_C */
HannesTschofenig 0:796d0f61a05b 279
HannesTschofenig 0:796d0f61a05b 280 #if defined(POLARSSL_DHM_C)
HannesTschofenig 0:796d0f61a05b 281 const char test_dhm_params[] =
HannesTschofenig 0:796d0f61a05b 282 "-----BEGIN DH PARAMETERS-----\r\n"
HannesTschofenig 0:796d0f61a05b 283 "MIGHAoGBAJ419DBEOgmQTzo5qXl5fQcN9TN455wkOL7052HzxxRVMyhYmwQcgJvh\r\n"
HannesTschofenig 0:796d0f61a05b 284 "1sa18fyfR9OiVEMYglOpkqVoGLN7qd5aQNNi5W7/C+VBdHTBJcGZJyyP5B3qcz32\r\n"
HannesTschofenig 0:796d0f61a05b 285 "9mLJKudlVudV0Qxk5qUJaPZ/xupz0NyoVpviuiBOI1gNi8ovSXWzAgEC\r\n"
HannesTschofenig 0:796d0f61a05b 286 "-----END DH PARAMETERS-----\r\n";
HannesTschofenig 0:796d0f61a05b 287 #endif
HannesTschofenig 0:796d0f61a05b 288
HannesTschofenig 0:796d0f61a05b 289 /* Concatenation of all available CA certificates */
HannesTschofenig 0:796d0f61a05b 290 const char test_ca_list[] = TEST_CA_CRT_RSA TEST_CA_CRT_EC;
HannesTschofenig 0:796d0f61a05b 291
HannesTschofenig 0:796d0f61a05b 292 #if defined(POLARSSL_RSA_C)
HannesTschofenig 0:796d0f61a05b 293 const char *test_ca_crt = test_ca_crt_rsa;
HannesTschofenig 0:796d0f61a05b 294 const char *test_ca_key = test_ca_key_rsa;
HannesTschofenig 0:796d0f61a05b 295 const char *test_ca_pwd = test_ca_pwd_rsa;
HannesTschofenig 0:796d0f61a05b 296 const char *test_srv_crt = test_srv_crt_rsa;
HannesTschofenig 0:796d0f61a05b 297 const char *test_srv_key = test_srv_key_rsa;
HannesTschofenig 0:796d0f61a05b 298 const char *test_cli_crt = test_cli_crt_rsa;
HannesTschofenig 0:796d0f61a05b 299 const char *test_cli_key = test_cli_key_rsa;
HannesTschofenig 0:796d0f61a05b 300 #else /* ! POLARSSL_RSA_C, so POLARSSL_ECDSA_C */
HannesTschofenig 0:796d0f61a05b 301 const char *test_ca_crt = test_ca_crt_ec;
HannesTschofenig 0:796d0f61a05b 302 const char *test_ca_key = test_ca_key_ec;
HannesTschofenig 0:796d0f61a05b 303 const char *test_ca_pwd = test_ca_pwd_ec;
HannesTschofenig 0:796d0f61a05b 304 const char *test_srv_crt = test_srv_crt_ec;
HannesTschofenig 0:796d0f61a05b 305 const char *test_srv_key = test_srv_key_ec;
HannesTschofenig 0:796d0f61a05b 306 const char *test_cli_crt = test_cli_crt_ec;
HannesTschofenig 0:796d0f61a05b 307 const char *test_cli_key = test_cli_key_ec;
HannesTschofenig 0:796d0f61a05b 308 #endif /* POLARSSL_RSA_C */
HannesTschofenig 0:796d0f61a05b 309
HannesTschofenig 0:796d0f61a05b 310 #endif /* POLARSSL_CERTS_C */
HannesTschofenig 0:796d0f61a05b 311
HannesTschofenig 0:796d0f61a05b 312