354 lines
17 KiB
C
354 lines
17 KiB
C
|
/*
|
||
|
ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
|
||
|
|
||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
you may not use this file except in compliance with the License.
|
||
|
You may obtain a copy of the License at
|
||
|
|
||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
Unless required by applicable law or agreed to in writing, software
|
||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
See the License for the specific language governing permissions and
|
||
|
limitations under the License.
|
||
|
*/
|
||
|
|
||
|
#include "hal.h"
|
||
|
|
||
|
const uint8_t refDES_ECB_8[]={
|
||
|
0x5A,0x45,0xE3,0x30,0x6B,0x7E,0xF0,0x87,0x27,0xE2,
|
||
|
0x92,0x19,0x09,0xE1,0x4E,0x68,0x84,0x84,0x01,0x45,
|
||
|
0xED,0x86,0xB4,0x41,0x4A,0xE9,0x1F,0x1A,0xC0,0xE0,
|
||
|
0x05,0x90,0x9B,0x8A,0x47,0xD7,0x64,0x5D,0xC5,0x92,
|
||
|
0xB4,0x23,0x6B,0x0E,0x7E,0x4F,0xB8,0x86,0x23,0x75,
|
||
|
0x6D,0x35,0xBF,0xE0,0x1F,0x58,0x23,0xAF,0x11,0x95,
|
||
|
0x64,0xE4,0x4E,0xE1,0xD6,0xBB,0x00,0xCC,0xA9,0xBA,
|
||
|
0x33,0xA1,0xDD,0xAC,0x79,0xCB,0x05,0xA6,0x5F,0x07,
|
||
|
0x98,0xF1,0x9F,0xAA,0x9B,0xE2,0x37,0xCB,0xC1,0xA8,
|
||
|
0x06,0x2C,0x8C,0xD1,0x34,0xE4,0x90,0x72,0x32,0xA8,
|
||
|
0x5B,0x82,0x03,0x36,0x89,0x34,0x8A,0xD7,0xB0,0x63,
|
||
|
0x2E,0x84,0x71,0xCB,0x97,0x01,0x9C,0x4D,0x31,0xE3,
|
||
|
0x00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
|
0x1F,0x1D,0xA0,0xFD,0x48,0xCF,0x6C,0x0F,0x9E,0x9E,
|
||
|
|
||
|
};
|
||
|
const uint8_t refTDES_ECB_24[]={
|
||
|
0xFA,0x2C,0xB2,0x40,0x09,0xB1,0xD7,0x08,0x99,0x68,
|
||
|
0x9E,0x64,0x98,0x41,0x6C,0x25,0x02,0xA9,0x5B,0x2D,
|
||
|
0xE8,0xDA,0x49,0x9A,0x9B,0x75,0xAC,0x98,0x7B,0x75,
|
||
|
0x00,0xB5,0x19,0x81,0x2A,0xA5,0xC4,0x56,0x56,0xA4,
|
||
|
0x31,0x2B,0x5F,0x11,0xC0,0x9A,0xBD,0x88,0xCC,0x61,
|
||
|
0xD2,0x88,0xE5,0xAC,0x68,0xBC,0xBC,0xEF,0x5D,0x20,
|
||
|
0xA5,0xD3,0x9C,0xFC,0xCF,0x84,0xC1,0x0D,0x32,0x0E,
|
||
|
0xAF,0x71,0x1C,0x02,0xF4,0x2D,0xD4,0xFB,0xEC,0x44,
|
||
|
0x6F,0xC4,0x8A,0x30,0x02,0x20,0x4D,0x4C,0x56,0x4F,
|
||
|
0xA4,0x2B,0x2E,0x48,0xDF,0x12,0x46,0x97,0xB0,0x40,
|
||
|
0x29,0xB6,0xAD,0xFA,0xF6,0x1B,0x32,0xF7,0x4E,0xDD,
|
||
|
0x13,0xB1,0x72,0x94,0x6F,0x72,0xE4,0x50,0x02,0x5F,
|
||
|
0xFF,0x71,0x77,0xE4,0x34,0x58,0xEC,0x45,0x49,0xE8,
|
||
|
0x9E,0x09,0x92,0xBF,0xCE,0x4B,0x5B,0x0B,0x5A,0xF4,
|
||
|
0xD6,0xA4,0x16,0xF5,0x1E,0x5B,0xA4,0x88,0x15,0x85,
|
||
|
0xE8,0xA2,0x13,0xAA,0x16,0x47,0x95,0xB5,0xC0,0x94,
|
||
|
0xA3,0x1B,0xAF,0x65,0x07,0x83,0xFF,0xCA,0xEE,0xBA,
|
||
|
0xF4,0xA4,0xD5,0x96,0x2B,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|
0xB4,0x42,0xE8,0x6A,0xB9,0x0B,0xD9,0x26,0x69,0xB8,
|
||
|
0xC2,0x62,0x59,0x4C,0xD6,0x2F,0xAB,0x08,0x7A,0xBF,
|
||
|
0xAC,0xAA,0x71,0x8C,0xE9,0x11,0x13,0xB3,0xD3,0xEB,
|
||
|
0xA5,0xDB,0x57,0x8A,0x45,0xCB,0x50,0x7E,0xE3,0xF0,
|
||
|
0xEF,0x04,0xC5,0x11,0xF0,0x7F,0x5D,0xA8,0xA6,0x02,
|
||
|
0x2E,0xCC,0xA6,0xB7,0xE4,0x25,0x96,0x12,0xCF,0x73,
|
||
|
0xE6,0x69,0x23,0x08,0x62,0x9D,0xE2,0x4D,0x6C,0x46,
|
||
|
0x0F,0x15,0x15,0x28,0xF0,0x78,0x17,0x2B,0x2C,0x14,
|
||
|
|
||
|
};
|
||
|
const uint8_t refTDES_CBC_16[]={
|
||
|
0x0B,0x04,0xBB,0x49,0x87,0xB0,0x7B,0xB0,0xAB,0xBD,
|
||
|
0x6E,0x9F,0x10,0x42,0x8B,0x3A,0x58,0x0D,0xA7,0x8F,
|
||
|
0x54,0xEC,0x24,0x5A,0xE2,0xE2,0xB9,0x15,0x34,0x2B,
|
||
|
0x73,0x53,0x6F,0x4C,0x58,0x3B,0xA8,0x83,0x2D,0x8A,
|
||
|
0x37,0xC8,0x9A,0x75,0xCA,0xC2,0x36,0xE8,0x02,0x9F,
|
||
|
0x40,0x9B,0xB1,0x21,0x1A,0x96,0x44,0x46,0x9B,0xCB,
|
||
|
0xB8,0xF0,0xF5,0x8F,0x4E,0xB4,0xE6,0xD4,0x7E,0xC3,
|
||
|
0xFE,0x42,0xD6,0x6C,0x08,0x9E,0x27,0xDB,0xE7,0x73,
|
||
|
0x54,0x17,0x6C,0x64,0x58,0x2F,0x44,0x66,0xC2,0xEC,
|
||
|
0xFE,0x85,0x46,0xDD,0x19,0xFB,0xD8,0x6C,0x2D,0x86,
|
||
|
0xB4,0x89,0x1B,0x65,0xD2,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xD8,
|
||
|
0x23,0x29,0x8E,0xD1,0x8C,0x3C,0x61,0x29,0x91,0x49,
|
||
|
0x3F,0x33,0xE5,0xF7,0x19,0xCA,0xE7,0x81,0x97,0x18,
|
||
|
0xC6,0xD3,0xD3,0xB6,0x79,0x53,0x38,0x76,0xF6,0x15,
|
||
|
0xD2,0xA6,0xDC,0xBD,0x50,0x47,0x16,0x2D,0x6C,0x31,
|
||
|
0x53,0x69,0x15,0x06,0x01,0x12,0x71,0xA1,0xC9,0x9D,
|
||
|
0xEE,0x1A,0x40,0x44,0x61,0x08,0x65,0xA1,0x34,0x1C,
|
||
|
0x6F,0xAF,0x30,0x4A,0xC0,0xD9,0x4E,0x58,0xFE,0x97,
|
||
|
0x95,0xA4,0xB5,0xCA,0xCD,0x90,0x67,0xDC,0xBE,0x10,
|
||
|
0x28,0x67,0xAF,0x67,0x16,0x25,0xD9,0x96,0xDC,0x5E,
|
||
|
0x26,0xD3,0x55,0x70,0xE2,0xFF,0x88,0x01,0x1E,0x2C,
|
||
|
0x3C,0x8A,0xD6,0x34,0xE9,0x91,0x4D,0xFD,0xAD,0x6E,
|
||
|
0xC9,0x15,0xFA,0x92,0xA4,0x0E,0xBF,0x8B,0x9B,0xB5,
|
||
|
0xB9,0x2E,0xE3,0xA1,0x71,0xA9,0xE6,0xD5,0xC1,0x36,
|
||
|
0x56,0xF6,0xCB,0xED,0x66,0x61,0x3B,0x00,0x5B,0x44,
|
||
|
0xEC,0x9F,0xD7,0xF0,0x04,0x34,0xB3,0x1A,0xF5,0x5B,
|
||
|
0x49,0x6F,0x08,0xBB,0xDD,0xD1,0x02,0x28,0x23,0xB5,
|
||
|
0x8F,0x19,0x1E,0x01,0x81,0x4E,0x47,0xCC,0x86,0xB4,
|
||
|
0x03,0x89,0x10,0xF0,0x7F,0xCD,0x21,0x72,0x22,0x0A,
|
||
|
0x5B,0xBD,0x70,0xC9,0xC9,0x79,0x79,0x1E,0x16,0x66,
|
||
|
0x3C,0xF4,0x0A,0x9D,0x50,0x9A,0xCC,0x49,0x27,0x8B,
|
||
|
0x30,0x8C,0x62,0xFF,0x2C,0xF8,0x79,0xBD,0x4F,0x31,
|
||
|
0x6E,0xBC,0x5A,0x21,0xB5,0xB2,0xEF,0x1D,0x95,0x19,
|
||
|
0xCE,0x38,0x7E,0x06,0xA5,0xB8,0x71,0xC2,0x72,0x5F,
|
||
|
0x2B,0x9F,0x04,0x5E,0x94,0x46,0xD3,0x6D,0xFC,0x88,
|
||
|
0x06,0xDD,0x79,0xB4,0x23,0x52,0x77,0x2F,0x93,0x17,
|
||
|
0x0C,0x3D,0x24,0xDD,0x77,0x91,0x27,0xA1,0x50,0x4E,
|
||
|
0x25,0x99,0x6B,0x11,0x06,0x80,0xC3,0x0C,0x47,0xB1,
|
||
|
0xDB,0x31,0xDE,0x4D,0x05,0xAF,0x2C,0x73,0x94,0xA3,
|
||
|
0x79,0xBB,0x03,0xB8,0xBF,0x8F,0x53,0x2E,0xBF,0x5F,
|
||
|
0xA8,0x23,0x8D,0x34,0x3A,0x28,0xB4,0x02,0xD0,0x95,
|
||
|
0x78,0x07,0x14,0x55,0x2A,0x2C,0xE0,0x9E,0xA9,0x67,
|
||
|
0x96,0xFE,0xBB,0xE0,0x4D,0xE5,0x30,0xCB,0xA2,0x83,
|
||
|
0x6A,0xA9,0x0D,0x96,0xA3,0x24,0x78,0xB1,0xD4,0xF7,
|
||
|
0x07,0x70,0xE0,0xBE,0x16,0xA0,0xE1,0xB4,0x97,0x06,
|
||
|
|
||
|
};
|
||
|
const uint8_t refTDES_CBC_24[]={
|
||
|
0x78,0xCA,0xC6,0x02,0x50,0x7C,0x1F,0x56,0xCB,0x91,
|
||
|
0x27,0x7B,0xEA,0xD3,0x8F,0x9A,0xF8,0xC9,0x61,0xD0,
|
||
|
0xAC,0x67,0x4C,0xE3,0x54,0xC3,0x4A,0xB0,0xDF,0x67,
|
||
|
0xE8,0xF9,0x10,0xEC,0x3F,0x78,0x52,0x57,0xE8,0x66,
|
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