/* * Amazon FreeRTOS OTA AFQP V1.1.4 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://aws.amazon.com/freertos * http://www.FreeRTOS.org */ #include /** * @brief Invalid signature for OTA PAL testing. */ static const uint8_t ucInvalidSignature[] = { 0x1a, 0x90, 0xe6, 0xd8, 0x25, 0x0b, 0xa5, 0x53, 0xa1, 0xb3, 0x10, 0xdb, 0x5b, 0x36, 0xda, 0x81, 0xbf, 0x77, 0x63, 0xc1, 0xc9, 0xe6, 0xd2, 0x5e, 0x2e, 0x2c, 0x32, 0xbc, 0x0f, 0x78, 0xc4, 0x42, 0xf2, 0xfb, 0x20, 0x39, 0x0a, 0xdc, 0xbd, 0x52, 0x68, 0x6a, 0xb4, 0xfa, 0xf5, 0xc0, 0x04, 0xb9, 0x5a, 0x7e, 0xf2, 0x44, 0x72, 0x90, 0x21, 0x0c, 0xe5, 0x4a, 0x9f, 0x8d, 0x9d, 0x6f, 0x54, 0x2c, 0x57, 0x20, 0x4e, 0xdf, 0xf8, 0x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0x6d }; static int ucInvalidSignatureLength = 256; /** * @brief Valid signature matching the test block in the OTA PAL tests. */ static const uint8_t ucValidSignature[] = { 0x14, 0x79, 0x9d, 0x06, 0x72, 0x31, 0x8a, 0x45, 0xb0, 0x2a, 0xb8, 0x56, 0xc6, 0x48, 0x4a, 0xd5, 0xae, 0x1a, 0xe8, 0xe9, 0x3d, 0x35, 0x75, 0xa9, 0x0b, 0x76, 0x3a, 0x12, 0x5d, 0xf9, 0x99, 0x80, 0x9b, 0xca, 0xff, 0xe1, 0xa0, 0x2f, 0x1a, 0x63, 0x3f, 0xee, 0xa3, 0x05, 0x13, 0xc1, 0xf0, 0x71, 0x90, 0xa9, 0x97, 0xac, 0xa0, 0x6e, 0x30, 0x59, 0xaa, 0xd5, 0x6b, 0x6f, 0x0c, 0x9a, 0x76, 0x2c, 0xa2, 0xd3, 0x5a, 0x81, 0xda, 0xb2, 0x90, 0x4d, 0x8f, 0x0d, 0x4d, 0xa9, 0x0a, 0xcd, 0x6d, 0xaa, 0x3e, 0x54, 0x68, 0x67, 0x10, 0x03, 0x13, 0xb7, 0xfa, 0xa3, 0x85, 0x56, 0x2b, 0xc2, 0x1d, 0x20, 0x7b, 0x50, 0xed, 0x90, 0xdd, 0x27, 0xf9, 0x24, 0xf2, 0xcc, 0x21, 0x0d, 0x75, 0x9f, 0xa6, 0xdd, 0x62, 0xc9, 0xca, 0xb5, 0x0f, 0xec, 0x1a, 0x3a, 0xe6, 0x08, 0x84, 0xd6, 0xde, 0x59, 0x4b, 0x37, 0xa8, 0xce, 0x28, 0x5f, 0x2e, 0x74, 0xca, 0x47, 0x0d, 0x0f, 0x30, 0xc4, 0xbe, 0xaf, 0xf3, 0x6c, 0xc7, 0x0d, 0x2d, 0x03, 0x0d, 0x05, 0xd3, 0xe5, 0xbd, 0x80, 0xc1, 0x3e, 0xa8, 0x56, 0x2d, 0xbb, 0x9e, 0x17, 0x2b, 0xcd, 0xce, 0x37, 0x45, 0x36, 0x07, 0x64, 0xdc, 0xbc, 0x15, 0x84, 0x5e, 0xca, 0xd9, 0xa6, 0xab, 0xd9, 0x23, 0xcd, 0xe4, 0x8a, 0x4e, 0xee, 0x74, 0xcf, 0xb3, 0x0d, 0x24, 0x28, 0xeb, 0x95, 0xec, 0xa8, 0xb1, 0x70, 0x29, 0x08, 0x46, 0x82, 0xcd, 0x33, 0xcb, 0x90, 0x33, 0x59, 0xcd, 0x7c, 0xbf, 0xbb, 0x8b, 0x7c, 0xc6, 0xbe, 0x18, 0x36, 0xf7, 0x01, 0x4e, 0xe0, 0x12, 0x81, 0xf9, 0x2d, 0x7a, 0x04, 0x7f, 0x0e, 0x2b, 0xe6, 0x80, 0xd5, 0xb3, 0x87, 0x33, 0x04, 0xcb, 0x9c, 0x05, 0x93, 0xb0, 0x02, 0x37, 0xf1, 0x1d, 0x8b, 0x96, 0x9f, 0xdc, 0x9c, 0xad, 0xe0, 0x8e, 0xd3 }; static const int ucValidSignatureLength = 256; /** * @brief The type of signature method this file defines for the valid signature. */ #define otatestSIG_METHOD otatestSIG_SHA1_RSA