FRDM K64F Metronome

Committer:
ram54288
Date:
Sun May 14 18:37:05 2017 +0000
Revision:
0:dbad57390bd1
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ram54288 0:dbad57390bd1 1
ram54288 0:dbad57390bd1 2
ram54288 0:dbad57390bd1 3 /*
ram54288 0:dbad57390bd1 4
ram54288 0:dbad57390bd1 5 * Copyright (c) 2015 ARM Limited. All rights reserved.
ram54288 0:dbad57390bd1 6
ram54288 0:dbad57390bd1 7 * SPDX-License-Identifier: Apache-2.0
ram54288 0:dbad57390bd1 8
ram54288 0:dbad57390bd1 9 * Licensed under the Apache License, Version 2.0 (the License); you may
ram54288 0:dbad57390bd1 10
ram54288 0:dbad57390bd1 11 * not use this file except in compliance with the License.
ram54288 0:dbad57390bd1 12
ram54288 0:dbad57390bd1 13 * You may obtain a copy of the License at
ram54288 0:dbad57390bd1 14
ram54288 0:dbad57390bd1 15 *
ram54288 0:dbad57390bd1 16
ram54288 0:dbad57390bd1 17 * http://www.apache.org/licenses/LICENSE-2.0
ram54288 0:dbad57390bd1 18
ram54288 0:dbad57390bd1 19 *
ram54288 0:dbad57390bd1 20
ram54288 0:dbad57390bd1 21 * Unless required by applicable law or agreed to in writing, software
ram54288 0:dbad57390bd1 22
ram54288 0:dbad57390bd1 23 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
ram54288 0:dbad57390bd1 24
ram54288 0:dbad57390bd1 25 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ram54288 0:dbad57390bd1 26
ram54288 0:dbad57390bd1 27 * See the License for the specific language governing permissions and
ram54288 0:dbad57390bd1 28
ram54288 0:dbad57390bd1 29 * limitations under the License.
ram54288 0:dbad57390bd1 30
ram54288 0:dbad57390bd1 31 */
ram54288 0:dbad57390bd1 32
ram54288 0:dbad57390bd1 33 #ifndef __SECURITY_H__
ram54288 0:dbad57390bd1 34
ram54288 0:dbad57390bd1 35 #define __SECURITY_H__
ram54288 0:dbad57390bd1 36
ram54288 0:dbad57390bd1 37
ram54288 0:dbad57390bd1 38
ram54288 0:dbad57390bd1 39 #include <inttypes.h>
ram54288 0:dbad57390bd1 40
ram54288 0:dbad57390bd1 41
ram54288 0:dbad57390bd1 42
ram54288 0:dbad57390bd1 43 #define MBED_DOMAIN "eeforester"
ram54288 0:dbad57390bd1 44
ram54288 0:dbad57390bd1 45 #define MBED_ENDPOINT_NAME "a3e4593c-4e03-492a-9e32-320550fe442e"
ram54288 0:dbad57390bd1 46
ram54288 0:dbad57390bd1 47
ram54288 0:dbad57390bd1 48
ram54288 0:dbad57390bd1 49 const unsigned char PSK[] = {0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x32,0x33,0x34,0x35,0x36};
ram54288 0:dbad57390bd1 50
ram54288 0:dbad57390bd1 51 const unsigned char PSK_IDENTITY[] = {0x0F,0x0F};
ram54288 0:dbad57390bd1 52
ram54288 0:dbad57390bd1 53
ram54288 0:dbad57390bd1 54
ram54288 0:dbad57390bd1 55 const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
ram54288 0:dbad57390bd1 56
ram54288 0:dbad57390bd1 57 "MIIBmDCCAT6gAwIBAgIEVUCA0jAKBggqhkjOPQQDAjBLMQswCQYDVQQGEwJGSTEN\r\n"
ram54288 0:dbad57390bd1 58
ram54288 0:dbad57390bd1 59 "MAsGA1UEBwwET3VsdTEMMAoGA1UECgwDQVJNMQwwCgYDVQQLDANJb1QxETAPBgNV\r\n"
ram54288 0:dbad57390bd1 60
ram54288 0:dbad57390bd1 61 "BAMMCEFSTSBtYmVkMB4XDTE1MDQyOTA2NTc0OFoXDTE4MDQyOTA2NTc0OFowSzEL\r\n"
ram54288 0:dbad57390bd1 62
ram54288 0:dbad57390bd1 63 "MAkGA1UEBhMCRkkxDTALBgNVBAcMBE91bHUxDDAKBgNVBAoMA0FSTTEMMAoGA1UE\r\n"
ram54288 0:dbad57390bd1 64
ram54288 0:dbad57390bd1 65 "CwwDSW9UMREwDwYDVQQDDAhBUk0gbWJlZDBZMBMGByqGSM49AgEGCCqGSM49AwEH\r\n"
ram54288 0:dbad57390bd1 66
ram54288 0:dbad57390bd1 67 "A0IABLuAyLSk0mA3awgFR5mw2RHth47tRUO44q/RdzFZnLsAsd18Esxd5LCpcT9w\r\n"
ram54288 0:dbad57390bd1 68
ram54288 0:dbad57390bd1 69 "0tvNfBv4xJxGw0wcYrPDDb8/rjujEDAOMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0E\r\n"
ram54288 0:dbad57390bd1 70
ram54288 0:dbad57390bd1 71 "AwIDSAAwRQIhAPAonEAkwixlJiyYRQQWpXtkMZax+VlEiS201BG0PpAzAiBh2RsD\r\n"
ram54288 0:dbad57390bd1 72
ram54288 0:dbad57390bd1 73 "NxLKWwf4O7D6JasGBYf9+ZLwl0iaRjTjytO+Kw==\r\n"
ram54288 0:dbad57390bd1 74
ram54288 0:dbad57390bd1 75 "-----END CERTIFICATE-----\r\n";
ram54288 0:dbad57390bd1 76
ram54288 0:dbad57390bd1 77
ram54288 0:dbad57390bd1 78
ram54288 0:dbad57390bd1 79 const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
ram54288 0:dbad57390bd1 80
ram54288 0:dbad57390bd1 81 "MIIBjDCCATCgAwIBAgIEFGtTOzAMBggqhkjOPQQDAgUAMBAxDjAMBgNVBAMTBW5z\r\n"
ram54288 0:dbad57390bd1 82
ram54288 0:dbad57390bd1 83 "cDAxMB4XDTE1MDkwMjE0MjE0MVoXDTE2MDkwMTE0MjE0MVowgYcxODA2BgNVBAMT\r\n"
ram54288 0:dbad57390bd1 84
ram54288 0:dbad57390bd1 85 "L2EzZTQ1OTNjLTRlMDMtNDkyYS05ZTMyLTMyMDU1MGZlNDQyZS9lZWZvcmVzdGVy\r\n"
ram54288 0:dbad57390bd1 86
ram54288 0:dbad57390bd1 87 "MQwwCgYDVQQLEwNBUk0xEjAQBgNVBAoTCW1iZWQgdXNlcjENMAsGA1UEBxMET3Vs\r\n"
ram54288 0:dbad57390bd1 88
ram54288 0:dbad57390bd1 89 "dTENMAsGA1UECBMET3VsdTELMAkGA1UEBhMCRkkwWTATBgcqhkjOPQIBBggqhkjO\r\n"
ram54288 0:dbad57390bd1 90
ram54288 0:dbad57390bd1 91 "PQMBBwNCAAQuxHp1a1V8pCVziDMhuuSt5zbrduEe+0y+UXuPMj2k6uoEuVCYI4+k\r\n"
ram54288 0:dbad57390bd1 92
ram54288 0:dbad57390bd1 93 "JU6WSfVYAFSVVka0JhIMKB289xU2G5+EMAwGCCqGSM49BAMCBQADSAAwRQIgeWQK\r\n"
ram54288 0:dbad57390bd1 94
ram54288 0:dbad57390bd1 95 "su17hcY+fQxY8H8BgrGy0z+RKJr51WZl2LR9ZSwCIQDKPx9LYzwSw8y1hugpcsc/\r\n"
ram54288 0:dbad57390bd1 96
ram54288 0:dbad57390bd1 97 "ul5++FNrYwLE44l3pW87yw==\r\n"
ram54288 0:dbad57390bd1 98
ram54288 0:dbad57390bd1 99 "-----END CERTIFICATE-----\r\n";
ram54288 0:dbad57390bd1 100
ram54288 0:dbad57390bd1 101
ram54288 0:dbad57390bd1 102
ram54288 0:dbad57390bd1 103 const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n"
ram54288 0:dbad57390bd1 104
ram54288 0:dbad57390bd1 105 "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg9RFcAVbOKG1LbIF8\r\n"
ram54288 0:dbad57390bd1 106
ram54288 0:dbad57390bd1 107 "kNqA8dznz4wnD+B/ghYNQMHtL/qhRANCAAQuxHp1a1V8pCVziDMhuuSt5zbrduEe\r\n"
ram54288 0:dbad57390bd1 108
ram54288 0:dbad57390bd1 109 "+0y+UXuPMj2k6uoEuVCYI4+kJU6WSfVYAFSVVka0JhIMKB289xU2G5+E\r\n"
ram54288 0:dbad57390bd1 110
ram54288 0:dbad57390bd1 111 "-----END PRIVATE KEY-----\r\n";
ram54288 0:dbad57390bd1 112
ram54288 0:dbad57390bd1 113
ram54288 0:dbad57390bd1 114
ram54288 0:dbad57390bd1 115 #endif //__SECURITY_H__