提交 eb9e63df 编写于 作者: D Dr. Stephen Henson

Extension of DRBG selftests using new data.

Test PR and no PR and test initial generate before the reseed too.

Move selftest data to separate fips_drbg_selftest.h header file.
上级 fa85c1db
......@@ -60,9 +60,13 @@
#include "fips_rand_lcl.h"
#include "fips_locl.h"
#include "fips_drbg_selftest.h"
typedef struct {
int nid;
unsigned int flags;
/* KAT data for no PR */
const unsigned char *ent;
size_t entlen;
const unsigned char *nonce;
......@@ -71,14 +75,37 @@ typedef struct {
size_t perslen;
const unsigned char *adin;
size_t adinlen;
const unsigned char *entpr;
size_t entprlen;
const unsigned char *ading;
size_t adinglen;
const unsigned char *entg;
size_t entglen;
const unsigned char *entreseed;
size_t entreseedlen;
const unsigned char *adinreseed;
size_t adinreseedlen;
const unsigned char *adin2;
size_t adin2len;
const unsigned char *kat;
size_t katlen;
const unsigned char *kat2;
size_t kat2len;
/* KAT data for PR */
const unsigned char *ent_pr;
size_t entlen_pr;
const unsigned char *nonce_pr;
size_t noncelen_pr;
const unsigned char *pers_pr;
size_t perslen_pr;
const unsigned char *adin_pr;
size_t adinlen_pr;
const unsigned char *entpr_pr;
size_t entprlen_pr;
const unsigned char *ading_pr;
size_t adinglen_pr;
const unsigned char *entg_pr;
size_t entglen_pr;
const unsigned char *kat_pr;
size_t katlen_pr;
const unsigned char *kat2_pr;
size_t kat2len_pr;
} DRBG_SELFTEST_DATA;
#define make_drbg_test_data(nid, flag, pr) { nid, flag | DRBG_FLAG_TEST, \
......@@ -86,900 +113,25 @@ typedef struct {
pr##_nonce, sizeof(pr##_nonce), \
pr##_personalizationstring, sizeof(pr##_personalizationstring), \
pr##_additionalinput, sizeof(pr##_additionalinput), \
pr##_entropyinputpr, sizeof(pr##_entropyinputpr), \
pr##_entropyinputreseed, sizeof(pr##_entropyinputreseed), \
pr##_additionalinputreseed, sizeof(pr##_additionalinputreseed), \
pr##_additionalinput2, sizeof(pr##_additionalinput2), \
pr##_entropyinputpr2, sizeof(pr##_entropyinputpr2), \
pr##_int_returnedbits, sizeof(pr##_int_returnedbits), \
pr##_returnedbits, sizeof(pr##_returnedbits), \
pr##_pr_entropyinput, sizeof(pr##_pr_entropyinput), \
pr##_pr_nonce, sizeof(pr##_pr_nonce), \
pr##_pr_personalizationstring, sizeof(pr##_pr_personalizationstring), \
pr##_pr_additionalinput, sizeof(pr##_pr_additionalinput), \
pr##_pr_entropyinputpr, sizeof(pr##_pr_entropyinputpr), \
pr##_pr_additionalinput2, sizeof(pr##_pr_additionalinput2), \
pr##_pr_entropyinputpr2, sizeof(pr##_pr_entropyinputpr2), \
pr##_pr_int_returnedbits, sizeof(pr##_pr_int_returnedbits), \
pr##_pr_returnedbits, sizeof(pr##_pr_returnedbits), \
}
#define make_drbg_test_data_df(nid, pr) \
make_drbg_test_data(nid, DRBG_FLAG_CTR_USE_DF, pr)
/* AES-128 use df PR */
static const unsigned char aes_128_use_df_entropyinput[] =
{
0x98,0x38,0x99,0x81,0x1d,0x56,0x1a,0x04,0xb0,0x50,0xcd,0x14,
0xc3,0x90,0x0b,0x4f
};
static const unsigned char aes_128_use_df_nonce[] =
{
0xa8,0xa0,0x80,0x8a,0x65,0xb7,0x38,0x22
};
static const unsigned char aes_128_use_df_personalizationstring[] =
{
0x67,0x4f,0x85,0x01,0x15,0x51,0x85,0xdd,0x97,0xda,0xf7,0x09,
0xbc,0x61,0xaf,0x23
};
static const unsigned char aes_128_use_df_additionalinput[] =
{
0x01,0xba,0xa8,0x13,0x9e,0xd4,0xb7,0xff,0x86,0x34,0x01,0xa0,
0xb6,0x17,0x96,0x55
};
static const unsigned char aes_128_use_df_entropyinputpr[] =
{
0x60,0x76,0xf6,0x12,0x6b,0x92,0xbe,0xd7,0x75,0x6e,0x78,0x1f,
0x0d,0xc1,0x0d,0x56
};
static const unsigned char aes_128_use_df_additionalinput2[] =
{
0xf0,0xd6,0x5b,0xa3,0x7c,0x1e,0xa3,0x65,0x08,0xf9,0xdd,0x90,
0xde,0x5f,0xb4,0x27
};
static const unsigned char aes_128_use_df_entropyinputpr2[] =
{
0x34,0x55,0x02,0xa9,0x30,0xf0,0x78,0x0a,0xa2,0xae,0x74,0x46,
0xe5,0xad,0xbb,0xd6
};
static const unsigned char aes_128_use_df_returnedbits[] =
{
0x48,0x52,0xb6,0x9f,0xf2,0xfe,0xe1,0x12,0xaf,0x22,0x87,0xd7,
0x46,0x64,0x96,0xec
};
/* AES-192 use df PR */
static const unsigned char aes_192_use_df_entropyinput[] =
{
0x12,0xf6,0xff,0xc5,0x81,0x8c,0x15,0xd7,0x33,0x0c,0x4f,0x45,
0xbf,0x2a,0x97,0xd2,0xe0,0xe0,0xbd,0x48,0x4e,0x83,0x76,0x25
};
static const unsigned char aes_192_use_df_nonce[] =
{
0x35,0xc8,0x16,0x8c,0xbd,0x1f,0x53,0xc4,0x6e,0x47,0x3a,0x74,
0x83,0xe6,0xe4,0x78
};
static const unsigned char aes_192_use_df_personalizationstring[] =
{
0xd6,0xe2,0x27,0x88,0xf4,0xce,0x9d,0xfc,0x92,0xde,0x07,0x57,
0x43,0x74,0x17,0x6e,0x63,0x54,0xaf,0x5a,0x3c,0xf8,0x23,0x65,
0x5a,0x15,0xb0,0x35,0x2a,0x6c,0x3c,0x3a
};
static const unsigned char aes_192_use_df_additionalinput[] =
{
0xad,0xa4,0x47,0xa4,0xcf,0x46,0x7b,0xf7,0x19,0xcc,0xda,0xbe,
0x11,0x42,0x85,0xaa,0x21,0x16,0x27,0xe6,0x35,0xdf,0xb5,0x87,
0x96,0x68,0x64,0x35,0x08,0x02,0xe9,0x19
};
static const unsigned char aes_192_use_df_entropyinputpr[] =
{
0x6f,0x41,0x2d,0x5e,0xd6,0xc9,0xf8,0x6a,0x22,0x00,0xe0,0xfb,
0x4b,0xcd,0xbe,0x2d,0x98,0xff,0x1b,0xe2,0xb9,0x95,0x73,0xac
};
static const unsigned char aes_192_use_df_additionalinput2[] =
{
0x51,0xea,0xd8,0x8e,0xa0,0xd7,0x9c,0x22,0x3c,0x01,0xf6,0xdb,
0xe9,0xe4,0x60,0x1e,0x54,0x56,0x3b,0x5c,0xd2,0xf3,0xa0,0x1d,
0x5c,0xd0,0x85,0x48,0xc9,0x5f,0x12,0xb7
};
static const unsigned char aes_192_use_df_entropyinputpr2[] =
{
0xf7,0x1f,0x9f,0x0e,0x14,0x30,0xde,0x4c,0xf9,0x34,0x49,0xc5,
0x24,0x91,0xe3,0x30,0xfd,0x5f,0x1e,0x79,0x30,0xf5,0x58,0xe6
};
static const unsigned char aes_192_use_df_returnedbits[] =
{
0x5b,0x8a,0xca,0x2e,0x74,0xb6,0x6f,0x96,0x48,0xb0,0xe4,0xc1,
0x68,0x40,0xac,0xc7
};
/* AES-256 use df PR */
static const unsigned char aes_256_use_df_entropyinput[] =
{
0x2a,0x02,0xbe,0xaa,0xba,0xb4,0x6a,0x73,0x53,0x85,0xa9,0x2a,
0xae,0x4a,0xdc,0xeb,0xe8,0x07,0xfb,0xf3,0xbc,0xe3,0xf4,0x2e,
0x00,0x53,0x46,0x00,0x64,0x80,0xdd,0x57
};
static const unsigned char aes_256_use_df_nonce[] =
{
0x2c,0x86,0xa2,0xf9,0x70,0xb5,0xca,0xd3,0x9a,0x08,0xdc,0xb6,
0x6b,0xce,0xe5,0x05
};
static const unsigned char aes_256_use_df_personalizationstring[] =
{
0xdb,0x6c,0xe1,0x84,0xbe,0x07,0xae,0x55,0x4e,0x34,0x5d,0xb8,
0x47,0x98,0x85,0xe0,0x3d,0x3e,0x9f,0x60,0xfa,0x1c,0x7d,0x57,
0x19,0xe5,0x09,0xdc,0xe2,0x10,0x41,0xab
};
static const unsigned char aes_256_use_df_additionalinput[] =
{
0x1d,0xc3,0x11,0x93,0xcb,0xc4,0xf6,0xbb,0x57,0xb0,0x09,0x70,
0xb9,0xc6,0x05,0x86,0x4e,0x75,0x95,0x7d,0x3d,0xec,0xce,0xb4,
0x0b,0xe4,0xef,0xd1,0x7b,0xab,0x56,0x6f
};
static const unsigned char aes_256_use_df_entropyinputpr[] =
{
0x8f,0xb9,0xab,0xf9,0x33,0xcc,0xbe,0xc6,0xbd,0x8b,0x61,0x5a,
0xec,0xc6,0x4a,0x5b,0x03,0x21,0xe7,0x37,0x03,0x02,0xbc,0xa5,
0x28,0xb9,0xfe,0x7a,0xa8,0xef,0x6f,0xb0
};
static const unsigned char aes_256_use_df_additionalinput2[] =
{
0xd6,0x98,0x63,0x48,0x94,0x9f,0x26,0xf7,0x1f,0x44,0x13,0x23,
0xa7,0xde,0x09,0x12,0x90,0x04,0xce,0xbc,0xac,0x82,0x70,0x58,
0xba,0x7d,0xdc,0x25,0x1e,0xe4,0xbf,0x7c
};
static const unsigned char aes_256_use_df_entropyinputpr2[] =
{
0xe5,0x04,0xef,0x7c,0x8d,0x02,0xd7,0x68,0x95,0x4c,0x64,0x34,
0x30,0x3a,0xcb,0x07,0xc9,0x0a,0xef,0x26,0xc6,0x57,0x43,0xfb,
0x7d,0xbe,0xe2,0x61,0x75,0xcd,0xee,0x34
};
static const unsigned char aes_256_use_df_returnedbits[] =
{
0x75,0x6d,0x16,0xef,0x14,0xae,0xd9,0xc2,0x28,0x0b,0x66,0xff,
0x20,0x1f,0x21,0x33
};
/* AES-128 no df PR */
static const unsigned char aes_128_no_df_entropyinput[] =
{
0xbe,0x91,0xb9,0x09,0x91,0x13,0x0b,0xbd,0x7b,0x95,0x77,0xed,
0xf2,0x00,0xff,0x2a,0xec,0xbd,0x7a,0x11,0x59,0xe1,0x32,0x1a,
0xe3,0x9a,0xbd,0xa2,0xe4,0xd9,0x1a,0x39
};
static const unsigned char aes_128_no_df_nonce[] =
{
0x39,0xeb,0x7a,0x42,0x0b,0x7f,0x4f,0xd5
};
static const unsigned char aes_128_no_df_personalizationstring[] =
{
0xd0,0xe4,0x9c,0xf6,0x2f,0xc8,0xba,0x6d,0xb9,0x91,0x8f,0xc1,
0x45,0x5b,0xb9,0x4f,0xdb,0x36,0xd6,0x71,0x2c,0x4b,0x2a,0x4c,
0x50,0x4c,0x74,0xdb,0xc5,0x20,0x0b,0x3b
};
static const unsigned char aes_128_no_df_additionalinput[] =
{
0x7c,0x35,0x81,0x03,0x58,0x93,0x24,0xf7,0x9c,0x98,0x4a,0x9d,
0x94,0xbd,0x9d,0x77,0x64,0xda,0xa4,0x67,0x66,0xb7,0x43,0xde,
0xc5,0xd5,0x72,0x42,0x5a,0x7c,0x41,0x9f
};
static const unsigned char aes_128_no_df_entropyinputpr[] =
{
0x63,0xf6,0x0e,0xfe,0x56,0xad,0x8f,0x37,0xa8,0xa1,0x6a,0x83,
0x01,0xac,0x51,0xe0,0x86,0x26,0xce,0x5c,0x57,0x14,0xd8,0xde,
0x4d,0x93,0xb6,0x35,0xf4,0x85,0x18,0x60
};
static const unsigned char aes_128_no_df_additionalinput2[] =
{
0x90,0x0f,0x35,0x81,0xc5,0xf5,0xc8,0x1b,0x80,0x99,0xcd,0xe2,
0xbb,0xe2,0xc7,0x65,0x40,0x74,0x50,0x2b,0x89,0xb4,0x16,0x60,
0xd7,0x1e,0x15,0xbf,0x91,0xc9,0x15,0xc2
};
static const unsigned char aes_128_no_df_entropyinputpr2[] =
{
0xc7,0x9f,0xd6,0x9b,0xe2,0x74,0x3e,0x8c,0x12,0xdd,0x41,0xcd,
0x51,0x6b,0xd4,0x71,0x3e,0xd0,0x36,0xc7,0xb9,0xa6,0xaf,0xca,
0xc0,0x7e,0x89,0xc4,0x88,0x2b,0x4e,0x43
};
static const unsigned char aes_128_no_df_returnedbits[] =
{
0x8c,0x7f,0x69,0xbf,0xb8,0x07,0x17,0xa6,0x09,0xef,0xd2,0x0a,
0x5f,0x20,0x18,0x2f
};
/* AES-192 no df PR */
static const unsigned char aes_192_no_df_entropyinput[] =
{
0xd5,0xcb,0x5b,0xc5,0x5b,0xa6,0x97,0xb6,0x1e,0x57,0x92,0xbb,
0x14,0x72,0xeb,0xae,0x44,0x85,0x99,0xa3,0xa3,0x24,0xe5,0x91,
0x2e,0x34,0xa7,0x3f,0x48,0x7a,0xc4,0x72,0x54,0x65,0xe6,0x57,
0x94,0x1a,0x7c,0x2d
};
static const unsigned char aes_192_no_df_nonce[] =
{
0x74,0x7a,0x38,0x81,0xef,0xca,0xd1,0xb6,0x7b,0xb5,0x1e,0x62,
0xf9,0x80,0x2c,0xe5
};
static const unsigned char aes_192_no_df_personalizationstring[] =
{
0x03,0xf8,0xbe,0xe8,0x6a,0x90,0x2a,0x4f,0xbd,0x80,0xd0,0x31,
0xf0,0x59,0xa3,0xf6,0x87,0xd8,0x8d,0x0d,0xac,0x27,0xa2,0xd2,
0x91,0x72,0xa5,0xc1,0x07,0xac,0xbf,0xdb,0x5d,0xa1,0x7d,0x56,
0x7d,0x3f,0x09,0x8b
};
static const unsigned char aes_192_no_df_additionalinput[] =
{
0x3e,0x89,0x1b,0x17,0xcb,0xe3,0xc8,0x76,0x71,0x0d,0xaf,0x97,
0x1e,0x73,0xa6,0xc4,0x88,0x3d,0x46,0xad,0xf0,0xba,0xc3,0x7e,
0x17,0x10,0x0d,0x20,0x80,0x23,0x26,0xcc,0xe6,0xc4,0xc4,0xd8,
0xfe,0x1d,0x2a,0xbc
};
static const unsigned char aes_192_no_df_entropyinputpr[] =
{
0x3f,0x33,0xb8,0x1b,0xe1,0x1b,0xe7,0xbe,0x68,0x6f,0xd2,0xd8,
0x6f,0xb6,0xf0,0xd2,0xa1,0x1c,0x83,0x24,0xfe,0x5d,0xf2,0xe9,
0x4b,0xf0,0x63,0xa2,0xd8,0x76,0x9e,0x49,0x78,0x64,0x1f,0x98,
0xbc,0xee,0x7c,0x99
};
static const unsigned char aes_192_no_df_additionalinput2[] =
{
0x54,0x48,0xf9,0x6a,0x86,0x93,0xf3,0x7b,0x02,0x1b,0xf6,0x46,
0x3a,0x49,0x02,0x87,0x3f,0x54,0x82,0x7f,0xa1,0x45,0x41,0xa5,
0x88,0x4b,0xaa,0x90,0x12,0x40,0x46,0x22,0xed,0x7a,0x72,0xf7,
0x36,0xd5,0x5f,0x0f
};
static const unsigned char aes_192_no_df_entropyinputpr2[] =
{
0x00,0xdf,0xa1,0x50,0xc1,0xb9,0x82,0x7f,0x65,0xea,0x0f,0x14,
0x79,0xfe,0x6a,0x95,0x4b,0x96,0xae,0x89,0x28,0x52,0x49,0x05,
0xd9,0x00,0x9e,0x79,0x5e,0x04,0xdb,0xbb,0xec,0x09,0x16,0x53,
0x23,0xe9,0xac,0x08
};
static const unsigned char aes_192_no_df_returnedbits[] =
{
0x48,0xd6,0x66,0x61,0x93,0x8d,0xff,0x7d,0x42,0xf4,0x41,0x9a,
0x01,0x2a,0x34,0x09
};
/* AES-256 no df PR */
static const unsigned char aes_256_no_df_entropyinput[] =
{
0x7e,0x83,0x3f,0xa6,0x39,0xdc,0xcb,0x38,0x17,0x6a,0xa3,0x59,
0xa9,0x8c,0x1f,0x50,0xd3,0xdb,0x34,0xdd,0xa4,0x39,0x65,0xe4,
0x77,0x17,0x08,0x57,0x49,0x04,0xbd,0x68,0x5c,0x7d,0x2a,0xee,
0x0c,0xf2,0xfb,0x16,0xef,0x16,0x18,0x4d,0x32,0x6a,0x26,0x6c
};
static const unsigned char aes_256_no_df_nonce[] =
{
0xa3,0x8a,0xa4,0x6d,0xa6,0xc1,0x40,0xf8,0xa3,0x02,0xf1,0xac,
0xf3,0xea,0x7f,0x2d
};
static const unsigned char aes_256_no_df_personalizationstring[] =
{
0xc0,0x54,0x1e,0xa5,0x93,0xd9,0x8b,0x2b,0x43,0x15,0x2c,0x07,
0x26,0x25,0xc7,0x08,0xf0,0xb3,0x4b,0x44,0x96,0xfe,0xc7,0xc5,
0x64,0x27,0xaa,0x78,0x5b,0xbc,0x40,0x51,0xce,0x89,0x6b,0xc1,
0x3f,0x9c,0xa0,0x5c,0x75,0x98,0x24,0xc5,0xe1,0x3e,0x86,0xdb
};
static const unsigned char aes_256_no_df_additionalinput[] =
{
0x0e,0xe3,0x0f,0x07,0x90,0xe2,0xde,0x20,0xb6,0xf7,0x6f,0xef,
0x87,0xdc,0x7f,0xc4,0x0d,0x9d,0x05,0x31,0x91,0x87,0x8c,0x9a,
0x19,0x53,0xd2,0xf8,0x20,0x91,0xa0,0xef,0x97,0x59,0xea,0x12,
0x1b,0x2f,0x29,0x74,0x76,0x35,0xf7,0x71,0x5a,0x96,0xeb,0xbc
};
static const unsigned char aes_256_no_df_entropyinputpr[] =
{
0x37,0x26,0x9a,0xa6,0x28,0xe0,0x35,0x78,0x12,0x42,0x44,0x5c,
0x55,0xbc,0xc8,0xb6,0x1f,0x24,0xf3,0x32,0x88,0x02,0x69,0xa7,
0xed,0x1d,0xb7,0x4d,0x8b,0x44,0x12,0x21,0x5e,0x60,0x53,0x96,
0x3b,0xb9,0x31,0x7f,0x2a,0x87,0xbf,0x3c,0x07,0xbb,0x27,0x22
};
static const unsigned char aes_256_no_df_additionalinput2[] =
{
0xf1,0x24,0x35,0xa6,0x8c,0x93,0x28,0x7e,0x84,0xea,0x3d,0x27,
0x44,0x18,0xc9,0x13,0x73,0x49,0xb9,0x83,0x79,0x15,0x29,0x53,
0x2f,0xef,0x43,0x06,0xe7,0xcb,0x5c,0x0f,0x9f,0x10,0x4c,0x60,
0x7f,0xbf,0x0c,0x37,0x9b,0xe4,0x94,0x26,0xe5,0x3b,0xf5,0x63
};
static const unsigned char aes_256_no_df_entropyinputpr2[] =
{
0xdc,0x91,0x48,0x11,0x63,0x7b,0x79,0x41,0x36,0x8c,0x4f,0xe2,
0xc9,0x84,0x04,0x9c,0xdc,0x5b,0x6c,0x8d,0x61,0x52,0xea,0xfa,
0x92,0x3b,0xb4,0x36,0x4c,0x06,0x4a,0xd1,0xb1,0x8e,0x32,0x03,
0xfd,0xa4,0xf7,0x5a,0xa6,0x5c,0x63,0xa1,0xb9,0x96,0xfa,0x12
};
static const unsigned char aes_256_no_df_returnedbits[] =
{
0x1c,0xba,0xfd,0x48,0x0f,0xf4,0x85,0x63,0xd6,0x7d,0x91,0x14,
0xef,0x67,0x6b,0x7f
};
/* SHA-1 PR */
static const unsigned char sha1_entropyinput[] =
{
0x5b,0xaf,0x30,0x1a,0xdc,0xd1,0x04,0xd7,0x95,0x72,0xd2,0xfb,
0xec,0x2d,0x62,0x2b
};
static const unsigned char sha1_nonce[] =
{
0xf3,0xd9,0xcb,0x92,0x5f,0x50,0x4c,0x99
};
static const unsigned char sha1_personalizationstring[] =
{
0x8f,0x56,0x70,0xd9,0x27,0xa2,0xb4,0xf1,0xb3,0xad,0xcf,0x10,
0x06,0x16,0x5c,0x11
};
static const unsigned char sha1_additionalinput[] =
{
0x49,0xdd,0x0c,0xb4,0xab,0x84,0xe1,0x7e,0x94,0x20,0xad,0x6c,
0xd7,0xd2,0x0b,0x84
};
static const unsigned char sha1_entropyinputpr[] =
{
0x23,0x4a,0xaf,0xf7,0x1a,0x0b,0x7e,0x51,0xdd,0x23,0x51,0x82,
0x2c,0x8c,0xa6,0xc5
};
static const unsigned char sha1_additionalinput2[] =
{
0x59,0xe6,0x93,0xcb,0x38,0x23,0xf5,0x7b,0x93,0x5a,0x4d,0xfa,
0x11,0xb8,0x88,0xde
};
static const unsigned char sha1_entropyinputpr2[] =
{
0x2e,0x00,0x78,0x5a,0xcd,0x30,0xea,0x73,0x37,0x8a,0x0d,0x12,
0x50,0x28,0x28,0x03
};
static const unsigned char sha1_returnedbits[] =
{
0xe7,0x87,0x8b,0x01,0xc1,0xd3,0xd8,0x43,0xd4,0x8f,0xcd,0x24,
0x54,0x67,0xa2,0x6e,0x17,0x94,0x73,0x1c
};
/* SHA-224 PR */
static const unsigned char sha224_entropyinput[] =
{
0xfc,0x31,0xc1,0x87,0x43,0x07,0xb1,0xe5,0x71,0x48,0x5d,0x0e,
0xad,0xf8,0x68,0x09,0x6f,0xfe,0x80,0x2a,0xc1,0x12,0xb8,0xa6
};
static const unsigned char sha224_nonce[] =
{
0xfd,0xba,0x25,0x2e,0xc1,0x7c,0x4e,0xa1,0x4d,0xef,0xeb,0x5d
};
static const unsigned char sha224_personalizationstring[] =
{
0xc9,0x15,0xe4,0x8c,0x2a,0x4c,0xc9,0xe6,0x23,0x5c,0xb8,0x5a,
0x97,0x89,0x6a,0x10,0x75,0x68,0x27,0x00,0x0e,0x6f,0x44,0x1e
};
static const unsigned char sha224_additionalinput[] =
{
0xd3,0xab,0x74,0x74,0xe7,0x80,0x87,0x9e,0x89,0x08,0xbe,0xf1,
0x99,0x09,0x26,0xa4,0x2b,0x8c,0xb7,0xa0,0xc2,0xcc,0xae,0x0a
};
static const unsigned char sha224_entropyinputpr[] =
{
0xbd,0xc1,0x21,0x62,0x43,0x19,0x25,0x15,0x19,0xc5,0xcd,0x53,
0x9e,0xb4,0x17,0xff,0xaa,0x03,0xf6,0x5a,0x4d,0x69,0x28,0x0b
};
static const unsigned char sha224_additionalinput2[] =
{
0xdb,0xf5,0x57,0xea,0x5b,0xc8,0x0a,0xa9,0x32,0x72,0xcf,0x7d,
0xa4,0xeb,0x4f,0xbf,0x64,0x5d,0x74,0x04,0x0e,0x4e,0x0f,0xed
};
static const unsigned char sha224_entropyinputpr2[] =
{
0xab,0xce,0xe1,0xfd,0xaa,0x35,0x5c,0x0a,0xfe,0xd8,0x18,0xac,
0x92,0x79,0x79,0x53,0xbc,0xb5,0x45,0xf6,0xf9,0x73,0x7f,0x24
};
static const unsigned char sha224_returnedbits[] =
{
0xb2,0xc2,0x40,0xc4,0x2a,0x25,0x63,0xdb,0x99,0x59,0x7b,0x7b,
0xee,0xdb,0x51,0x8d,0x18,0x4c,0x09,0x26,0x22,0x1a,0xe9,0x76,
0x54,0x5f,0xb5,0x28
};
/* SHA-256 PR */
static const unsigned char sha256_entropyinput[] =
{
0xbc,0x67,0x4e,0x95,0xf1,0xca,0x71,0xdd,0xd3,0x97,0x3a,0x39,
0x3f,0x3d,0x7f,0xf2,0x99,0x02,0xcf,0x12,0x02,0xea,0xcc,0xf3,
0xd7,0xe7,0xcc,0x08,0x6c,0x41,0xb1,0xed
};
static const unsigned char sha256_nonce[] =
{
0x44,0x06,0xa7,0x61,0x15,0x0a,0x6a,0x2d,0xa9,0x18,0x10,0xb5,
0x6d,0xf0,0xd4,0xf7
};
static const unsigned char sha256_personalizationstring[] =
{
0x8f,0x39,0xd5,0x6a,0x46,0xde,0xa2,0x57,0xdf,0x39,0xdb,0xca,
0x13,0xca,0x51,0x0f,0x43,0x2a,0x77,0x3a,0x38,0x7a,0x3b,0x35,
0x1e,0x13,0x26,0x0e,0xc1,0x6b,0xb6,0x81
};
static const unsigned char sha256_additionalinput[] =
{
0x95,0x01,0xbe,0x52,0xaa,0xc4,0x32,0x5a,0x3c,0xea,0x57,0xc4,
0x5c,0xfa,0x25,0x4e,0xc5,0xf3,0xc2,0xa6,0x39,0xce,0x00,0x97,
0x19,0x50,0x17,0x71,0x44,0x13,0xa5,0xbd
};
static const unsigned char sha256_entropyinputpr[] =
{
0x8e,0x8a,0x19,0x03,0xa7,0x77,0xaa,0x64,0x4f,0x11,0x45,0x1d,
0x66,0x74,0x88,0xdf,0x2c,0x9b,0xc3,0xc8,0xbb,0x8c,0x99,0x34,
0xc6,0xc7,0xdb,0xc1,0x92,0xef,0xa3,0xa3
};
static const unsigned char sha256_additionalinput2[] =
{
0x2b,0x91,0x7f,0xf3,0x78,0x3f,0x18,0x73,0x7c,0x5f,0xc2,0xda,
0x1d,0x8c,0xc4,0xcd,0x74,0x4d,0xc1,0x7a,0x6c,0xe2,0x73,0x07,
0x9d,0x55,0xa8,0x42,0x69,0xc0,0x7c,0x85
};
static const unsigned char sha256_entropyinputpr2[] =
{
0x4c,0x3f,0xee,0x8b,0x98,0x0e,0x55,0x7e,0xab,0xc3,0xd3,0x0e,
0x35,0x33,0x72,0x75,0x9f,0x4b,0x87,0xce,0x05,0xbe,0xd4,0x6b,
0x70,0xec,0xdb,0x5a,0x57,0x14,0x83,0x34
};
static const unsigned char sha256_returnedbits[] =
{
0xa5,0x2c,0xab,0x93,0x63,0x57,0x5d,0x60,0x80,0x4c,0x71,0xbb,
0xc2,0x3d,0x43,0x13,0xd8,0xe1,0x60,0x63,0x5e,0xf8,0xb1,0x4c,
0x93,0x06,0x86,0x9e,0x03,0x0a,0x16,0x75
};
/* SHA-384 PR */
static const unsigned char sha384_entropyinput[] =
{
0xad,0x6c,0xfb,0xdd,0x40,0xd9,0xf1,0x0a,0xc6,0xe4,0x28,0xf9,
0x8c,0xb1,0x66,0xce,0x7e,0x7f,0xbb,0xea,0xcd,0x79,0x3d,0x54,
0xc6,0xc0,0x07,0x68,0xf0,0xb7,0x73,0xc5
};
static const unsigned char sha384_nonce[] =
{
0xfb,0xe1,0xb2,0x81,0x77,0xb0,0x14,0x94,0xae,0xbb,0x8d,0x01,
0xfb,0x74,0xc9,0xa1
};
static const unsigned char sha384_personalizationstring[] =
{
0x02,0x8e,0xa9,0xc2,0x7e,0x0e,0x78,0xea,0x29,0xca,0x19,0xd4,
0x58,0x89,0x71,0x45,0x18,0xd9,0x1f,0xc0,0x8f,0x92,0x02,0xb8,
0x90,0xa7,0xec,0xf6,0x7f,0x33,0xa6,0x47
};
static const unsigned char sha384_additionalinput[] =
{
0x98,0x0e,0xe3,0x3c,0x8e,0x6b,0x82,0xc0,0x56,0xd0,0x93,0x14,
0x6a,0x79,0xa8,0xec,0x09,0xb7,0x49,0x01,0x71,0xdb,0x58,0x97,
0x5a,0x61,0xa5,0x4e,0xb4,0x5f,0xce,0x2b
};
static const unsigned char sha384_entropyinputpr[] =
{
0x50,0xef,0xaa,0x65,0x95,0x0d,0x4f,0x97,0x3e,0x57,0x59,0x48,
0xf9,0x4e,0xee,0x51,0xf8,0x46,0xec,0x4c,0x2d,0x55,0x47,0x23,
0xc5,0x7b,0xa3,0xda,0xe5,0x12,0x34,0x9a
};
static const unsigned char sha384_additionalinput2[] =
{
0x1c,0xcd,0xe0,0xc1,0x15,0xd4,0x7f,0xfa,0x9e,0x16,0xe7,0x6d,
0x22,0x55,0xfd,0x34,0x3f,0xec,0x1d,0x40,0x9e,0xdd,0x15,0x07,
0x13,0x1c,0x65,0x6e,0xf7,0x1c,0xb6,0xf8
};
static const unsigned char sha384_entropyinputpr2[] =
{
0xa0,0x8b,0x48,0xdc,0x7b,0x74,0x54,0xd0,0x0a,0x10,0x0e,0xc9,
0xf2,0xe0,0xf0,0x30,0x38,0xf5,0x46,0x27,0xf4,0x54,0x06,0x95,
0x56,0xab,0xf4,0x74,0xd8,0x34,0xf5,0x5d
};
static const unsigned char sha384_returnedbits[] =
{
0x03,0x54,0x62,0xaa,0x5c,0x61,0x28,0xfc,0x96,0x04,0xd6,0x4f,
0x50,0x5c,0x9e,0x7c,0x9e,0x1d,0x41,0x76,0x41,0xa0,0x60,0x70,
0x62,0x4f,0x42,0x1a,0x69,0xce,0x30,0xc4,0xf7,0x89,0xc8,0x93,
0xed,0xe9,0x42,0xf4,0x59,0x55,0x7c,0x6c,0xd3,0x4e,0xff,0x05
};
/* SHA-512 PR */
static const unsigned char sha512_entropyinput[] =
{
0x22,0xb1,0x72,0xe3,0xc4,0x87,0xe7,0x76,0x4e,0x85,0xb5,0xca,
0x86,0x4f,0x21,0x2b,0x4f,0x29,0x8e,0x8a,0xfc,0x88,0xfc,0xa1,
0xf6,0xd7,0xc1,0x63,0x90,0x8d,0x85,0xa9
};
static const unsigned char sha512_nonce[] =
{
0xcc,0x8b,0x86,0x21,0xa7,0xbe,0xd3,0xe1,0xde,0xd2,0x47,0xfc,
0x9c,0x4a,0xdb,0x85
};
static const unsigned char sha512_personalizationstring[] =
{
0xb7,0x7c,0xb3,0x4f,0xf8,0xcd,0x19,0x89,0xdb,0x0c,0xcf,0xc9,
0xce,0xcd,0x48,0xcd,0x62,0x9c,0x51,0x38,0x85,0xe4,0x6c,0x17,
0x02,0x1b,0x6b,0xb5,0x3c,0x31,0x4f,0xa1
};
static const unsigned char sha512_additionalinput[] =
{
0x69,0x3f,0xcf,0xf5,0x38,0x09,0x0d,0x3c,0xfb,0xea,0x94,0xa6,
0xf3,0xdc,0xb3,0xa8,0xcb,0x61,0x3b,0x8d,0x8e,0x31,0x94,0xc2,
0xe8,0x20,0x1c,0x62,0xa0,0x54,0xc2,0x03
};
static const unsigned char sha512_entropyinputpr[] =
{
0xa0,0xcf,0x6f,0x0f,0x55,0x88,0x84,0xad,0x8d,0x2e,0x08,0x91,
0x8a,0x65,0xc0,0xb4,0xc9,0xbe,0x21,0x29,0xbe,0x23,0x2d,0x2b,
0xd1,0x81,0x90,0x66,0x97,0xb6,0xfa,0x84
};
static const unsigned char sha512_additionalinput2[] =
{
0x1f,0x5e,0x49,0xb5,0xa3,0xfa,0xe8,0x89,0xc5,0x1b,0x39,0x2b,
0x9e,0xc7,0x36,0x85,0x5b,0xa9,0x9f,0x91,0x79,0xfe,0x5c,0xe6,
0x41,0xbe,0x14,0x87,0x81,0x08,0x0d,0xee
};
/* NB: not constant so we can corrupt it */
static const unsigned char sha512_entropyinputpr2[] =
{
0xed,0x22,0x42,0x61,0xa7,0x4c,0xed,0xc7,0x10,0x82,0x61,0x17,
0xaa,0x7d,0xdb,0x4e,0x1c,0x96,0x61,0x23,0xcd,0x8f,0x84,0x77,
0xc3,0xa2,0x55,0xff,0xbb,0xc9,0xa6,0x2f
};
static const unsigned char sha512_returnedbits[] =
{
0x79,0x60,0x41,0xaa,0x6c,0xdd,0x17,0x28,0xc0,0x4d,0xc0,0x17,
0xc0,0x66,0x46,0x67,0x0d,0x20,0xe2,0x67,0x96,0xd5,0x2a,0xf4,
0x58,0x0a,0x06,0xab,0xc1,0x4c,0x70,0xc1,0xb8,0x9d,0x68,0x79,
0x28,0x07,0x38,0x4a,0xc3,0xec,0x3b,0x19,0x02,0xe7,0x13,0x82,
0x8f,0xc3,0xed,0x59,0x88,0xdd,0x88,0xaf,0xac,0xf0,0x57,0x6c,
0x14,0x0b,0x50,0x11
};
/* HMAC SHA-1 PR */
static const unsigned char hmac_sha1_entropyinput[] =
{
0x0a,0xbe,0x45,0x75,0x79,0x56,0x5a,0xc1,0x93,0x1a,0xea,0xee,
0x08,0x86,0xc6,0x9e
};
static const unsigned char hmac_sha1_nonce[] =
{
0x15,0x63,0x19,0xd2,0x2f,0xec,0x42,0x84
};
static const unsigned char hmac_sha1_personalizationstring[] =
{
0xb4,0xfe,0x99,0x80,0xde,0xcf,0x1e,0x5e,0x50,0x0d,0x36,0x24,
0x8a,0x74,0x72,0x06
};
static const unsigned char hmac_sha1_additionalinput[] =
{
0x5d,0xcb,0x61,0x0f,0x21,0x12,0xbf,0xdd,0x6a,0xa7,0x86,0x97,
0xed,0x89,0xd9,0x3f
};
static const unsigned char hmac_sha1_entropyinputpr[] =
{
0x9e,0xb3,0x11,0xa7,0xfa,0x5f,0xaa,0x99,0xec,0xf1,0xb4,0x7a,
0x14,0xef,0x55,0x25
};
static const unsigned char hmac_sha1_additionalinput2[] =
{
0x82,0x6e,0x85,0x25,0xa4,0xdc,0xdc,0xf4,0x09,0xb3,0x57,0x4a,
0x10,0x65,0xf5,0x38
};
static const unsigned char hmac_sha1_entropyinputpr2[] =
{
0x8d,0x0b,0xdc,0x9a,0x62,0x49,0xb0,0xfe,0x56,0x23,0xfd,0x1d,
0x15,0x43,0xae,0xb9
};
static const unsigned char hmac_sha1_returnedbits[] =
{
0x09,0xe3,0xcc,0x21,0x7e,0x78,0x83,0x7d,0x3c,0x1b,0x15,0xc7,
0x0c,0xe5,0xd6,0x9d,0x11,0xd7,0xe6,0xf8
};
/* HMAC SHA-224 PR */
static const unsigned char hmac_sha224_entropyinput[] =
{
0x98,0x49,0x8d,0x87,0x54,0xdc,0xf3,0x0f,0xe6,0x9d,0x5b,0x1f,
0x3b,0x23,0x0e,0x59,0x16,0x67,0x33,0xc0,0x71,0x50,0x4d,0xe3
};
static const unsigned char hmac_sha224_nonce[] =
{
0x96,0x73,0xae,0x62,0xfb,0xf4,0xb7,0x9b,0xcc,0xe9,0x84,0x7f
};
static const unsigned char hmac_sha224_personalizationstring[] =
{
0xa9,0x43,0x09,0xae,0xdd,0x11,0xc8,0x4a,0x04,0x89,0xa5,0x69,
0x5e,0x7c,0x80,0xd1,0xf9,0x1e,0x6d,0x8c,0xcd,0x59,0xef,0xd2
};
static const unsigned char hmac_sha224_additionalinput[] =
{
0xef,0x8f,0xfc,0x23,0x6a,0x71,0xdf,0xfa,0xf3,0xa1,0x37,0xd0,
0xfe,0x5e,0x3f,0x76,0x16,0xe0,0xdf,0x84,0xd7,0x01,0xc8,0xa4
};
static const unsigned char hmac_sha224_entropyinputpr[] =
{
0x5a,0xc1,0x2f,0xa3,0x52,0x1a,0x27,0xed,0x1b,0x13,0x2a,0xab,
0xb1,0x3d,0x2f,0x9c,0xd0,0x40,0xce,0xf2,0x0c,0x23,0x7d,0x40
};
static const unsigned char hmac_sha224_additionalinput2[] =
{
0xfe,0x48,0x55,0x54,0x87,0x83,0x50,0x11,0xc9,0x73,0x68,0x89,
0x1a,0x62,0xd5,0xe6,0x3b,0xc9,0x14,0x8d,0xd9,0x7e,0x83,0xef
};
static const unsigned char hmac_sha224_entropyinputpr2[] =
{
0x75,0x50,0xa6,0x64,0x0f,0xdf,0x11,0x05,0x02,0x79,0x89,0xf3,
0x33,0x37,0xa8,0x89,0xfe,0x0a,0x1a,0xc9,0x31,0x68,0xb2,0xa7
};
static const unsigned char hmac_sha224_returnedbits[] =
{
0xd0,0x38,0xa8,0xdf,0xfe,0xcd,0x4a,0x16,0xd6,0xec,0x20,0xac,
0x42,0x97,0x8c,0x5d,0x7b,0xec,0x23,0x62,0x21,0xc8,0x8e,0x76,
0xdd,0x4d,0xca,0x4f
};
/* HMAC SHA-256 PR */
static const unsigned char hmac_sha256_entropyinput[] =
{
0xf8,0x48,0xab,0xfe,0x9a,0xf2,0x3d,0x9f,0x17,0xda,0xfe,0xe1,
0x41,0xcd,0xfc,0xa4,0x46,0x74,0xf7,0x38,0x32,0x86,0x02,0x28,
0xa6,0x33,0x5e,0x42,0xd9,0xce,0x95,0xe9
};
static const unsigned char hmac_sha256_nonce[] =
{
0x7a,0x26,0x5a,0xed,0x72,0xe0,0x2d,0xef,0xc3,0xa2,0x7f,0x7f,
0x1a,0x6e,0xca,0x85
};
static const unsigned char hmac_sha256_personalizationstring[] =
{
0xc8,0x79,0xe5,0xb6,0x19,0xc1,0xc1,0x4d,0x78,0xf8,0xfc,0xdf,
0x26,0xc3,0x5b,0x10,0x0f,0x37,0x25,0x04,0x50,0x06,0xc6,0x25,
0xe7,0xeb,0xa3,0x38,0xbb,0x55,0x3e,0xa2
};
static const unsigned char hmac_sha256_additionalinput[] =
{
0x37,0xf0,0x25,0xe1,0x03,0x4b,0xae,0x74,0xfc,0xff,0xbe,0x6b,
0xc1,0x93,0x23,0x66,0x95,0x54,0x67,0x1c,0x63,0x05,0xef,0xa6,
0xf0,0xc9,0x56,0x0c,0x61,0x4f,0x05,0x0f
};
static const unsigned char hmac_sha256_entropyinputpr[] =
{
0x91,0x62,0x41,0xa5,0x9a,0x5f,0x90,0x4d,0x53,0x75,0x11,0x0a,
0x86,0x1a,0x96,0x26,0x97,0x3e,0x20,0x31,0x79,0xf4,0xf8,0x4d,
0xf2,0x60,0x0d,0xba,0x12,0xe2,0x8f,0xa3
};
static const unsigned char hmac_sha256_additionalinput2[] =
{
0xd4,0xf8,0x6f,0x3a,0xae,0x93,0x93,0x42,0x0f,0x11,0xd7,0xe3,
0x07,0xfe,0x33,0x84,0xc3,0xd9,0xa2,0xe2,0xaa,0x66,0x5b,0xfa,
0xb7,0x37,0x56,0x35,0x17,0x78,0xfd,0xd4
};
static const unsigned char hmac_sha256_entropyinputpr2[] =
{
0xdd,0x21,0x60,0x30,0xfd,0x6d,0xea,0x1a,0x2e,0x0f,0xe3,0xcd,
0xb1,0x2b,0x10,0x16,0x3b,0x15,0xd0,0x92,0x93,0x1b,0xd7,0x14,
0x6e,0x90,0x31,0x52,0x88,0x1b,0x75,0xd5
};
static const unsigned char hmac_sha256_returnedbits[] =
{
0x8a,0x66,0x8a,0xe2,0x0d,0xe7,0xcc,0xae,0xec,0x9b,0x22,0x8e,
0xd1,0x0c,0xa4,0x13,0xcd,0xd9,0x4b,0xb9,0x72,0xf2,0xc2,0x12,
0x88,0x52,0x5d,0x90,0x67,0x69,0x38,0x22
};
/* HMAC SHA-384 PR */
static const unsigned char hmac_sha384_entropyinput[] =
{
0x81,0x6f,0xcc,0xe7,0x9b,0x85,0x5e,0x99,0x0d,0x74,0x39,0xe5,
0x65,0x9b,0xb9,0x68,0x6b,0x9e,0x76,0xff,0x78,0xef,0xc6,0xf2,
0x1b,0x99,0x74,0x64,0xee,0x4e,0xc0,0xfa
};
static const unsigned char hmac_sha384_nonce[] =
{
0xf8,0xce,0xb1,0xe7,0x96,0x9d,0x47,0x10,0x80,0xda,0x70,0x75,
0xbf,0xba,0xe9,0xe8
};
static const unsigned char hmac_sha384_personalizationstring[] =
{
0x3c,0xbd,0xd5,0x1c,0x1e,0xa5,0xa9,0xe0,0x0b,0xb1,0xd4,0x2c,
0xcc,0xaf,0xb9,0x70,0x61,0x03,0x86,0x82,0xff,0x58,0x51,0xea,
0x46,0x88,0x77,0x6f,0xc6,0xc7,0x38,0xe0
};
static const unsigned char hmac_sha384_additionalinput[] =
{
0xaf,0x16,0x5f,0xcf,0x85,0xba,0xd2,0x85,0x14,0x5c,0x33,0x64,
0x8a,0x7b,0x26,0x9b,0xd1,0xb0,0xf4,0xcc,0xaf,0xf3,0xc4,0xfa,
0x1d,0x2c,0x19,0xb4,0xe6,0xfc,0x8d,0x81
};
static const unsigned char hmac_sha384_entropyinputpr[] =
{
0xff,0x63,0xb4,0x83,0x95,0xe6,0x7e,0x3c,0x35,0xee,0xb5,0x2c,
0x50,0x65,0x06,0x53,0xb3,0x17,0xd3,0x22,0x0c,0xdb,0xce,0x41,
0x9b,0xff,0xd8,0xa1,0x36,0xf7,0x1a,0xc4
};
static const unsigned char hmac_sha384_additionalinput2[] =
{
0xaa,0x2a,0xd6,0x81,0xda,0x55,0x3b,0xdd,0xa7,0x9e,0x25,0x31,
0xf8,0xc9,0xa3,0xb5,0x8b,0x52,0x30,0x24,0xf2,0x16,0xd3,0x0c,
0xcc,0x47,0x77,0x5a,0x46,0x91,0x87,0x23
};
static const unsigned char hmac_sha384_entropyinputpr2[] =
{
0xaa,0xe9,0xf6,0xcc,0xd3,0x38,0x0b,0x20,0x75,0x4a,0x3b,0x13,
0xc7,0xf1,0x66,0xc0,0x0e,0xfd,0xc1,0x7b,0x81,0x3f,0xd7,0x7b,
0x5b,0xe0,0xbe,0xc7,0x40,0xe2,0x9c,0x65
};
static const unsigned char hmac_sha384_returnedbits[] =
{
0x57,0x49,0xc1,0x59,0x99,0x5d,0xe2,0xc6,0x25,0xc5,0xdb,0xe2,
0xd4,0x1b,0xee,0x4c,0xd3,0x36,0xe5,0xa5,0xc8,0x93,0xcb,0xbc,
0xc8,0x2e,0xd6,0x45,0x3f,0x66,0xa4,0x71,0xc8,0x98,0xb9,0x97,
0x28,0x56,0xad,0xdb,0xfe,0x09,0x8d,0xe2,0xb3,0x04,0xae,0xf4
};
/* HMAC SHA-512 PR */
static const unsigned char hmac_sha512_entropyinput[] =
{
0xab,0xb5,0xbc,0x7f,0x94,0xd6,0xbe,0xc8,0x94,0xa9,0x46,0xdd,
0xc5,0x63,0x14,0x8e,0xdc,0xab,0x68,0x7f,0x47,0xec,0x46,0x16,
0x8a,0xe0,0xea,0xa3,0xda,0x5b,0x88,0xd0
};
static const unsigned char hmac_sha512_nonce[] =
{
0x6a,0xda,0xa4,0x68,0x66,0x9a,0xc8,0x34,0xef,0x21,0xe6,0xb4,
0xac,0xc7,0xb0,0xbe
};
static const unsigned char hmac_sha512_personalizationstring[] =
{
0x69,0xa4,0x13,0xd2,0xeb,0x39,0xb6,0xdc,0x3e,0x6c,0x84,0xb8,
0x1b,0x0e,0x86,0x47,0xb4,0x74,0xf1,0x60,0xe6,0x66,0x7c,0x53,
0xbc,0x43,0x03,0xbd,0x26,0x78,0x5b,0x92
};
static const unsigned char hmac_sha512_additionalinput[] =
{
0xaf,0x33,0x2b,0x15,0x3c,0xd1,0x01,0x8b,0x24,0xe9,0x97,0x01,
0x13,0x52,0x4b,0x92,0xd0,0x2f,0x0e,0xd4,0xf9,0x5a,0x3b,0xe3,
0xff,0x14,0xb7,0xae,0x63,0xed,0x4d,0x80
};
static const unsigned char hmac_sha512_entropyinputpr[] =
{
0x0e,0xe7,0xe1,0x16,0x7d,0x6d,0x3c,0xfd,0xd2,0x69,0x2e,0xc6,
0xb7,0x08,0xa4,0xb5,0x93,0xe2,0xba,0xa3,0x40,0x6a,0x9a,0x13,
0x0d,0x94,0x99,0x7a,0xfb,0xc7,0x8f,0xca
};
static const unsigned char hmac_sha512_additionalinput2[] =
{
0xc0,0xfd,0xea,0x00,0xee,0xdd,0xf3,0x4c,0x5e,0x4a,0x97,0x04,
0x3c,0xf0,0x97,0xce,0x75,0x90,0xad,0x51,0xf8,0xea,0xe9,0xc2,
0x2c,0xec,0x4d,0xb2,0xb4,0x1b,0xa6,0x15
};
static const unsigned char hmac_sha512_entropyinputpr2[] =
{
0x63,0xfb,0x80,0xa7,0xf9,0xce,0x87,0xbd,0xe2,0xf0,0xfa,0x82,
0x4b,0xe2,0x7e,0xce,0x90,0xc1,0x30,0x54,0x1c,0x4e,0x9f,0x49,
0x82,0x3d,0x0a,0x52,0xdb,0xc0,0xda,0xb1
};
static const unsigned char hmac_sha512_returnedbits[] =
{
0x6a,0x33,0x60,0x3d,0xe4,0x83,0x39,0x46,0xb3,0x3d,0x7d,0x16,
0x25,0xc8,0x69,0xb3,0x94,0x17,0x6b,0x23,0xec,0x4d,0xcb,0x23,
0xbd,0x92,0x1c,0xfa,0xa7,0xba,0x97,0x35,0xb9,0x54,0x47,0x88,
0x26,0x6d,0x6d,0x3f,0xc2,0xe3,0x5c,0x56,0x2c,0x50,0x5d,0x60,
0x11,0x3a,0x19,0x66,0xd9,0x0e,0x7c,0x08,0xfb,0xf9,0xf2,0xb4,
0xfb,0xcb,0xfc,0x49
};
static DRBG_SELFTEST_DATA drbg_test[] = {
make_drbg_test_data_df(NID_aes_128_ctr, aes_128_use_df),
make_drbg_test_data_df(NID_aes_192_ctr, aes_192_use_df),
......@@ -1034,6 +186,9 @@ static int fips_drbg_single_kat(DRBG_CTX *dctx, DRBG_SELFTEST_DATA *td)
int rv = 0;
size_t adinlen;
unsigned char randout[1024];
/* Initial test without PR */
if (!FIPS_drbg_init(dctx, td->nid, td->flags))
return 0;
if (!FIPS_drbg_set_callbacks(dctx, test_entropy, 0, 0, test_nonce, 0))
......@@ -1051,9 +206,6 @@ static int fips_drbg_single_kat(DRBG_CTX *dctx, DRBG_SELFTEST_DATA *td)
if (!FIPS_drbg_instantiate(dctx, td->pers, td->perslen))
goto err;
t.ent = td->entpr;
t.entlen = td->entprlen;
/* Note for CTR without DF some additional input values
* ignore bytes after the keylength: so reduce adinlen
* to half to ensure invalid data is fed in.
......@@ -1062,18 +214,72 @@ static int fips_drbg_single_kat(DRBG_CTX *dctx, DRBG_SELFTEST_DATA *td)
adinlen = td->adinlen / 2;
else
adinlen = td->adinlen;
if (!FIPS_drbg_generate(dctx, randout, td->katlen, 0, 1,
if (!FIPS_drbg_generate(dctx, randout, td->katlen, 0, 0,
td->adin, adinlen))
goto err;
t.ent = td->entg;
t.entlen = td->entglen;
if (memcmp(randout, td->kat, td->katlen))
goto err;
t.ent = td->entreseed;
t.entlen = td->entreseedlen;
if (!FIPS_drbg_generate(dctx, randout, td->katlen, 0, 1,
td->ading, td->adinglen))
if (!FIPS_drbg_reseed(dctx, td->adinreseed, td->adinreseedlen))
goto err;
if (memcmp(randout, td->kat, td->katlen))
if (!FIPS_drbg_generate(dctx, randout, td->kat2len, 0, 0,
td->adin2, td->adin2len))
goto err;
if (memcmp(randout, td->kat2, td->kat2len))
goto err;
FIPS_drbg_uninstantiate(dctx);
/* Now test with PR */
if (!FIPS_drbg_init(dctx, td->nid, td->flags))
return 0;
if (!FIPS_drbg_set_callbacks(dctx, test_entropy, 0, 0, test_nonce, 0))
return 0;
FIPS_drbg_set_app_data(dctx, &t);
t.ent = td->ent_pr;
t.entlen = td->entlen_pr;
t.nonce = td->nonce_pr;
t.noncelen = td->noncelen_pr;
t.entcnt = 0;
t.noncecnt = 0;
if (!FIPS_drbg_instantiate(dctx, td->pers_pr, td->perslen_pr))
goto err;
t.ent = td->entpr_pr;
t.entlen = td->entprlen_pr;
/* Note for CTR without DF some additional input values
* ignore bytes after the keylength: so reduce adinlen
* to half to ensure invalid data is fed in.
*/
if (!fips_post_corrupt(FIPS_TEST_DRBG, dctx->type, &dctx->flags))
adinlen = td->adinlen_pr / 2;
else
adinlen = td->adinlen_pr;
if (!FIPS_drbg_generate(dctx, randout, td->katlen_pr, 0, 1,
td->adin_pr, adinlen))
goto err;
if (memcmp(randout, td->kat_pr, td->katlen_pr))
goto err;
t.ent = td->entg_pr;
t.entlen = td->entglen_pr;
if (!FIPS_drbg_generate(dctx, randout, td->kat2len_pr, 0, 1,
td->ading_pr, td->adinglen_pr))
goto err;
if (memcmp(randout, td->kat2_pr, td->kat2len_pr))
goto err;
rv = 1;
......@@ -1084,6 +290,7 @@ static int fips_drbg_single_kat(DRBG_CTX *dctx, DRBG_SELFTEST_DATA *td)
FIPS_drbg_uninstantiate(dctx);
return rv;
}
/* This is the "health check" function required by SP800-90. Induce several
......
/* ====================================================================
* Copyright (c) 2011 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
/* Selftest and health check data for the SP800-90 DRBG */
/* AES-128 use df PR */
static const unsigned char aes_128_use_df_pr_entropyinput[] =
{
0x61,0x52,0x7c,0xe3,0x23,0x7d,0x0a,0x07,0x10,0x0c,0x50,0x33,
0xc8,0xdb,0xff,0x12
};
static const unsigned char aes_128_use_df_pr_nonce[] =
{
0x51,0x0d,0x85,0x77,0xed,0x22,0x97,0x28
};
static const unsigned char aes_128_use_df_pr_personalizationstring[] =
{
0x59,0x9f,0xbb,0xcd,0xd5,0x25,0x69,0xb5,0xcb,0xb5,0x03,0xfe,
0xd7,0xd7,0x01,0x67
};
static const unsigned char aes_128_use_df_pr_additionalinput[] =
{
0xef,0x88,0x76,0x01,0xaf,0x3c,0xfe,0x8b,0xaf,0x26,0x06,0x9e,
0x9a,0x47,0x08,0x76
};
static const unsigned char aes_128_use_df_pr_entropyinputpr[] =
{
0xe2,0x76,0xf9,0xf6,0x3a,0xba,0x10,0x9f,0xbf,0x47,0x0e,0x51,
0x09,0xfb,0xa3,0xb6
};
static const unsigned char aes_128_use_df_pr_int_returnedbits[] =
{
0xd4,0x98,0x8a,0x46,0x80,0x4c,0xdb,0xa3,0x59,0x02,0x57,0x52,
0x66,0x1c,0xea,0x5b
};
static const unsigned char aes_128_use_df_pr_additionalinput2[] =
{
0x88,0x8c,0x91,0xd6,0xbe,0x56,0x6e,0x08,0x9a,0x62,0x2b,0x11,
0x3f,0x5e,0x31,0x06
};
static const unsigned char aes_128_use_df_pr_entropyinputpr2[] =
{
0xc0,0x5c,0x6b,0x98,0x01,0x0d,0x58,0x18,0x51,0x18,0x96,0xae,
0xa7,0xe3,0xa8,0x67
};
static const unsigned char aes_128_use_df_pr_returnedbits[] =
{
0xcf,0x01,0xac,0x22,0x31,0x06,0x8e,0xfc,0xce,0x56,0xea,0x24,
0x0f,0x38,0x43,0xc6
};
/* AES-128 use df No PR */
static const unsigned char aes_128_use_df_entropyinput[] =
{
0x1f,0x8e,0x34,0x82,0x0c,0xb7,0xbe,0xc5,0x01,0x3e,0xd0,0xa3,
0x9d,0x7d,0x1c,0x9b
};
static const unsigned char aes_128_use_df_nonce[] =
{
0xd5,0x4d,0xbd,0x4a,0x93,0x7f,0xb8,0x96
};
static const unsigned char aes_128_use_df_personalizationstring[] =
{
0xab,0xd6,0x3f,0x04,0xfe,0x27,0x6b,0x2d,0xd7,0xc3,0x1c,0xf3,
0x38,0x66,0xba,0x1b
};
static const unsigned char aes_128_use_df_additionalinput[] =
{
0xfe,0xf4,0x09,0xa8,0xb7,0x73,0x27,0x9c,0x5f,0xa7,0xea,0x46,
0xb5,0xe2,0xb2,0x41
};
static const unsigned char aes_128_use_df_int_returnedbits[] =
{
0x42,0xe4,0x4e,0x7b,0x27,0xdd,0xcb,0xbc,0x0a,0xcf,0xa6,0x67,
0xe7,0x57,0x11,0xb4
};
static const unsigned char aes_128_use_df_entropyinputreseed[] =
{
0x14,0x26,0x69,0xd9,0xf3,0x65,0x03,0xd6,0x6b,0xb9,0x44,0x0b,
0xc7,0xc4,0x9e,0x39
};
static const unsigned char aes_128_use_df_additionalinputreseed[] =
{
0x55,0x2e,0x60,0x9a,0x05,0x72,0x8a,0xa8,0xef,0x22,0x81,0x5a,
0xc8,0x93,0xfa,0x84
};
static const unsigned char aes_128_use_df_additionalinput2[] =
{
0x3c,0x40,0xc8,0xc4,0x16,0x0c,0x21,0xa4,0x37,0x2c,0x8f,0xa5,
0x06,0x0c,0x15,0x2c
};
static const unsigned char aes_128_use_df_returnedbits[] =
{
0xe1,0x3e,0x99,0x98,0x86,0x67,0x0b,0x63,0x7b,0xbe,0x3f,0x88,
0x46,0x81,0xc7,0x19
};
/* AES-192 use df PR */
static const unsigned char aes_192_use_df_pr_entropyinput[] =
{
0x2b,0x4e,0x8b,0xe1,0xf1,0x34,0x80,0x56,0x81,0xf9,0x74,0xec,
0x17,0x44,0x2a,0xf1,0x14,0xb0,0xbf,0x97,0x39,0xb7,0x04,0x7d
};
static const unsigned char aes_192_use_df_pr_nonce[] =
{
0xd6,0x9d,0xeb,0x14,0x4e,0x6c,0x30,0x1e,0x39,0x55,0x73,0xd0,
0xd1,0x80,0x78,0xfa
};
static const unsigned char aes_192_use_df_pr_personalizationstring[] =
{
0xfc,0x43,0x4a,0xf8,0x9a,0x55,0xb3,0x53,0x83,0xe2,0x18,0x16,
0x0c,0xdc,0xcd,0x5e,0x4f,0xa0,0x03,0x01,0x2b,0x9f,0xe4,0xd5,
0x7d,0x49,0xf0,0x41,0x9e,0x3d,0x99,0x04
};
static const unsigned char aes_192_use_df_pr_additionalinput[] =
{
0x5e,0x9f,0x49,0x6f,0x21,0x8b,0x1d,0x32,0xd5,0x84,0x5c,0xac,
0xaf,0xdf,0xe4,0x79,0x9e,0xaf,0xa9,0x82,0xd0,0xf8,0x4f,0xcb,
0x69,0x10,0x0a,0x7e,0x81,0x57,0xb5,0x36
};
static const unsigned char aes_192_use_df_pr_entropyinputpr[] =
{
0xd4,0x81,0x0c,0xd7,0x66,0x39,0xec,0x42,0x53,0x87,0x41,0xa5,
0x1e,0x7d,0x80,0x91,0x8e,0xbb,0xed,0xac,0x14,0x02,0x1a,0xd5
};
static const unsigned char aes_192_use_df_pr_int_returnedbits[] =
{
0xdf,0x1d,0x39,0x45,0x7c,0x9b,0xc6,0x2b,0x7d,0x8c,0x93,0xe9,
0x19,0x30,0x6b,0x67
};
static const unsigned char aes_192_use_df_pr_additionalinput2[] =
{
0x00,0x71,0x27,0x4e,0xd3,0x14,0xf1,0x20,0x7f,0x4a,0x41,0x32,
0x2a,0x97,0x11,0x43,0x8f,0x4a,0x15,0x7b,0x9b,0x51,0x79,0xda,
0x49,0x3d,0xde,0xe8,0xbc,0x93,0x91,0x99
};
static const unsigned char aes_192_use_df_pr_entropyinputpr2[] =
{
0x90,0xee,0x76,0xa1,0x45,0x8d,0xb7,0x40,0xb0,0x11,0xbf,0xd0,
0x65,0xd7,0x3c,0x7c,0x4f,0x20,0x3f,0x4e,0x11,0x9d,0xb3,0x5e
};
static const unsigned char aes_192_use_df_pr_returnedbits[] =
{
0x24,0x3b,0x20,0xa4,0x37,0x66,0xba,0x72,0x39,0x3f,0xcf,0x3c,
0x7e,0x1a,0x2b,0x83
};
/* AES-192 use df No PR */
static const unsigned char aes_192_use_df_entropyinput[] =
{
0x8d,0x74,0xa4,0x50,0x1a,0x02,0x68,0x0c,0x2a,0x69,0xc4,0x82,
0x3b,0xbb,0xda,0x0e,0x7f,0x77,0xa3,0x17,0x78,0x57,0xb2,0x7b
};
static const unsigned char aes_192_use_df_nonce[] =
{
0x75,0xd5,0x1f,0xac,0xa4,0x8d,0x42,0x78,0xd7,0x69,0x86,0x9d,
0x77,0xd7,0x41,0x0e
};
static const unsigned char aes_192_use_df_personalizationstring[] =
{
0x4e,0x33,0x41,0x3c,0x9c,0xc2,0xd2,0x53,0xaf,0x90,0xea,0xcf,
0x19,0x50,0x1e,0xe6,0x6f,0x63,0xc8,0x32,0x22,0xdc,0x07,0x65,
0x9c,0xd3,0xf8,0x30,0x9e,0xed,0x35,0x70
};
static const unsigned char aes_192_use_df_additionalinput[] =
{
0x5d,0x8b,0x8c,0xc1,0xdf,0x0e,0x02,0x78,0xfb,0x19,0xb8,0x69,
0x78,0x4e,0x9c,0x52,0xbc,0xc7,0x20,0xc9,0xe6,0x5e,0x77,0x22,
0x28,0x3d,0x0c,0x9e,0x68,0xa8,0x45,0xd7
};
static const unsigned char aes_192_use_df_int_returnedbits[] =
{
0xd5,0xe7,0x08,0xc5,0x19,0x99,0xd5,0x31,0x03,0x0a,0x74,0xb6,
0xb7,0xed,0xe9,0xea
};
static const unsigned char aes_192_use_df_entropyinputreseed[] =
{
0x9c,0x26,0xda,0xf1,0xac,0xd9,0x5a,0xd6,0xa8,0x65,0xf5,0x02,
0x8f,0xdc,0xa2,0x09,0x54,0xa6,0xe2,0xa4,0xde,0x32,0xe0,0x01
};
static const unsigned char aes_192_use_df_additionalinputreseed[] =
{
0x9b,0x90,0xb0,0x3a,0x0e,0x3a,0x80,0x07,0x4a,0xf4,0xda,0x76,
0x28,0x30,0x3c,0xee,0x54,0x1b,0x94,0x59,0x51,0x43,0x56,0x77,
0xaf,0x88,0xdd,0x63,0x89,0x47,0x06,0x65
};
static const unsigned char aes_192_use_df_additionalinput2[] =
{
0x3c,0x11,0x64,0x7a,0x96,0xf5,0xd8,0xb8,0xae,0xd6,0x70,0x4e,
0x16,0x96,0xde,0xe9,0x62,0xbc,0xee,0x28,0x2f,0x26,0xa6,0xf0,
0x56,0xef,0xa3,0xf1,0x6b,0xa1,0xb1,0x77
};
static const unsigned char aes_192_use_df_returnedbits[] =
{
0x0b,0xe2,0x56,0x03,0x1e,0xdb,0x2c,0x6d,0x7f,0x1b,0x15,0x58,
0x1a,0xf9,0x13,0x28
};
/* AES-256 use df PR */
static const unsigned char aes_256_use_df_pr_entropyinput[] =
{
0x61,0x68,0xfc,0x1a,0xf0,0xb5,0x95,0x6b,0x85,0x09,0x9b,0x74,
0x3f,0x13,0x78,0x49,0x3b,0x85,0xec,0x93,0x13,0x3b,0xa9,0x4f,
0x96,0xab,0x2c,0xe4,0xc8,0x8f,0xdd,0x6a
};
static const unsigned char aes_256_use_df_pr_nonce[] =
{
0xad,0xd2,0xbb,0xba,0xb7,0x65,0x89,0xc3,0x21,0x6c,0x55,0x33,
0x2b,0x36,0xff,0xa4
};
static const unsigned char aes_256_use_df_pr_personalizationstring[] =
{
0x6e,0xca,0xe7,0x20,0x72,0xd3,0x84,0x5a,0x32,0xd3,0x4b,0x24,
0x72,0xc4,0x63,0x2b,0x9d,0x12,0x24,0x0c,0x23,0x26,0x8e,0x83,
0x16,0x37,0x0b,0xd1,0x06,0x4f,0x68,0x6d
};
static const unsigned char aes_256_use_df_pr_additionalinput[] =
{
0x7e,0x08,0x4a,0xbb,0xe3,0x21,0x7c,0xc9,0x23,0xd2,0xf8,0xb0,
0x73,0x98,0xba,0x84,0x74,0x23,0xab,0x06,0x8a,0xe2,0x22,0xd3,
0x7b,0xce,0x9b,0xd2,0x4a,0x76,0xb8,0xde
};
static const unsigned char aes_256_use_df_pr_entropyinputpr[] =
{
0x0b,0x23,0xaf,0xdf,0xf1,0x62,0xd7,0xd3,0x43,0x97,0xf8,0x77,
0x04,0xa8,0x42,0x20,0xbd,0xf6,0x0f,0xc1,0x17,0x2f,0x9f,0x54,
0xbb,0x56,0x17,0x86,0x68,0x0e,0xba,0xa9
};
static const unsigned char aes_256_use_df_pr_int_returnedbits[] =
{
0x31,0x8e,0xad,0xaf,0x40,0xeb,0x6b,0x74,0x31,0x46,0x80,0xc7,
0x17,0xab,0x3c,0x7a
};
static const unsigned char aes_256_use_df_pr_additionalinput2[] =
{
0x94,0x6b,0xc9,0x9f,0xab,0x8d,0xc5,0xec,0x71,0x88,0x1d,0x00,
0x8c,0x89,0x68,0xe4,0xc8,0x07,0x77,0x36,0x17,0x6d,0x79,0x78,
0xc7,0x06,0x4e,0x99,0x04,0x28,0x29,0xc3
};
static const unsigned char aes_256_use_df_pr_entropyinputpr2[] =
{
0xbf,0x6c,0x59,0x2a,0x0d,0x44,0x0f,0xae,0x9a,0x5e,0x03,0x73,
0xd8,0xa6,0xe1,0xcf,0x25,0x61,0x38,0x24,0x86,0x9e,0x53,0xe8,
0xa4,0xdf,0x56,0xf4,0x06,0x07,0x9c,0x0f
};
static const unsigned char aes_256_use_df_pr_returnedbits[] =
{
0x22,0x4a,0xb4,0xb8,0xb6,0xee,0x7d,0xb1,0x9e,0xc9,0xf9,0xa0,
0xd9,0xe2,0x97,0x00
};
/* AES-256 use df No PR */
static const unsigned char aes_256_use_df_entropyinput[] =
{
0xa5,0x3e,0x37,0x10,0x17,0x43,0x91,0x93,0x59,0x1e,0x47,0x50,
0x87,0xaa,0xdd,0xd5,0xc1,0xc3,0x86,0xcd,0xca,0x0d,0xdb,0x68,
0xe0,0x02,0xd8,0x0f,0xdc,0x40,0x1a,0x47
};
static const unsigned char aes_256_use_df_nonce[] =
{
0xa9,0x4d,0xa5,0x5a,0xfd,0xc5,0x0c,0xe5,0x1c,0x9a,0x3b,0x8a,
0x4c,0x44,0x84,0x40
};
static const unsigned char aes_256_use_df_personalizationstring[] =
{
0x8b,0x52,0xa2,0x4a,0x93,0xc3,0x4e,0xa7,0x1e,0x1c,0xa7,0x05,
0xeb,0x82,0x9b,0xa6,0x5d,0xe4,0xd4,0xe0,0x7f,0xa3,0xd8,0x6b,
0x37,0x84,0x5f,0xf1,0xc7,0xd5,0xf6,0xd2
};
static const unsigned char aes_256_use_df_additionalinput[] =
{
0x20,0xf4,0x22,0xed,0xf8,0x5c,0xa1,0x6a,0x01,0xcf,0xbe,0x5f,
0x8d,0x6c,0x94,0x7f,0xae,0x12,0xa8,0x57,0xdb,0x2a,0xa9,0xbf,
0xc7,0xb3,0x65,0x81,0x80,0x8d,0x0d,0x46
};
static const unsigned char aes_256_use_df_int_returnedbits[] =
{
0x4e,0x44,0xfd,0xf3,0x9e,0x29,0xa2,0xb8,0x0f,0x5d,0x6c,0xe1,
0x28,0x0c,0x3b,0xc1
};
static const unsigned char aes_256_use_df_entropyinputreseed[] =
{
0xdd,0x40,0xe5,0x98,0x7b,0x27,0x16,0x73,0x15,0x68,0xd2,0x76,
0xbf,0x0c,0x67,0x15,0x75,0x79,0x03,0xd3,0xde,0xde,0x91,0x46,
0x42,0xdd,0xd4,0x67,0xc8,0x79,0xc8,0x1e
};
static const unsigned char aes_256_use_df_additionalinputreseed[] =
{
0x7f,0xd8,0x1f,0xbd,0x2a,0xb5,0x1c,0x11,0x5d,0x83,0x4e,0x99,
0xf6,0x5c,0xa5,0x40,0x20,0xed,0x38,0x8e,0xd5,0x9e,0xe0,0x75,
0x93,0xfe,0x12,0x5e,0x5d,0x73,0xfb,0x75
};
static const unsigned char aes_256_use_df_additionalinput2[] =
{
0xcd,0x2c,0xff,0x14,0x69,0x3e,0x4c,0x9e,0xfd,0xfe,0x26,0x0d,
0xe9,0x86,0x00,0x49,0x30,0xba,0xb1,0xc6,0x50,0x57,0x77,0x2a,
0x62,0x39,0x2c,0x3b,0x74,0xeb,0xc9,0x0d
};
static const unsigned char aes_256_use_df_returnedbits[] =
{
0x4f,0x78,0xbe,0xb9,0x4d,0x97,0x8c,0xe9,0xd0,0x97,0xfe,0xad,
0xfa,0xfd,0x35,0x5e
};
/* AES-128 no df PR */
static const unsigned char aes_128_no_df_pr_entropyinput[] =
{
0x9a,0x25,0x65,0x10,0x67,0xd5,0xb6,0x6b,0x70,0xa1,0xb3,0xa4,
0x43,0x95,0x80,0xc0,0x84,0x0a,0x79,0xb0,0x88,0x74,0xf2,0xbf,
0x31,0x6c,0x33,0x38,0x0b,0x00,0xb2,0x5a
};
static const unsigned char aes_128_no_df_pr_nonce[] =
{
0x78,0x47,0x6b,0xf7,0x90,0x8e,0x87,0xf1
};
static const unsigned char aes_128_no_df_pr_personalizationstring[] =
{
0xf7,0x22,0x1d,0x3a,0xbe,0x1d,0xca,0x32,0x1b,0xbd,0x87,0x0c,
0x51,0x24,0x19,0xee,0xa3,0x23,0x09,0x63,0x33,0x3d,0xa8,0x0c,
0x1c,0xfa,0x42,0x89,0xcc,0x6f,0xa0,0xa8
};
static const unsigned char aes_128_no_df_pr_additionalinput[] =
{
0xc9,0xe0,0x80,0xbf,0x8c,0x45,0x58,0x39,0xff,0x00,0xab,0x02,
0x4c,0x3e,0x3a,0x95,0x9b,0x80,0xa8,0x21,0x2a,0xee,0xba,0x73,
0xb1,0xd9,0xcf,0x28,0xf6,0x8f,0x9b,0x12
};
static const unsigned char aes_128_no_df_pr_entropyinputpr[] =
{
0x4c,0xa8,0xc5,0xf0,0x59,0x9e,0xa6,0x8d,0x26,0x53,0xd7,0x8a,
0xa9,0xd8,0xf7,0xed,0xb2,0xf9,0x12,0x42,0xe1,0xe5,0xbd,0xe7,
0xe7,0x1d,0x74,0x99,0x00,0x9d,0x31,0x3e
};
static const unsigned char aes_128_no_df_pr_int_returnedbits[] =
{
0xe2,0xac,0x20,0xf0,0x80,0xe7,0xbc,0x7e,0x9c,0x7b,0x65,0x71,
0xaf,0x19,0x32,0x16
};
static const unsigned char aes_128_no_df_pr_additionalinput2[] =
{
0x32,0x7f,0x38,0x8b,0x73,0x0a,0x78,0x83,0xdc,0x30,0xbe,0x9f,
0x10,0x1f,0xf5,0x1f,0xca,0x00,0xb5,0x0d,0xd6,0x9d,0x60,0x83,
0x51,0x54,0x7d,0x38,0x23,0x3a,0x52,0x50
};
static const unsigned char aes_128_no_df_pr_entropyinputpr2[] =
{
0x18,0x61,0x53,0x56,0xed,0xed,0xd7,0x20,0xfb,0x71,0x04,0x7a,
0xb2,0xac,0xc1,0x28,0xcd,0xf2,0xc2,0xfc,0xaa,0xb1,0x06,0x07,
0xe9,0x46,0x95,0x02,0x48,0x01,0x78,0xf9
};
static const unsigned char aes_128_no_df_pr_returnedbits[] =
{
0x29,0xc8,0x1b,0x15,0xb1,0xd1,0xc2,0xf6,0x71,0x86,0x68,0x33,
0x57,0x82,0x33,0xaf
};
/* AES-128 no df No PR */
static const unsigned char aes_128_no_df_entropyinput[] =
{
0xc9,0xc5,0x79,0xbc,0xe8,0xc5,0x19,0xd8,0xbc,0x66,0x73,0x67,
0xf6,0xd3,0x72,0xaa,0xa6,0x16,0xb8,0x50,0xb7,0x47,0x3a,0x42,
0xab,0xf4,0x16,0xb2,0x96,0xd2,0xb6,0x60
};
static const unsigned char aes_128_no_df_nonce[] =
{
0x5f,0xbf,0x97,0x0c,0x4b,0xa4,0x87,0x13
};
static const unsigned char aes_128_no_df_personalizationstring[] =
{
0xce,0xfb,0x7b,0x3f,0xd4,0x6b,0x29,0x0d,0x69,0x06,0xff,0xbb,
0xf2,0xe5,0xc6,0x6c,0x0a,0x10,0xa0,0xcf,0x1a,0x48,0xc7,0x8b,
0x3c,0x16,0x88,0xed,0x50,0x13,0x81,0xce
};
static const unsigned char aes_128_no_df_additionalinput[] =
{
0x4b,0x22,0x46,0x18,0x02,0x7b,0xd2,0x1b,0x22,0x42,0x7c,0x37,
0xd9,0xf6,0xe8,0x9b,0x12,0x30,0x5f,0xe9,0x90,0xe8,0x08,0x24,
0x4f,0x06,0x66,0xdb,0x19,0x2b,0x13,0x95
};
static const unsigned char aes_128_no_df_int_returnedbits[] =
{
0x2e,0x96,0x70,0x64,0xfa,0xdf,0xdf,0x57,0xb5,0x82,0xee,0xd6,
0xed,0x3e,0x65,0xc2
};
static const unsigned char aes_128_no_df_entropyinputreseed[] =
{
0x26,0xc0,0x72,0x16,0x3a,0x4b,0xb7,0x99,0xd4,0x07,0xaf,0x66,
0x62,0x36,0x96,0xa4,0x51,0x17,0xfa,0x07,0x8b,0x17,0x5e,0xa1,
0x2f,0x3c,0x10,0xe7,0x90,0xd0,0x46,0x00
};
static const unsigned char aes_128_no_df_additionalinputreseed[] =
{
0x83,0x39,0x37,0x7b,0x02,0x06,0xd2,0x12,0x13,0x8d,0x8b,0xf2,
0xf0,0xf6,0x26,0xeb,0xa4,0x22,0x7b,0xc2,0xe7,0xba,0x79,0xe4,
0x3b,0x77,0x5d,0x4d,0x47,0xb2,0x2d,0xb4
};
static const unsigned char aes_128_no_df_additionalinput2[] =
{
0x0b,0xb9,0x67,0x37,0xdb,0x83,0xdf,0xca,0x81,0x8b,0xf9,0x3f,
0xf1,0x11,0x1b,0x2f,0xf0,0x61,0xa6,0xdf,0xba,0xa3,0xb1,0xac,
0xd3,0xe6,0x09,0xb8,0x2c,0x6a,0x67,0xd6
};
static const unsigned char aes_128_no_df_returnedbits[] =
{
0x1e,0xa7,0xa4,0xe4,0xe1,0xa6,0x7c,0x69,0x9a,0x44,0x6c,0x36,
0x81,0x37,0x19,0xd4
};
/* AES-192 no df PR */
static const unsigned char aes_192_no_df_pr_entropyinput[] =
{
0x9d,0x2c,0xd2,0x55,0x66,0xea,0xe0,0xbe,0x18,0xb7,0x76,0xe7,
0x73,0x35,0xd8,0x1f,0xad,0x3a,0xe3,0x81,0x0e,0x92,0xd0,0x61,
0xc9,0x12,0x26,0xf6,0x1c,0xdf,0xfe,0x47,0xaa,0xfe,0x7d,0x5a,
0x17,0x1f,0x8d,0x9a
};
static const unsigned char aes_192_no_df_pr_nonce[] =
{
0x44,0x82,0xed,0xe8,0x4c,0x28,0x5a,0x14,0xff,0x88,0x8d,0x19,
0x61,0x5c,0xee,0x0f
};
static const unsigned char aes_192_no_df_pr_personalizationstring[] =
{
0x47,0xd7,0x9b,0x99,0xaa,0xcb,0xe7,0xd2,0x57,0x66,0x2c,0xe1,
0x78,0xd6,0x2c,0xea,0xa3,0x23,0x5f,0x2a,0xc1,0x3a,0xf0,0xa4,
0x20,0x3b,0xfa,0x07,0xd5,0x05,0x02,0xe4,0x57,0x01,0xb6,0x10,
0x57,0x2e,0xe7,0x55
};
static const unsigned char aes_192_no_df_pr_additionalinput[] =
{
0x4b,0x74,0x0b,0x40,0xce,0x6b,0xc2,0x6a,0x24,0xb4,0xf3,0xad,
0x7a,0xa5,0x7a,0xa2,0x15,0xe2,0xc8,0x61,0x15,0xc6,0xb7,0x85,
0x69,0x11,0xad,0x7b,0x14,0xd2,0xf6,0x12,0xa1,0x95,0x5d,0x3f,
0xe2,0xd0,0x0c,0x2f
};
static const unsigned char aes_192_no_df_pr_entropyinputpr[] =
{
0x0c,0x9c,0xad,0x05,0xee,0xae,0x48,0x23,0x89,0x59,0xa1,0x94,
0xd7,0xd8,0x75,0xd5,0x54,0x93,0xc7,0x4a,0xd9,0x26,0xde,0xeb,
0xba,0xb0,0x7e,0x30,0x1d,0x5f,0x69,0x40,0x9c,0x3b,0x17,0x58,
0x1d,0x30,0xb3,0x78
};
static const unsigned char aes_192_no_df_pr_int_returnedbits[] =
{
0xf7,0x93,0xb0,0x6d,0x77,0x83,0xd5,0x38,0x01,0xe1,0x52,0x40,
0x7e,0x3e,0x0c,0x26
};
static const unsigned char aes_192_no_df_pr_additionalinput2[] =
{
0xbc,0x4b,0x37,0x44,0x1c,0xc5,0x45,0x5f,0x8f,0x51,0x62,0x8a,
0x85,0x30,0x1d,0x7c,0xe4,0xcf,0xf7,0x44,0xce,0x32,0x3e,0x57,
0x95,0xa4,0x2a,0xdf,0xfd,0x9e,0x38,0x41,0xb3,0xf6,0xc5,0xee,
0x0c,0x4b,0xee,0x6e
};
static const unsigned char aes_192_no_df_pr_entropyinputpr2[] =
{
0xec,0xaf,0xf6,0x4f,0xb1,0xa0,0x54,0xb5,0x5b,0xe3,0x46,0xb0,
0x76,0x5a,0x7c,0x3f,0x7b,0x94,0x69,0x21,0x51,0x02,0xe5,0x9f,
0x04,0x59,0x02,0x98,0xc6,0x43,0x2c,0xcc,0x26,0x4c,0x87,0x6b,
0x8e,0x0a,0x83,0xdf
};
static const unsigned char aes_192_no_df_pr_returnedbits[] =
{
0x74,0x45,0xfb,0x53,0x84,0x96,0xbe,0xff,0x15,0xcc,0x41,0x91,
0xb9,0xa1,0x21,0x68
};
/* AES-192 no df No PR */
static const unsigned char aes_192_no_df_entropyinput[] =
{
0x3c,0x7d,0xb5,0xe0,0x54,0xd9,0x6e,0x8c,0xa9,0x86,0xce,0x4e,
0x6b,0xaf,0xeb,0x2f,0xe7,0x75,0xe0,0x8b,0xa4,0x3b,0x07,0xfe,
0xbe,0x33,0x75,0x93,0x80,0x27,0xb5,0x29,0x47,0x8b,0xc7,0x28,
0x94,0xc3,0x59,0x63
};
static const unsigned char aes_192_no_df_nonce[] =
{
0x43,0xf1,0x7d,0xb8,0xc3,0xfe,0xd0,0x23,0x6b,0xb4,0x92,0xdb,
0x29,0xfd,0x45,0x71
};
static const unsigned char aes_192_no_df_personalizationstring[] =
{
0x9f,0x24,0x29,0x99,0x9e,0x01,0xab,0xe9,0x19,0xd8,0x23,0x08,
0xb7,0xd6,0x7e,0x8c,0xc0,0x9e,0x7f,0x6e,0x5b,0x33,0x20,0x96,
0x0b,0x23,0x2c,0xa5,0x6a,0xf8,0x1b,0x04,0x26,0xdb,0x2e,0x2b,
0x3b,0x88,0xce,0x35
};
static const unsigned char aes_192_no_df_additionalinput[] =
{
0x94,0xe9,0x7c,0x3d,0xa7,0xdb,0x60,0x83,0x1f,0x98,0x3f,0x0b,
0x88,0x59,0x57,0x51,0x88,0x9f,0x76,0x49,0x9f,0xa6,0xda,0x71,
0x1d,0x0d,0x47,0x16,0x63,0xc5,0x68,0xe4,0x5d,0x39,0x69,0xb3,
0x3e,0xbe,0xd4,0x8e
};
static const unsigned char aes_192_no_df_int_returnedbits[] =
{
0xf9,0xd7,0xad,0x69,0xab,0x8f,0x23,0x56,0x70,0x17,0x4f,0x2a,
0x45,0xe7,0x4a,0xc5
};
static const unsigned char aes_192_no_df_entropyinputreseed[] =
{
0xa6,0x71,0x6a,0x3d,0xba,0xd1,0xe8,0x66,0xa6,0xef,0xb2,0x0e,
0xa8,0x9c,0xaa,0x4e,0xaf,0x17,0x89,0x50,0x00,0xda,0xa1,0xb1,
0x0b,0xa4,0xd9,0x35,0x89,0xc8,0xe5,0xb0,0xd9,0xb7,0xc4,0x33,
0x9b,0xcb,0x7e,0x75
};
static const unsigned char aes_192_no_df_additionalinputreseed[] =
{
0x27,0x21,0xfc,0xc2,0xbd,0xf3,0x3c,0xce,0xc3,0xca,0xc1,0x01,
0xe0,0xff,0x93,0x12,0x7d,0x54,0x42,0xe3,0x9f,0x03,0xdf,0x27,
0x04,0x07,0x3c,0x53,0x7f,0xa8,0x66,0xc8,0x97,0x4b,0x61,0x40,
0x5d,0x7a,0x25,0x79
};
static const unsigned char aes_192_no_df_additionalinput2[] =
{
0x2d,0x8e,0x16,0x5d,0x0b,0x9f,0xeb,0xaa,0xd6,0xec,0x28,0x71,
0x7c,0x0b,0xc1,0x1d,0xd4,0x44,0x19,0x47,0xfd,0x1d,0x7c,0xe5,
0xf3,0x27,0xe1,0xb6,0x72,0x0a,0xe0,0xec,0x0e,0xcd,0xef,0x1a,
0x91,0x6a,0xe3,0x5f
};
static const unsigned char aes_192_no_df_returnedbits[] =
{
0xe5,0xda,0xb8,0xe0,0x63,0x59,0x5a,0xcc,0x3d,0xdc,0x9f,0xe8,
0x66,0x67,0x2c,0x92
};
/* AES-256 no df PR */
static const unsigned char aes_256_no_df_pr_entropyinput[] =
{
0x15,0xc7,0x5d,0xcb,0x41,0x4b,0x16,0x01,0x3a,0xd1,0x44,0xe8,
0x22,0x32,0xc6,0x9c,0x3f,0xe7,0x43,0xf5,0x9a,0xd3,0xea,0xf2,
0xd7,0x4e,0x6e,0x6a,0x55,0x73,0x40,0xef,0x89,0xad,0x0d,0x03,
0x96,0x7e,0x78,0x81,0x2f,0x91,0x1b,0x44,0xb0,0x02,0xba,0x1c
};
static const unsigned char aes_256_no_df_pr_nonce[] =
{
0xdc,0xe4,0xd4,0x27,0x7a,0x90,0xd7,0x99,0x43,0xa1,0x3c,0x30,
0xcc,0x4b,0xee,0x2e
};
static const unsigned char aes_256_no_df_pr_personalizationstring[] =
{
0xe3,0xe6,0xb9,0x11,0xe4,0x7a,0xa4,0x40,0x6b,0xf8,0x73,0xf7,
0x7e,0xec,0xc7,0xb9,0x97,0xbf,0xf8,0x25,0x7b,0xbe,0x11,0x9b,
0x5b,0x6a,0x0c,0x2e,0x2b,0x01,0x51,0xcd,0x41,0x4b,0x6b,0xac,
0x31,0xa8,0x0b,0xf7,0xe6,0x59,0x42,0xb8,0x03,0x0c,0xf8,0x06
};
static const unsigned char aes_256_no_df_pr_additionalinput[] =
{
0x6a,0x9f,0x00,0x91,0xae,0xfe,0xcf,0x84,0x99,0xce,0xb1,0x40,
0x6d,0x5d,0x33,0x28,0x84,0xf4,0x8c,0x63,0x4c,0x7e,0xbd,0x2c,
0x80,0x76,0xee,0x5a,0xaa,0x15,0x07,0x31,0xd8,0xbb,0x8c,0x69,
0x9d,0x9d,0xbc,0x7e,0x49,0xae,0xec,0x39,0x6b,0xd1,0x1f,0x7e
};
static const unsigned char aes_256_no_df_pr_entropyinputpr[] =
{
0xf3,0xb9,0x75,0x9c,0xbd,0x88,0xea,0xa2,0x50,0xad,0xd6,0x16,
0x1a,0x12,0x3c,0x86,0x68,0xaf,0x6f,0xbe,0x19,0xf2,0xee,0xcc,
0xa5,0x70,0x84,0x53,0x50,0xcb,0x9f,0x14,0xa9,0xe5,0xee,0xb9,
0x48,0x45,0x40,0xe2,0xc7,0xc9,0x9a,0x74,0xff,0x8c,0x99,0x1f
};
static const unsigned char aes_256_no_df_pr_int_returnedbits[] =
{
0x2e,0xf2,0x45,0x4c,0x62,0x2e,0x0a,0xb9,0x6b,0xa2,0xfd,0x56,
0x79,0x60,0x93,0xcf
};
static const unsigned char aes_256_no_df_pr_additionalinput2[] =
{
0xaf,0x69,0x20,0xe9,0x3b,0x37,0x9d,0x3f,0xb4,0x80,0x02,0x7a,
0x25,0x7d,0xb8,0xde,0x71,0xc5,0x06,0x0c,0xb4,0xe2,0x8f,0x35,
0xd8,0x14,0x0d,0x7f,0x76,0x63,0x4e,0xb5,0xee,0xe9,0x6f,0x34,
0xc7,0x5f,0x56,0x14,0x4a,0xe8,0x73,0x95,0x5b,0x1c,0xb9,0xcb
};
static const unsigned char aes_256_no_df_pr_entropyinputpr2[] =
{
0xe5,0xb0,0x2e,0x7e,0x52,0x30,0xe3,0x63,0x82,0xb6,0x44,0xd3,
0x25,0x19,0x05,0x24,0x9a,0x9f,0x5f,0x27,0x6a,0x29,0xab,0xfa,
0x07,0xa2,0x42,0x0f,0xc5,0xa8,0x94,0x7c,0x17,0x7b,0x85,0x83,
0x0c,0x25,0x0e,0x63,0x0b,0xe9,0x12,0x60,0xcd,0xef,0x80,0x0f
};
static const unsigned char aes_256_no_df_pr_returnedbits[] =
{
0x5e,0xf2,0x26,0xef,0x9f,0x58,0x5d,0xd5,0x4a,0x10,0xfe,0xa7,
0x2d,0x5f,0x4a,0x46
};
/* AES-256 no df No PR */
static const unsigned char aes_256_no_df_entropyinput[] =
{
0xfb,0xcf,0x1b,0x61,0x16,0x89,0x78,0x23,0xf5,0xd8,0x96,0xe3,
0x4e,0x64,0x0b,0x29,0x9a,0x3f,0xf8,0xa5,0xed,0xf2,0xfe,0xdb,
0x16,0xca,0x7f,0x10,0xfa,0x5e,0x18,0x76,0x2c,0x63,0x5e,0x96,
0xcf,0xb3,0xd6,0xfc,0xaf,0x99,0x39,0x28,0x9c,0x61,0xe8,0xb3
};
static const unsigned char aes_256_no_df_nonce[] =
{
0x12,0x96,0xf0,0x52,0xf3,0x8d,0x81,0xcf,0xde,0x86,0xf2,0x99,
0x43,0x96,0xb9,0xf0
};
static const unsigned char aes_256_no_df_personalizationstring[] =
{
0x63,0x0d,0x78,0xf5,0x90,0x8e,0x32,0x47,0xb0,0x4d,0x37,0x60,
0x09,0x96,0xbc,0xbf,0x97,0x7a,0x62,0x14,0x45,0xbd,0x8d,0xcc,
0x69,0xfb,0x03,0xe1,0x80,0x1c,0xc7,0xe2,0x2a,0xf9,0x37,0x3f,
0x66,0x4d,0x62,0xd9,0x10,0xe0,0xad,0xc8,0x9a,0xf0,0xa8,0x6d
};
static const unsigned char aes_256_no_df_additionalinput[] =
{
0x36,0xc6,0x13,0x60,0xbb,0x14,0xad,0x22,0xb0,0x38,0xac,0xa6,
0x18,0x16,0x93,0x25,0x86,0xb7,0xdc,0xdc,0x36,0x98,0x2b,0xf9,
0x68,0x33,0xd3,0xc6,0xff,0xce,0x8d,0x15,0x59,0x82,0x76,0xed,
0x6f,0x8d,0x49,0x74,0x2f,0xda,0xdc,0x1f,0x17,0xd0,0xde,0x17
};
static const unsigned char aes_256_no_df_int_returnedbits[] =
{
0x16,0x2f,0x8e,0x3f,0x21,0x7a,0x1c,0x20,0x56,0xd1,0x92,0xf6,
0xd2,0x25,0x75,0x0e
};
static const unsigned char aes_256_no_df_entropyinputreseed[] =
{
0x91,0x79,0x76,0xee,0xe0,0xcf,0x9e,0xc2,0xd5,0xd4,0x23,0x9b,
0x12,0x8c,0x7e,0x0a,0xb7,0xd2,0x8b,0xd6,0x7c,0xa3,0xc6,0xe5,
0x0e,0xaa,0xc7,0x6b,0xae,0x0d,0xfa,0x53,0x06,0x79,0xa1,0xed,
0x4d,0x6a,0x0e,0xd8,0x9d,0xbe,0x1b,0x31,0x93,0x7b,0xec,0xfb
};
static const unsigned char aes_256_no_df_additionalinputreseed[] =
{
0xd2,0x46,0x50,0x22,0x10,0x14,0x63,0xf7,0xea,0x0f,0xb9,0x7e,
0x0d,0xe1,0x94,0x07,0xaf,0x09,0x44,0x31,0xea,0x64,0xa4,0x18,
0x5b,0xf9,0xd8,0xc2,0xfa,0x03,0x47,0xc5,0x39,0x43,0xd5,0x3b,
0x62,0x86,0x64,0xea,0x2c,0x73,0x8c,0xae,0x9d,0x98,0x98,0x29
};
static const unsigned char aes_256_no_df_additionalinput2[] =
{
0x8c,0xab,0x18,0xf8,0xc3,0xec,0x18,0x5c,0xb3,0x1e,0x9d,0xbe,
0x3f,0x03,0xb4,0x00,0x98,0x9d,0xae,0xeb,0xf4,0x94,0xf8,0x42,
0x8f,0xe3,0x39,0x07,0xe1,0xc9,0xad,0x0b,0x1f,0xed,0xc0,0xba,
0xf6,0xd1,0xec,0x27,0x86,0x7b,0xd6,0x55,0x9b,0x60,0xa5,0xc6
};
static const unsigned char aes_256_no_df_returnedbits[] =
{
0xef,0xd2,0xd8,0x5c,0xdc,0x62,0x25,0x9f,0xaa,0x1e,0x2c,0x67,
0xf6,0x02,0x32,0xe2
};
/* SHA-1 PR */
static const unsigned char sha1_pr_entropyinput[] =
{
0xd2,0x36,0xa5,0x27,0x31,0x73,0xdd,0x11,0x4f,0x93,0xbd,0xe2,
0x31,0xa5,0x91,0x13
};
static const unsigned char sha1_pr_nonce[] =
{
0xb5,0xb3,0x60,0xef,0xf7,0x63,0x31,0xf3
};
static const unsigned char sha1_pr_personalizationstring[] =
{
0xd4,0xbb,0x02,0x10,0xb2,0x71,0xdb,0x81,0xd6,0xf0,0x42,0x60,
0xda,0xea,0x77,0x52
};
static const unsigned char sha1_pr_additionalinput[] =
{
0x4d,0xd2,0x6c,0x87,0xfb,0x2c,0x4f,0xa6,0x8d,0x16,0x63,0x22,
0x6a,0x51,0xe3,0xf8
};
static const unsigned char sha1_pr_entropyinputpr[] =
{
0xc9,0x83,0x9e,0x16,0xf6,0x1c,0x0f,0xb2,0xec,0x60,0x31,0xa9,
0xcb,0xa9,0x36,0x7a
};
static const unsigned char sha1_pr_int_returnedbits[] =
{
0xa8,0x13,0x4f,0xf4,0x31,0x02,0x44,0xe3,0xd3,0x3d,0x61,0x9e,
0xe5,0xc6,0x3e,0x89,0xb5,0x9b,0x0f,0x35
};
static const unsigned char sha1_pr_additionalinput2[] =
{
0xf9,0xe8,0xd2,0x72,0x13,0x34,0x95,0x6f,0x15,0x49,0x47,0x99,
0x16,0x03,0x19,0x47
};
static const unsigned char sha1_pr_entropyinputpr2[] =
{
0x4e,0x8c,0x49,0x9b,0x4a,0x5c,0x9b,0x9c,0x3a,0xee,0xfb,0xd2,
0xae,0xcd,0x8c,0xc4
};
static const unsigned char sha1_pr_returnedbits[] =
{
0x50,0xb4,0xb4,0xcd,0x68,0x57,0xfc,0x2e,0xc1,0x52,0xcc,0xf6,
0x68,0xa4,0x81,0xed,0x7e,0xe4,0x1d,0x87
};
/* SHA-1 No PR */
static const unsigned char sha1_entropyinput[] =
{
0xa9,0x47,0x1b,0x29,0x2d,0x1c,0x05,0xdf,0x76,0xd0,0x62,0xf9,
0xe2,0x7f,0x4c,0x7b
};
static const unsigned char sha1_nonce[] =
{
0x53,0x23,0x24,0xe3,0xec,0x0c,0x54,0x14
};
static const unsigned char sha1_personalizationstring[] =
{
0x7a,0x87,0xa1,0xac,0x1c,0xfd,0xab,0xae,0xf7,0xd6,0xfb,0x76,
0x28,0xec,0x6d,0xca
};
static const unsigned char sha1_additionalinput[] =
{
0xfc,0x92,0x35,0xd6,0x7e,0xb7,0x24,0x65,0xfd,0x12,0x27,0x35,
0xc0,0x72,0xca,0x28
};
static const unsigned char sha1_int_returnedbits[] =
{
0x57,0x88,0x82,0xe5,0x25,0xa5,0x2c,0x4a,0x06,0x20,0x6c,0x72,
0x55,0x61,0xdd,0x90,0x71,0x9f,0x95,0xea
};
static const unsigned char sha1_entropyinputreseed[] =
{
0x69,0xa5,0x40,0x62,0x98,0x47,0x56,0x73,0x4a,0x8f,0x60,0x96,
0xd6,0x99,0x27,0xed
};
static const unsigned char sha1_additionalinputreseed[] =
{
0xe5,0x40,0x4e,0xbd,0x50,0x00,0xf5,0x15,0xa6,0xee,0x45,0xda,
0x84,0x3d,0xd4,0xc0
};
static const unsigned char sha1_additionalinput2[] =
{
0x11,0x51,0x14,0xf0,0x09,0x1b,0x4e,0x56,0x0d,0xe9,0xf6,0x1e,
0x52,0x65,0xcd,0x96
};
static const unsigned char sha1_returnedbits[] =
{
0xa1,0x9c,0x94,0x6e,0x29,0xe1,0x33,0x0d,0x32,0xd6,0xaa,0xce,
0x71,0x3f,0x52,0x72,0x8b,0x42,0xa8,0xd7
};
/* SHA-224 PR */
static const unsigned char sha224_pr_entropyinput[] =
{
0x12,0x69,0x32,0x4f,0x83,0xa6,0xf5,0x14,0xe3,0x49,0x3e,0x75,
0x3e,0xde,0xad,0xa1,0x29,0xc3,0xf3,0x19,0x20,0xb5,0x4c,0xd9
};
static const unsigned char sha224_pr_nonce[] =
{
0x6a,0x78,0xd0,0xeb,0xbb,0x5a,0xf0,0xee,0xe8,0xc3,0xba,0x71
};
static const unsigned char sha224_pr_personalizationstring[] =
{
0xd5,0xb8,0xb6,0xbc,0xc1,0x5b,0x60,0x31,0x3c,0xf5,0xe5,0xc0,
0x8e,0x52,0x7a,0xbd,0xea,0x47,0xa9,0x5f,0x8f,0xf9,0x8b,0xae
};
static const unsigned char sha224_pr_additionalinput[] =
{
0x1f,0x55,0xec,0xae,0x16,0x12,0x84,0xba,0x84,0x16,0x19,0x88,
0x8e,0xb8,0x33,0x25,0x54,0xff,0xca,0x79,0xaf,0x07,0x25,0x50
};
static const unsigned char sha224_pr_entropyinputpr[] =
{
0x92,0xa3,0x32,0xa8,0x9a,0x0a,0x58,0x7c,0x1d,0x5a,0x7e,0xe1,
0xb2,0x73,0xab,0x0e,0x16,0x79,0x23,0xd3,0x29,0x89,0x81,0xe1
};
static const unsigned char sha224_pr_int_returnedbits[] =
{
0xf3,0x38,0x91,0x40,0x37,0x7a,0x51,0x72,0x42,0x74,0x78,0x0a,
0x69,0xfd,0xa6,0x44,0x43,0x45,0x6c,0x0c,0x5a,0x19,0xff,0xf1,
0x54,0x60,0xee,0x6a
};
static const unsigned char sha224_pr_additionalinput2[] =
{
0x75,0xf3,0x04,0x25,0xdd,0x36,0xa8,0x37,0x46,0xae,0x0c,0x52,
0x05,0x79,0x4c,0x26,0xdb,0xe9,0x71,0x16,0x4c,0x0a,0xf2,0x60
};
static const unsigned char sha224_pr_entropyinputpr2[] =
{
0xea,0xc5,0x03,0x0a,0x4f,0xb0,0x38,0x8d,0x23,0xd4,0xc8,0x77,
0xe2,0x6d,0x9c,0x0b,0x44,0xf7,0x2d,0x5b,0xbf,0x5d,0x2a,0x11
};
static const unsigned char sha224_pr_returnedbits[] =
{
0x60,0x50,0x2b,0xe7,0x86,0xd8,0x26,0x73,0xe3,0x1d,0x95,0x20,
0xb3,0x2c,0x32,0x1c,0xf5,0xce,0x57,0xa6,0x67,0x2b,0xdc,0x4e,
0xdd,0x11,0x4c,0xc4
};
/* SHA-224 No PR */
static const unsigned char sha224_entropyinput[] =
{
0xb2,0x1c,0x77,0x4d,0xf6,0xd3,0xb6,0x40,0xb7,0x30,0x3e,0x29,
0xb0,0x85,0x1c,0xbe,0x4a,0xea,0x6b,0x5a,0xb5,0x8a,0x97,0xeb
};
static const unsigned char sha224_nonce[] =
{
0x42,0x02,0x0a,0x1c,0x98,0x9a,0x77,0x9e,0x9f,0x80,0xba,0xe0
};
static const unsigned char sha224_personalizationstring[] =
{
0x98,0xb8,0x04,0x41,0xfc,0xc1,0x5d,0xc5,0xe9,0xb9,0x08,0xda,
0xf9,0xfa,0x0d,0x90,0xce,0xdf,0x1d,0x10,0xa9,0x8d,0x50,0x0c
};
static const unsigned char sha224_additionalinput[] =
{
0x9a,0x8d,0x39,0x49,0x42,0xd5,0x0b,0xae,0xe1,0xaf,0xb7,0x00,
0x02,0xfa,0x96,0xb1,0xa5,0x1d,0x2d,0x25,0x78,0xee,0x83,0x3f
};
static const unsigned char sha224_int_returnedbits[] =
{
0xe4,0xf5,0x53,0x79,0x5a,0x97,0x58,0x06,0x08,0xba,0x7b,0xfa,
0xf0,0x83,0x05,0x8c,0x22,0xc0,0xc9,0xdb,0x15,0xe7,0xde,0x20,
0x55,0x22,0x9a,0xad
};
static const unsigned char sha224_entropyinputreseed[] =
{
0x67,0x09,0x48,0xaa,0x07,0x16,0x99,0x89,0x7f,0x6d,0xa0,0xe5,
0x8f,0xdf,0xbc,0xdb,0xfe,0xe5,0x6c,0x7a,0x95,0x4a,0x66,0x17
};
static const unsigned char sha224_additionalinputreseed[] =
{
0x0f,0x4b,0x1c,0x6f,0xb7,0xe3,0x47,0xe5,0x5d,0x7d,0x38,0xd6,
0x28,0x9b,0xeb,0x55,0x63,0x09,0x3e,0x7c,0x56,0xea,0xf8,0x19
};
static const unsigned char sha224_additionalinput2[] =
{
0x2d,0x26,0x7c,0x37,0xe4,0x7a,0x28,0x5e,0x5a,0x3c,0xaf,0x3d,
0x5a,0x8e,0x55,0xa2,0x1a,0x6e,0xc0,0xe5,0xf6,0x21,0xd3,0xf6
};
static const unsigned char sha224_returnedbits[] =
{
0x4d,0x83,0x35,0xdf,0x67,0xa9,0xfc,0x17,0xda,0x70,0xcc,0x8b,
0x7f,0x77,0xae,0xa2,0x5f,0xb9,0x7e,0x74,0x4c,0x26,0xc1,0x7a,
0x3b,0xa7,0x5c,0x93
};
/* SHA-256 PR */
static const unsigned char sha256_pr_entropyinput[] =
{
0xce,0x49,0x00,0x7a,0x56,0xe3,0x67,0x8f,0xe1,0xb6,0xa7,0xd4,
0x4f,0x08,0x7a,0x1b,0x01,0xf4,0xfa,0x6b,0xef,0xb7,0xe5,0xeb,
0x07,0x3d,0x11,0x0d,0xc8,0xea,0x2b,0xfe
};
static const unsigned char sha256_pr_nonce[] =
{
0x73,0x41,0xc8,0x92,0x94,0xe2,0xc5,0x5f,0x93,0xfd,0x39,0x5d,
0x2b,0x91,0x4d,0x38
};
static const unsigned char sha256_pr_personalizationstring[] =
{
0x50,0x6d,0x01,0x01,0x07,0x5a,0x80,0x35,0x7a,0x56,0x1a,0x56,
0x2f,0x9a,0x0b,0x35,0xb2,0xb1,0xc9,0xe5,0xca,0x69,0x61,0x48,
0xff,0xfb,0x0f,0xd9,0x4b,0x79,0x1d,0xba
};
static const unsigned char sha256_pr_additionalinput[] =
{
0x20,0xb8,0xdf,0x44,0x77,0x5a,0xb8,0xd3,0xbf,0xf6,0xcf,0xac,
0x5e,0xa6,0x96,0x62,0x73,0x44,0x40,0x4a,0x30,0xfb,0x38,0xa5,
0x7b,0x0d,0xe4,0x0d,0xc6,0xe4,0x9a,0x1f
};
static const unsigned char sha256_pr_entropyinputpr[] =
{
0x04,0xc4,0x65,0xf4,0xd3,0xbf,0x83,0x4b,0xab,0xc8,0x41,0xa8,
0xc2,0xe0,0x44,0x63,0x77,0x4c,0x6f,0x6c,0x49,0x46,0xff,0x94,
0x17,0xea,0xe6,0x1a,0x9d,0x5e,0x66,0x78
};
static const unsigned char sha256_pr_int_returnedbits[] =
{
0x07,0x4d,0xac,0x9b,0x86,0xca,0x4a,0xaa,0x6e,0x7a,0x03,0xa2,
0x5d,0x10,0xea,0x0b,0xf9,0x83,0xcc,0xd1,0xfc,0xe2,0x07,0xc7,
0x06,0x34,0x60,0x6f,0x83,0x94,0x99,0x76
};
static const unsigned char sha256_pr_additionalinput2[] =
{
0x89,0x4e,0x45,0x8c,0x11,0xf9,0xbc,0x5b,0xac,0x74,0x8b,0x4b,
0x5f,0xf7,0x19,0xf3,0xf5,0x24,0x54,0x14,0xd1,0x15,0xb1,0x43,
0x12,0xa4,0x5f,0xd4,0xec,0xfc,0xcd,0x09
};
static const unsigned char sha256_pr_entropyinputpr2[] =
{
0x0e,0xeb,0x1f,0xd7,0xfc,0xd1,0x9d,0xd4,0x05,0x36,0x8b,0xb2,
0xfb,0xe4,0xf4,0x51,0x0c,0x87,0x9b,0x02,0x44,0xd5,0x92,0x4d,
0x44,0xfe,0x1a,0x03,0x43,0x56,0xbd,0x86
};
static const unsigned char sha256_pr_returnedbits[] =
{
0x02,0xaa,0xb6,0x1d,0x7e,0x2a,0x40,0x03,0x69,0x2d,0x49,0xa3,
0x41,0xe7,0x44,0x0b,0xaf,0x7b,0x85,0xe4,0x5f,0x53,0x3b,0x64,
0xbc,0x89,0xc8,0x82,0xd4,0x78,0x37,0xa2
};
/* SHA-256 No PR */
static const unsigned char sha256_entropyinput[] =
{
0x5b,0x1b,0xec,0x4d,0xa9,0x38,0x74,0x5a,0x34,0x0b,0x7b,0xc5,
0xe5,0xd7,0x66,0x7c,0xbc,0x82,0xb9,0x0e,0x2d,0x1f,0x92,0xd7,
0xc1,0xbc,0x67,0x69,0xec,0x6b,0x03,0x3c
};
static const unsigned char sha256_nonce[] =
{
0xa4,0x0c,0xd8,0x9c,0x61,0xd8,0xc3,0x54,0xfe,0x53,0xc9,0xe5,
0x5d,0x6f,0x6d,0x35
};
static const unsigned char sha256_personalizationstring[] =
{
0x22,0x5e,0x62,0x93,0x42,0x83,0x78,0x24,0xd8,0x40,0x8c,0xde,
0x6f,0xf9,0xa4,0x7a,0xc5,0xa7,0x3b,0x88,0xa3,0xee,0x42,0x20,
0xfd,0x61,0x56,0xc6,0x4c,0x13,0x41,0x9c
};
static const unsigned char sha256_additionalinput[] =
{
0xbf,0x74,0x5b,0xf6,0xc5,0x64,0x5e,0x99,0x34,0x8f,0xbc,0xa4,
0xe2,0xbd,0xd8,0x85,0x26,0x37,0xea,0xba,0x4f,0xf2,0x9a,0x9a,
0x66,0xfc,0xdf,0x63,0x26,0x26,0x19,0x87
};
static const unsigned char sha256_int_returnedbits[] =
{
0xb3,0xc6,0x07,0x07,0xd6,0x75,0xf6,0x2b,0xd6,0x21,0x96,0xf1,
0xae,0xdb,0x2b,0xac,0x25,0x2a,0xae,0xae,0x41,0x72,0x03,0x5e,
0xbf,0xd3,0x64,0xbc,0x59,0xf9,0xc0,0x76
};
static const unsigned char sha256_entropyinputreseed[] =
{
0xbf,0x20,0x33,0x56,0x29,0xa8,0x37,0x04,0x1f,0x78,0x34,0x3d,
0x81,0x2a,0xc9,0x86,0xc6,0x7a,0x2f,0x88,0x5e,0xd5,0xbe,0x34,
0x46,0x20,0xa4,0x35,0xeb,0xc7,0xe2,0x9d
};
static const unsigned char sha256_additionalinputreseed[] =
{
0x9b,0xae,0x2d,0x2d,0x61,0xa4,0x89,0xeb,0x43,0x46,0xa7,0xda,
0xef,0x40,0xca,0x4a,0x99,0x11,0x41,0xdc,0x5c,0x94,0xe9,0xac,
0xd4,0xd0,0xe6,0xbd,0xfb,0x03,0x9c,0xa8
};
static const unsigned char sha256_additionalinput2[] =
{
0x23,0xaa,0x0c,0xbd,0x28,0x33,0xe2,0x51,0xfc,0x71,0xd2,0x15,
0x1f,0x76,0xfd,0x0d,0xe0,0xb7,0xb5,0x84,0x75,0x5b,0xbe,0xf3,
0x5c,0xca,0xc5,0x30,0xf2,0x75,0x1f,0xda
};
static const unsigned char sha256_returnedbits[] =
{
0x90,0x3c,0xc1,0x10,0x8c,0x12,0x01,0xc6,0xa6,0x3a,0x0f,0x4d,
0xb6,0x3a,0x4f,0x41,0x9c,0x61,0x75,0x84,0xe9,0x74,0x75,0xfd,
0xfe,0xf2,0x1f,0x43,0xd8,0x5e,0x24,0xa3
};
/* SHA-384 PR */
static const unsigned char sha384_pr_entropyinput[] =
{
0x71,0x9d,0xb2,0x5a,0x71,0x6d,0x04,0xe9,0x1e,0xc7,0x92,0x24,
0x6e,0x12,0x33,0xa9,0x52,0x64,0x31,0xef,0x71,0xeb,0x22,0x55,
0x28,0x97,0x06,0x6a,0xc0,0x0c,0xa0,0x7e
};
static const unsigned char sha384_pr_nonce[] =
{
0xf5,0x0d,0xfa,0xb0,0xec,0x6a,0x7c,0xd6,0xbd,0x9b,0x05,0xfd,
0x38,0x3e,0x2e,0x56
};
static const unsigned char sha384_pr_personalizationstring[] =
{
0x74,0xac,0x7e,0x6d,0xb1,0xa4,0xe7,0x21,0xd1,0x1e,0x6e,0x96,
0x6d,0x4d,0x53,0x46,0x82,0x96,0x6e,0xcf,0xaa,0x81,0x8d,0x7d,
0x9e,0xe1,0x0f,0x15,0xea,0x41,0xbf,0xe3
};
static const unsigned char sha384_pr_additionalinput[] =
{
0xda,0x95,0xd4,0xd0,0xb8,0x11,0xd3,0x49,0x27,0x5d,0xa9,0x39,
0x68,0xf3,0xa8,0xe9,0x5d,0x19,0x8a,0x2b,0x66,0xe8,0x69,0x06,
0x7c,0x9e,0x03,0xa1,0x8b,0x26,0x2d,0x6e
};
static const unsigned char sha384_pr_entropyinputpr[] =
{
0x49,0xdf,0x44,0x00,0xe4,0x1c,0x75,0x0b,0x26,0x5a,0x59,0x64,
0x1f,0x4e,0xb1,0xb2,0x13,0xf1,0x22,0x4e,0xb4,0x6d,0x9a,0xcc,
0xa0,0x48,0xe6,0xcf,0x1d,0xd1,0x92,0x0d
};
static const unsigned char sha384_pr_int_returnedbits[] =
{
0xc8,0x52,0xae,0xbf,0x04,0x3c,0x27,0xb7,0x78,0x18,0xaa,0x8f,
0xff,0xcf,0xa4,0xf1,0xcc,0xe7,0x68,0xfa,0x22,0xa2,0x13,0x45,
0xe8,0xdd,0x87,0xe6,0xf2,0x6e,0xdd,0xc7,0x52,0x90,0x9f,0x7b,
0xfa,0x61,0x2d,0x9d,0x9e,0xcf,0x98,0xac,0x52,0x40,0xce,0xaf
};
static const unsigned char sha384_pr_additionalinput2[] =
{
0x61,0x7c,0x03,0x9a,0x3e,0x50,0x57,0x60,0xc5,0x83,0xc9,0xb2,
0xd1,0x87,0x85,0x66,0x92,0x5d,0x84,0x0e,0x53,0xfb,0x70,0x03,
0x72,0xfd,0xba,0xae,0x9c,0x8f,0xf8,0x18
};
static const unsigned char sha384_pr_entropyinputpr2[] =
{
0xf8,0xeb,0x89,0xb1,0x8d,0x78,0xbe,0x21,0xe0,0xbb,0x9d,0xb7,
0x95,0x0e,0xd9,0x46,0x0c,0x8c,0xe2,0x63,0xb7,0x9d,0x67,0x90,
0xbd,0xc7,0x0b,0xa5,0xce,0xb2,0x65,0x81
};
static const unsigned char sha384_pr_returnedbits[] =
{
0xe6,0x9f,0xfe,0x68,0xd6,0xb5,0x79,0xf1,0x06,0x5f,0xa3,0xbb,
0x23,0x85,0xd8,0xf0,0x29,0x5a,0x68,0x9e,0xf5,0xf4,0xa6,0x12,
0xe0,0x9a,0xe2,0xac,0x00,0x1d,0x98,0x26,0xfc,0x53,0x95,0x53,
0xe4,0x3e,0x17,0xd5,0x08,0x0b,0x70,0x3d,0x67,0x99,0xac,0x66
};
/* SHA-384 No PR */
static const unsigned char sha384_entropyinput[] =
{
0x07,0x15,0x27,0x2a,0xaf,0x74,0x24,0x37,0xbc,0xd5,0x14,0x69,
0xce,0x11,0xff,0xa2,0x6b,0xb8,0x05,0x67,0x34,0xf8,0xbd,0x6d,
0x6a,0xcc,0xcd,0x60,0xa3,0x68,0xca,0xf4
};
static const unsigned char sha384_nonce[] =
{
0x70,0x17,0xc2,0x5b,0x5d,0x22,0x0b,0x06,0x15,0x54,0x78,0x77,
0x44,0xaf,0x2f,0x09
};
static const unsigned char sha384_personalizationstring[] =
{
0x89,0x39,0x28,0xb0,0x60,0xeb,0x3d,0xdc,0x55,0x75,0x86,0xeb,
0xae,0xa2,0x8f,0xbc,0x1b,0x75,0xd4,0xe1,0x0f,0xaa,0x38,0xca,
0x62,0x8b,0xcb,0x2c,0x26,0xf6,0xbc,0xb1
};
static const unsigned char sha384_additionalinput[] =
{
0x30,0x2b,0x42,0x35,0xef,0xda,0x40,0x55,0x28,0xc6,0x95,0xfb,
0x54,0x01,0x62,0xd7,0x87,0x14,0x48,0x6d,0x90,0x4c,0xa9,0x02,
0x54,0x40,0x22,0xc8,0x66,0xa5,0x48,0x48
};
static const unsigned char sha384_int_returnedbits[] =
{
0x82,0xc4,0xa1,0x9c,0x21,0xd2,0xe7,0xa5,0xa6,0xf6,0x5f,0x04,
0x5c,0xc7,0x31,0x9d,0x8d,0x59,0x74,0x50,0x19,0x89,0x2f,0x63,
0xd5,0xb7,0x7e,0xeb,0x15,0xe3,0x70,0x83,0xa1,0x24,0x59,0xfa,
0x2c,0x56,0xf6,0x88,0x3a,0x92,0x93,0xa1,0xfb,0x79,0xc1,0x7a
};
static const unsigned char sha384_entropyinputreseed[] =
{
0x39,0xa6,0xe8,0x5c,0x82,0x17,0x71,0x26,0x57,0x4f,0x9f,0xc2,
0x55,0xff,0x5c,0x9b,0x53,0x1a,0xd1,0x5f,0xbc,0x62,0xe4,0x27,
0x2d,0x32,0xf0,0xe4,0x52,0x8c,0xc5,0x0c
};
static const unsigned char sha384_additionalinputreseed[] =
{
0x8d,0xcb,0x8d,0xce,0x08,0xea,0x80,0xe8,0x9b,0x61,0xa8,0x0f,
0xaf,0x49,0x20,0x9e,0x74,0xcb,0x57,0x80,0x42,0xb0,0x84,0x5e,
0x30,0x2a,0x67,0x08,0xf4,0xe3,0x40,0x22
};
static const unsigned char sha384_additionalinput2[] =
{
0x7c,0x8f,0xc2,0xae,0x22,0x4a,0xd6,0xf6,0x05,0xa4,0x7a,0xea,
0xbb,0x25,0xd0,0xb7,0x5a,0xd6,0xcf,0x9d,0xf3,0x6c,0xe2,0xb2,
0x4e,0xb4,0xbd,0xf4,0xe5,0x40,0x80,0x94
};
static const unsigned char sha384_returnedbits[] =
{
0x9e,0x7e,0xfb,0x59,0xbb,0xaa,0x3c,0xf7,0xe1,0xf8,0x76,0xdd,
0x63,0x5f,0xaf,0x23,0xd6,0x64,0x61,0xc0,0x9a,0x09,0x47,0xc9,
0x33,0xdf,0x6d,0x55,0x91,0x34,0x79,0x70,0xc4,0x99,0x6e,0x54,
0x09,0x64,0x21,0x1a,0xbd,0x1e,0x80,0x40,0x34,0xad,0xfa,0xd7
};
/* SHA-512 PR */
static const unsigned char sha512_pr_entropyinput[] =
{
0x13,0xf7,0x61,0x75,0x65,0x28,0xa2,0x59,0x13,0x5a,0x4a,0x4f,
0x56,0x60,0x8c,0x53,0x7d,0xb0,0xbd,0x06,0x4f,0xed,0xcc,0xd2,
0xa2,0xb5,0xfd,0x5b,0x3a,0xab,0xec,0x28
};
static const unsigned char sha512_pr_nonce[] =
{
0xbe,0xa3,0x91,0x93,0x1d,0xc3,0x31,0x3a,0x23,0x33,0x50,0x67,
0x88,0xc7,0xa2,0xc4
};
static const unsigned char sha512_pr_personalizationstring[] =
{
0x1f,0x59,0x4d,0x7b,0xe6,0x46,0x91,0x48,0xc1,0x25,0xfa,0xff,
0x89,0x12,0x77,0x35,0xdf,0x3e,0xf4,0x80,0x5f,0xd9,0xb0,0x07,
0x22,0x41,0xdd,0x48,0x78,0x6b,0x77,0x2b
};
static const unsigned char sha512_pr_additionalinput[] =
{
0x30,0xff,0x63,0x6f,0xac,0xd9,0x84,0x39,0x6f,0xe4,0x99,0xce,
0x91,0x7d,0x7e,0xc8,0x58,0xf2,0x12,0xc3,0xb6,0xad,0xda,0x22,
0x04,0xa0,0xd2,0x21,0xfe,0xf2,0x95,0x1d
};
static const unsigned char sha512_pr_entropyinputpr[] =
{
0x64,0x54,0x13,0xec,0x4f,0x77,0xda,0xb2,0x92,0x2e,0x52,0x80,
0x11,0x10,0xc2,0xf8,0xe6,0xa7,0xcd,0x4b,0xfc,0x32,0x2e,0x9e,
0xeb,0xbb,0xb1,0xbf,0x15,0x5c,0x73,0x08
};
static const unsigned char sha512_pr_int_returnedbits[] =
{
0xef,0x1e,0xdc,0x0a,0xa4,0x36,0x91,0x9c,0x3d,0x27,0x97,0x50,
0x8d,0x36,0x29,0x8d,0xce,0x6a,0x0c,0xf7,0x21,0xc0,0x91,0xae,
0x0c,0x96,0x72,0xbd,0x52,0x81,0x58,0xfc,0x6d,0xe5,0xf7,0xa5,
0xfd,0x5d,0xa7,0x58,0x68,0xc8,0x99,0x58,0x8e,0xc8,0xce,0x95,
0x01,0x7d,0xff,0xa4,0xc8,0xf7,0x63,0xfe,0x5f,0x69,0x83,0x53,
0xe2,0xc6,0x8b,0xc3
};
static const unsigned char sha512_pr_additionalinput2[] =
{
0xe6,0x9b,0xc4,0x88,0x34,0xca,0xea,0x29,0x2f,0x98,0x05,0xa4,
0xd3,0xc0,0x7b,0x11,0xe8,0xbb,0x75,0xf2,0xbd,0x29,0xb7,0x40,
0x25,0x7f,0xc1,0xb7,0xb1,0xf1,0x25,0x61
};
static const unsigned char sha512_pr_entropyinputpr2[] =
{
0x23,0x6d,0xff,0xde,0xfb,0xd1,0xba,0x33,0x18,0xe6,0xbe,0xb5,
0x48,0x77,0x6d,0x7f,0xa7,0xe1,0x4d,0x48,0x1e,0x3c,0xa7,0x34,
0x1a,0xc8,0x60,0xdb,0x8f,0x99,0x15,0x99
};
static const unsigned char sha512_pr_returnedbits[] =
{
0x70,0x27,0x31,0xdb,0x92,0x70,0x21,0xfe,0x16,0xb6,0xc8,0x51,
0x34,0x87,0x65,0xd0,0x4e,0xfd,0xfe,0x68,0xec,0xac,0xdc,0x93,
0x41,0x38,0x92,0x90,0xb4,0x94,0xf9,0x0d,0xa4,0xf7,0x4e,0x80,
0x92,0x67,0x48,0x40,0xa7,0x08,0xc7,0xbc,0x66,0x00,0xfd,0xf7,
0x4c,0x8b,0x17,0x6e,0xd1,0x8f,0x9b,0xf3,0x6f,0xf6,0x34,0xdd,
0x67,0xf7,0x68,0xdd
};
/* SHA-512 No PR */
static const unsigned char sha512_entropyinput[] =
{
0xb6,0x0b,0xb7,0xbc,0x84,0x56,0xf6,0x12,0xaf,0x45,0x67,0x17,
0x7c,0xd1,0xb2,0x78,0x2b,0xa0,0xf2,0xbe,0xb6,0x6d,0x8b,0x56,
0xc6,0xbc,0x4d,0xe1,0xf7,0xbe,0xce,0xbd
};
static const unsigned char sha512_nonce[] =
{
0x9d,0xed,0xc0,0xe5,0x5a,0x98,0x6a,0xcb,0x51,0x7d,0x76,0x31,
0x5a,0x64,0xf0,0xf7
};
static const unsigned char sha512_personalizationstring[] =
{
0xc2,0x6d,0xa3,0xc3,0x06,0x74,0xe5,0x01,0x5c,0x10,0x17,0xc7,
0xaf,0x83,0x9d,0x59,0x8d,0x2d,0x29,0x38,0xc5,0x59,0x70,0x8b,
0x46,0x48,0x2d,0xcf,0x36,0x7d,0x59,0xc0
};
static const unsigned char sha512_additionalinput[] =
{
0xec,0x8c,0xd4,0xf7,0x61,0x6e,0x0d,0x95,0x79,0xb7,0x28,0xad,
0x5f,0x69,0x74,0x5f,0x2d,0x36,0x06,0x8a,0x6b,0xac,0x54,0x97,
0xc4,0xa1,0x12,0x85,0x0a,0xdf,0x4b,0x34
};
static const unsigned char sha512_int_returnedbits[] =
{
0x84,0x2f,0x1f,0x68,0x6a,0xa3,0xad,0x1e,0xfb,0xf4,0x15,0xbd,
0xde,0x38,0xd4,0x30,0x80,0x51,0xe9,0xd3,0xc7,0x20,0x88,0xe9,
0xf5,0xcc,0xdf,0x57,0x5c,0x47,0x2f,0x57,0x3c,0x5f,0x13,0x56,
0xcc,0xc5,0x4f,0x84,0xf8,0x10,0x41,0xd5,0x7e,0x58,0x6e,0x19,
0x19,0x9e,0xaf,0xc2,0x22,0x58,0x41,0x50,0x79,0xc2,0xd8,0x04,
0x28,0xd4,0x39,0x9a
};
static const unsigned char sha512_entropyinputreseed[] =
{
0xfa,0x7f,0x46,0x51,0x83,0x62,0x98,0x16,0x9a,0x19,0xa2,0x49,
0xa9,0xe6,0x4a,0xd8,0x85,0xe7,0xd4,0x3b,0x2c,0x82,0xc5,0x82,
0xbf,0x11,0xf9,0x9e,0xbc,0xd0,0x01,0xee
};
static const unsigned char sha512_additionalinputreseed[] =
{
0xb9,0x12,0xe0,0x4f,0xf7,0xa7,0xc4,0xd8,0xd0,0x8e,0x99,0x29,
0x7c,0x9a,0xe9,0xcf,0xc4,0x6c,0xf8,0xc3,0xa7,0x41,0x83,0xd6,
0x2e,0xfa,0xb8,0x5e,0x8e,0x6b,0x78,0x20
};
static const unsigned char sha512_additionalinput2[] =
{
0xd7,0x07,0x52,0xb9,0x83,0x2c,0x03,0x71,0xee,0xc9,0xc0,0x85,
0xe1,0x57,0xb2,0xcd,0x3a,0xf0,0xc9,0x34,0x24,0x41,0x1c,0x42,
0x99,0xb2,0x84,0xe9,0x17,0xd2,0x76,0x92
};
static const unsigned char sha512_returnedbits[] =
{
0x36,0x17,0x5d,0x98,0x2b,0x65,0x25,0x8e,0xc8,0x29,0xdf,0x27,
0x05,0x36,0x26,0x12,0x8a,0x68,0x74,0x27,0x37,0xd4,0x7f,0x32,
0xb1,0x12,0xd6,0x85,0x83,0xeb,0x2e,0xa0,0xed,0x4b,0xb5,0x7b,
0x6f,0x39,0x3c,0x71,0x77,0x02,0x12,0xcc,0x2c,0x3a,0x8e,0x63,
0xdf,0x4a,0xbd,0x6f,0x6e,0x2e,0xed,0x0a,0x85,0xa5,0x2f,0xa2,
0x68,0xde,0x42,0xb5
};
/* HMAC SHA-1 PR */
static const unsigned char hmac_sha1_pr_entropyinput[] =
{
0x26,0x5f,0x36,0x14,0xff,0x3d,0x83,0xfa,0x73,0x5e,0x75,0xdc,
0x2c,0x18,0x17,0x1b
};
static const unsigned char hmac_sha1_pr_nonce[] =
{
0xc8,0xe3,0x57,0xa5,0x7b,0x74,0x86,0x6e
};
static const unsigned char hmac_sha1_pr_personalizationstring[] =
{
0x6e,0xdb,0x0d,0xfe,0x7d,0xac,0x79,0xd0,0xa5,0x3a,0x48,0x85,
0x80,0xe2,0x7f,0x2a
};
static const unsigned char hmac_sha1_pr_additionalinput[] =
{
0x31,0xcd,0x5e,0x43,0xdc,0xfb,0x7a,0x79,0xca,0x88,0xde,0x1f,
0xd7,0xbb,0x42,0x09
};
static const unsigned char hmac_sha1_pr_entropyinputpr[] =
{
0x7c,0x23,0x95,0x38,0x00,0x95,0xc1,0x78,0x1f,0x8f,0xd7,0x63,
0x23,0x87,0x2a,0xed
};
static const unsigned char hmac_sha1_pr_int_returnedbits[] =
{
0xbb,0x34,0xe7,0x93,0xa3,0x02,0x2c,0x4a,0xd0,0x89,0xda,0x7f,
0xed,0xf4,0x4c,0xde,0x17,0xec,0xe5,0x6c
};
static const unsigned char hmac_sha1_pr_additionalinput2[] =
{
0x49,0xbc,0x2d,0x2c,0xb7,0x32,0xcb,0x20,0xdf,0xf5,0x77,0x58,
0xa0,0x4b,0x93,0x6e
};
static const unsigned char hmac_sha1_pr_entropyinputpr2[] =
{
0x3c,0xaa,0xb0,0x21,0x42,0xb0,0xdd,0x34,0xf0,0x16,0x7f,0x0c,
0x0f,0xff,0x2e,0xaf
};
static const unsigned char hmac_sha1_pr_returnedbits[] =
{
0x8e,0xcb,0xa3,0x64,0xb2,0xb8,0x33,0x6c,0x64,0x3b,0x78,0x16,
0x99,0x35,0xc8,0x30,0xcb,0x3e,0xa0,0xd8
};
/* HMAC SHA-1 No PR */
static const unsigned char hmac_sha1_entropyinput[] =
{
0x32,0x9a,0x2a,0x87,0x7b,0x89,0x7c,0xf6,0xcb,0x95,0xd5,0x40,
0x17,0xfe,0x47,0x70
};
static const unsigned char hmac_sha1_nonce[] =
{
0x16,0xd8,0xe0,0xc7,0x52,0xcf,0x4a,0x25
};
static const unsigned char hmac_sha1_personalizationstring[] =
{
0x35,0x35,0xa9,0xa5,0x40,0xbe,0x9b,0xd1,0x56,0xdd,0x44,0x00,
0x72,0xf7,0xd3,0x5e
};
static const unsigned char hmac_sha1_additionalinput[] =
{
0x1b,0x2c,0x84,0x2d,0x4a,0x89,0x8f,0x69,0x19,0xf1,0xf3,0xdb,
0xbb,0xe3,0xaa,0xea
};
static const unsigned char hmac_sha1_int_returnedbits[] =
{
0xcf,0xfa,0x7d,0x72,0x0f,0xe6,0xc7,0x96,0xa0,0x69,0x31,0x11,
0x9b,0x0b,0x1a,0x20,0x1f,0x3f,0xaa,0xd1
};
static const unsigned char hmac_sha1_entropyinputreseed[] =
{
0x90,0x75,0x15,0x04,0x95,0xf1,0xba,0x81,0x0c,0x37,0x94,0x6f,
0x86,0x52,0x6d,0x9c
};
static const unsigned char hmac_sha1_additionalinputreseed[] =
{
0x5b,0x40,0xba,0x5f,0x17,0x70,0xf0,0x4b,0xdf,0xc9,0x97,0x92,
0x79,0xc5,0x82,0x28
};
static const unsigned char hmac_sha1_additionalinput2[] =
{
0x97,0xc8,0x80,0x90,0xb3,0xaa,0x6e,0x60,0xea,0x83,0x7a,0xe3,
0x8a,0xca,0xa4,0x7f
};
static const unsigned char hmac_sha1_returnedbits[] =
{
0x90,0xbd,0x05,0x56,0x6d,0xb5,0x22,0xd5,0xb9,0x5a,0x29,0x2d,
0xe9,0x0b,0xe1,0xac,0xde,0x27,0x0b,0xb0
};
/* HMAC SHA-224 PR */
static const unsigned char hmac_sha224_pr_entropyinput[] =
{
0x17,0x32,0x2b,0x2e,0x6f,0x1b,0x9c,0x6d,0x31,0xe0,0x34,0x07,
0xcf,0xed,0xf6,0xb6,0x5a,0x76,0x4c,0xbc,0x62,0x85,0x01,0x90
};
static const unsigned char hmac_sha224_pr_nonce[] =
{
0x38,0xbf,0x5f,0x20,0xb3,0x68,0x2f,0x43,0x61,0x05,0x8f,0x23
};
static const unsigned char hmac_sha224_pr_personalizationstring[] =
{
0xc0,0xc9,0x45,0xac,0x8d,0x27,0x77,0x08,0x0b,0x17,0x6d,0xed,
0xc1,0x7d,0xd5,0x07,0x9d,0x6e,0xf8,0x23,0x2a,0x22,0x13,0xbd
};
static const unsigned char hmac_sha224_pr_additionalinput[] =
{
0xa4,0x3c,0xe7,0x3b,0xea,0x19,0x45,0x32,0xc2,0x83,0x6d,0x21,
0x8a,0xc0,0xee,0x67,0x45,0xde,0x13,0x7d,0x9d,0x61,0x00,0x3b
};
static const unsigned char hmac_sha224_pr_entropyinputpr[] =
{
0x15,0x05,0x74,0x4a,0x7f,0x8d,0x5c,0x60,0x16,0xe5,0x7b,0xad,
0xf5,0x41,0x8f,0x55,0x60,0xc4,0x09,0xee,0x1e,0x11,0x81,0xab
};
static const unsigned char hmac_sha224_pr_int_returnedbits[] =
{
0x6f,0xf5,0x9a,0xe2,0x54,0x53,0x30,0x3d,0x5a,0x27,0x29,0x38,
0x27,0xf2,0x0d,0x05,0xe9,0x26,0xcb,0x16,0xc3,0x51,0x5f,0x13,
0x41,0xfe,0x99,0xf2
};
static const unsigned char hmac_sha224_pr_additionalinput2[] =
{
0x73,0x81,0x88,0x84,0x8f,0xed,0x6f,0x10,0x9f,0x93,0xbf,0x17,
0x35,0x7c,0xef,0xd5,0x8d,0x26,0xa6,0x7a,0xe8,0x09,0x36,0x4f
};
static const unsigned char hmac_sha224_pr_entropyinputpr2[] =
{
0xe6,0xcf,0xcf,0x7e,0x12,0xe5,0x43,0xd2,0x38,0xd8,0x24,0x6f,
0x5a,0x37,0x68,0xbf,0x4f,0xa0,0xff,0xd5,0x61,0x8a,0x93,0xe0
};
static const unsigned char hmac_sha224_pr_returnedbits[] =
{
0xaf,0xf9,0xd8,0x19,0x91,0x30,0x82,0x6f,0xa9,0x1e,0x9d,0xd7,
0xf3,0x50,0xe0,0xc7,0xd5,0x64,0x96,0x7d,0x4c,0x4d,0x78,0x03,
0x6d,0xd8,0x9e,0x72
};
/* HMAC SHA-224 No PR */
static const unsigned char hmac_sha224_entropyinput[] =
{
0x11,0x82,0xfd,0xd9,0x42,0xf4,0xfa,0xc8,0xf2,0x41,0xe6,0x54,
0x01,0xae,0x22,0x6e,0xc6,0xaf,0xaf,0xd0,0xa6,0xb2,0xe2,0x6d
};
static const unsigned char hmac_sha224_nonce[] =
{
0xa9,0x48,0xd7,0x92,0x39,0x7e,0x2a,0xdc,0x30,0x1f,0x0e,0x2b
};
static const unsigned char hmac_sha224_personalizationstring[] =
{
0x11,0xd5,0xf4,0xbd,0x67,0x8c,0x31,0xcf,0xa3,0x3f,0x1e,0x6b,
0xa8,0x07,0x02,0x0b,0xc8,0x2e,0x6c,0x64,0x41,0x5b,0xc8,0x37
};
static const unsigned char hmac_sha224_additionalinput[] =
{
0x68,0x18,0xc2,0x06,0xeb,0x3e,0x04,0x95,0x44,0x5e,0xfb,0xe6,
0x41,0xc1,0x5c,0xcc,0x40,0x2f,0xb7,0xd2,0x0f,0xf3,0x6b,0xe7
};
static const unsigned char hmac_sha224_int_returnedbits[] =
{
0x7f,0x45,0xc7,0x5d,0x32,0xe6,0x17,0x60,0xba,0xdc,0xb8,0x42,
0x1b,0x9c,0xf1,0xfa,0x3b,0x4d,0x29,0x54,0xc6,0x90,0xff,0x5c,
0xcd,0xd6,0xa9,0xcc
};
static const unsigned char hmac_sha224_entropyinputreseed[] =
{
0xc4,0x8e,0x37,0x95,0x69,0x53,0x28,0xd7,0x37,0xbb,0x70,0x95,
0x1c,0x07,0x1d,0xd9,0xb7,0xe6,0x1b,0xbb,0xfe,0x41,0xeb,0xc9
};
static const unsigned char hmac_sha224_additionalinputreseed[] =
{
0x53,0x17,0xa1,0x6a,0xfa,0x77,0x47,0xb0,0x95,0x56,0x9a,0x20,
0x57,0xde,0x5c,0x89,0x9f,0x7f,0xe2,0xde,0x17,0x3a,0x50,0x23
};
static const unsigned char hmac_sha224_additionalinput2[] =
{
0x3a,0x32,0xf9,0x85,0x0c,0xc1,0xed,0x76,0x2d,0xdf,0x40,0xc3,
0x06,0x22,0x66,0xd4,0x9a,0x9a,0xff,0x5a,0x7e,0x7a,0xf3,0x96
};
static const unsigned char hmac_sha224_returnedbits[] =
{
0x43,0xb4,0x57,0x5c,0x38,0x25,0x9d,0xae,0xec,0x96,0xd1,0x85,
0x3a,0x84,0x8d,0xfe,0x68,0xd5,0x0e,0x5c,0x8f,0x65,0xa5,0x4e,
0x45,0x84,0xa8,0x94
};
/* HMAC SHA-256 PR */
static const unsigned char hmac_sha256_pr_entropyinput[] =
{
0x4d,0xb0,0x43,0xd8,0x34,0x4b,0x10,0x70,0xb1,0x8b,0xed,0xea,
0x07,0x92,0x9f,0x6c,0x79,0x31,0xaf,0x81,0x29,0xeb,0x6e,0xca,
0x32,0x48,0x28,0xe7,0x02,0x5d,0xa6,0xa6
};
static const unsigned char hmac_sha256_pr_nonce[] =
{
0x3a,0xae,0x15,0xa9,0x99,0xdc,0xe4,0x67,0x34,0x3b,0x70,0x15,
0xaa,0xd3,0x30,0x9a
};
static const unsigned char hmac_sha256_pr_personalizationstring[] =
{
0x13,0x1d,0x24,0x04,0xb0,0x18,0x81,0x15,0x21,0x51,0x2a,0x24,
0x52,0x61,0xbe,0x64,0x82,0x6b,0x55,0x2f,0xe2,0xf1,0x40,0x7d,
0x71,0xd8,0x01,0x86,0x15,0xb7,0x8b,0xb5
};
static const unsigned char hmac_sha256_pr_additionalinput[] =
{
0x8f,0xa6,0x54,0x5f,0xb1,0xd0,0xd8,0xc3,0xe7,0x0c,0x15,0xa9,
0x23,0x6e,0xfe,0xfb,0x93,0xf7,0x3a,0xbd,0x59,0x01,0xfa,0x18,
0x8e,0xe9,0x1a,0xa9,0x78,0xfc,0x79,0x0b
};
static const unsigned char hmac_sha256_pr_entropyinputpr[] =
{
0xcf,0x24,0xb9,0xeb,0xb3,0xd4,0xcd,0x17,0x37,0x38,0x75,0x79,
0x15,0xcb,0x2d,0x75,0x51,0xf1,0xcc,0xaa,0x32,0xa4,0xa7,0x36,
0x7c,0x5c,0xe4,0x47,0xf1,0x3e,0x1d,0xe5
};
static const unsigned char hmac_sha256_pr_int_returnedbits[] =
{
0x52,0x42,0xfa,0xeb,0x85,0xe0,0x30,0x22,0x79,0x00,0x16,0xb2,
0x88,0x2f,0x14,0x6a,0xb7,0xfc,0xb7,0x53,0xdc,0x4a,0x12,0xef,
0x54,0xd6,0x33,0xe9,0x20,0xd6,0xfd,0x56
};
static const unsigned char hmac_sha256_pr_additionalinput2[] =
{
0xf4,0xf6,0x49,0xa1,0x2d,0x64,0x2b,0x30,0x58,0xf8,0xbd,0xb8,
0x75,0xeb,0xbb,0x5e,0x1c,0x9b,0x81,0x6a,0xda,0x14,0x86,0x6e,
0xd0,0xda,0x18,0xb7,0x88,0xfb,0x59,0xf3
};
static const unsigned char hmac_sha256_pr_entropyinputpr2[] =
{
0x21,0xcd,0x6e,0x46,0xad,0x99,0x07,0x17,0xb4,0x3d,0x76,0x0a,
0xff,0x5b,0x52,0x50,0x78,0xdf,0x1f,0x24,0x06,0x0d,0x3f,0x74,
0xa9,0xc9,0x37,0xcf,0xd8,0x26,0x25,0x91
};
static const unsigned char hmac_sha256_pr_returnedbits[] =
{
0xa7,0xaf,0x2f,0x29,0xe0,0x3a,0x72,0x95,0x96,0x1c,0xa9,0xf0,
0x4a,0x17,0x4d,0x66,0x06,0x10,0xbf,0x39,0x89,0x88,0xb8,0x91,
0x37,0x18,0x99,0xcf,0x8c,0x53,0x3b,0x7e
};
/* HMAC SHA-256 No PR */
static const unsigned char hmac_sha256_entropyinput[] =
{
0x96,0xb7,0x53,0x22,0x1e,0x52,0x2a,0x96,0xb1,0x15,0x3c,0x35,
0x5a,0x8b,0xd3,0x4a,0xa6,0x6c,0x83,0x0a,0x7d,0xa3,0x23,0x3d,
0x43,0xa1,0x07,0x2c,0x2d,0xe3,0x81,0xcc
};
static const unsigned char hmac_sha256_nonce[] =
{
0xf1,0xac,0x97,0xcb,0x5e,0x06,0x48,0xd2,0x94,0xbe,0x15,0x2e,
0xc7,0xfc,0xc2,0x01
};
static const unsigned char hmac_sha256_personalizationstring[] =
{
0x98,0xc5,0x1e,0x35,0x5e,0x89,0x0d,0xce,0x64,0x6d,0x18,0xa7,
0x5a,0xc6,0xf3,0xe7,0xd6,0x9e,0xc0,0xea,0xb7,0x3a,0x8d,0x65,
0xb8,0xeb,0x10,0xd7,0x57,0x18,0xa0,0x32
};
static const unsigned char hmac_sha256_additionalinput[] =
{
0x1b,0x10,0xaf,0xac,0xd0,0x65,0x95,0xad,0x04,0xad,0x03,0x1c,
0xe0,0x40,0xd6,0x3e,0x1c,0x46,0x53,0x39,0x7c,0xe2,0xbc,0xda,
0x8c,0xa2,0x33,0xa7,0x9a,0x26,0xd3,0x27
};
static const unsigned char hmac_sha256_int_returnedbits[] =
{
0xba,0x61,0x0e,0x55,0xfe,0x11,0x8a,0x9e,0x0f,0x80,0xdf,0x1d,
0x03,0x0a,0xfe,0x15,0x94,0x28,0x4b,0xba,0xf4,0x9f,0x51,0x25,
0x88,0xe5,0x4e,0xfb,0xaf,0xce,0x69,0x90
};
static const unsigned char hmac_sha256_entropyinputreseed[] =
{
0x62,0x7f,0x1e,0x6b,0xe8,0x8e,0xe1,0x35,0x7d,0x9b,0x4f,0xc7,
0xec,0xc8,0xac,0xef,0x6b,0x13,0x9e,0x05,0x56,0xc1,0x08,0xf9,
0x2f,0x0f,0x27,0x9c,0xd4,0x15,0xed,0x2d
};
static const unsigned char hmac_sha256_additionalinputreseed[] =
{
0xc7,0x76,0x6e,0xa9,0xd2,0xb2,0x76,0x40,0x82,0x25,0x2c,0xb3,
0x6f,0xac,0xe9,0x74,0xef,0x8f,0x3c,0x8e,0xcd,0xf1,0xbf,0xb3,
0x49,0x77,0x34,0x88,0x52,0x36,0xe6,0x2e
};
static const unsigned char hmac_sha256_additionalinput2[] =
{
0x8d,0xb8,0x0c,0xd1,0xbf,0x70,0xf6,0x19,0xc3,0x41,0x80,0x9f,
0xe1,0xa5,0xa4,0x1f,0x2c,0x26,0xb1,0xe5,0xd8,0xeb,0xbe,0xf8,
0xdf,0x88,0x6a,0x89,0xd6,0x05,0xd8,0x9d
};
static const unsigned char hmac_sha256_returnedbits[] =
{
0x43,0x12,0x2a,0x2c,0x40,0x53,0x2e,0x7c,0x66,0x34,0xac,0xc3,
0x43,0xe3,0xe0,0x6a,0xfc,0xfa,0xea,0x87,0x21,0x1f,0xe2,0x26,
0xc4,0xf9,0x09,0x9a,0x0d,0x6e,0x7f,0xe0
};
/* HMAC SHA-384 PR */
static const unsigned char hmac_sha384_pr_entropyinput[] =
{
0x69,0x81,0x98,0x88,0x44,0xf5,0xd6,0x2e,0x00,0x08,0x3b,0xc5,
0xfb,0xd7,0x8e,0x6f,0x23,0xf8,0x6d,0x09,0xd6,0x85,0x49,0xd1,
0xf8,0x6d,0xa4,0x58,0x54,0xfd,0x88,0xa9
};
static const unsigned char hmac_sha384_pr_nonce[] =
{
0x6e,0x38,0x81,0xca,0xb7,0xe8,0x6e,0x66,0x49,0x8a,0xb2,0x59,
0xee,0x16,0xc9,0xde
};
static const unsigned char hmac_sha384_pr_personalizationstring[] =
{
0xfe,0x4c,0xd9,0xf4,0x78,0x3b,0x08,0x41,0x8d,0x8f,0x55,0xc4,
0x43,0x56,0xb6,0x12,0x36,0x6b,0x30,0xb7,0x5e,0xe1,0xb9,0x47,
0x04,0xb1,0x4e,0xa9,0x00,0xa1,0x52,0xa1
};
static const unsigned char hmac_sha384_pr_additionalinput[] =
{
0x89,0xe9,0xcc,0x8f,0x27,0x3c,0x26,0xd1,0x95,0xc8,0x7d,0x0f,
0x5b,0x1a,0xf0,0x78,0x39,0x56,0x6f,0xa4,0x23,0xe7,0xd1,0xda,
0x7c,0x66,0x33,0xa0,0x90,0xc9,0x92,0x88
};
static const unsigned char hmac_sha384_pr_entropyinputpr[] =
{
0xbe,0x3d,0x7c,0x0d,0xca,0xda,0x7c,0x49,0xb8,0x12,0x36,0xc0,
0xdb,0xad,0x35,0xa8,0xc7,0x0b,0x2a,0x2c,0x69,0x6d,0x25,0x56,
0x63,0x82,0x11,0x3e,0xa7,0x33,0x70,0x72
};
static const unsigned char hmac_sha384_pr_int_returnedbits[] =
{
0x82,0x3d,0xe6,0x54,0x80,0x42,0xf8,0xba,0x90,0x4f,0x06,0xa6,
0xd2,0x7f,0xbf,0x79,0x7c,0x12,0x7d,0xa6,0xa2,0x66,0xe8,0xa6,
0xc0,0xd6,0x4a,0x55,0xbf,0xd8,0x0a,0xc5,0xf8,0x03,0x88,0xdd,
0x8e,0x87,0xd1,0x5a,0x48,0x26,0x72,0x2a,0x8e,0xcf,0xee,0xba
};
static const unsigned char hmac_sha384_pr_additionalinput2[] =
{
0x8f,0xff,0xd9,0x84,0xbb,0x85,0x3a,0x66,0xa1,0x21,0xce,0xb2,
0x3a,0x3a,0x17,0x22,0x19,0xae,0xc7,0xb6,0x63,0x81,0xd5,0xff,
0x0d,0xc8,0xe1,0xaf,0x57,0xd2,0xcb,0x60
};
static const unsigned char hmac_sha384_pr_entropyinputpr2[] =
{
0xd7,0xfb,0xc9,0xe8,0xe2,0xf2,0xaa,0x4c,0xb8,0x51,0x2f,0xe1,
0x22,0xba,0xf3,0xda,0x0a,0x19,0x76,0x71,0x57,0xb2,0x1d,0x94,
0x09,0x69,0x6c,0xd3,0x97,0x51,0x81,0x87
};
static const unsigned char hmac_sha384_pr_returnedbits[] =
{
0xe6,0x19,0x28,0xa8,0x21,0xce,0x5e,0xdb,0x24,0x79,0x8c,0x76,
0x5d,0x73,0xb2,0xdf,0xac,0xef,0x85,0xa7,0x3b,0x19,0x09,0x8b,
0x7f,0x98,0x28,0xa9,0x93,0xd8,0x7a,0xad,0x55,0x8b,0x24,0x9d,
0xe6,0x98,0xfe,0x47,0xd5,0x48,0xc1,0x23,0xd8,0x1d,0x62,0x75
};
/* HMAC SHA-384 No PR */
static const unsigned char hmac_sha384_entropyinput[] =
{
0xc3,0x56,0x2b,0x1d,0xc2,0xbb,0xa8,0xf0,0xae,0x1b,0x0d,0xd3,
0x5a,0x6c,0xda,0x57,0x8e,0xa5,0x8a,0x0d,0x6c,0x4b,0x18,0xb1,
0x04,0x3e,0xb4,0x99,0x35,0xc4,0xc0,0x5f
};
static const unsigned char hmac_sha384_nonce[] =
{
0xc5,0x49,0x1e,0x66,0x27,0x92,0xbe,0xec,0xb5,0x1e,0x4b,0xb1,
0x38,0xe3,0xeb,0x62
};
static const unsigned char hmac_sha384_personalizationstring[] =
{
0xbe,0xe7,0x6b,0x57,0xde,0x88,0x11,0x96,0x9b,0x6e,0xea,0xe5,
0x63,0x83,0x4c,0xb6,0x8d,0x66,0xaa,0x1f,0x8b,0x54,0xe7,0x62,
0x6d,0x5a,0xfc,0xbf,0x97,0xba,0xcd,0x77
};
static const unsigned char hmac_sha384_additionalinput[] =
{
0xe5,0x28,0x5f,0x43,0xf5,0x83,0x6e,0x0a,0x83,0x5c,0xe3,0x81,
0x03,0xf2,0xf8,0x78,0x00,0x7c,0x95,0x87,0x16,0xd6,0x6c,0x58,
0x33,0x6c,0x53,0x35,0x0d,0x66,0xe3,0xce
};
static const unsigned char hmac_sha384_int_returnedbits[] =
{
0xe2,0x1f,0xf3,0xda,0x0d,0x19,0x99,0x87,0xc4,0x90,0xa2,0x31,
0xca,0x2a,0x89,0x58,0x43,0x44,0xb8,0xde,0xcf,0xa4,0xbe,0x3b,
0x53,0x26,0x22,0x31,0x76,0x41,0x22,0xb5,0xa8,0x70,0x2f,0x4b,
0x64,0x95,0x4d,0x48,0x96,0x35,0xe6,0xbd,0x3c,0x34,0xdb,0x1b
};
static const unsigned char hmac_sha384_entropyinputreseed[] =
{
0x77,0x61,0xba,0xbc,0xf2,0xc1,0xf3,0x4b,0x86,0x65,0xfd,0x48,
0x0e,0x3c,0x02,0x5e,0xa2,0x7a,0x6b,0x7c,0xed,0x21,0x5e,0xf9,
0xcd,0xcd,0x77,0x07,0x2b,0xbe,0xc5,0x5c
};
static const unsigned char hmac_sha384_additionalinputreseed[] =
{
0x18,0x24,0x5f,0xc6,0x84,0xd1,0x67,0xc3,0x9a,0x11,0xa5,0x8c,
0x07,0x39,0x21,0x83,0x4d,0x04,0xc4,0x6a,0x28,0x19,0xcf,0x92,
0x21,0xd9,0x9e,0x41,0x72,0x6c,0x9e,0x63
};
static const unsigned char hmac_sha384_additionalinput2[] =
{
0x96,0x67,0x41,0x28,0x9b,0xb7,0x92,0x8d,0x64,0x3b,0xe4,0xcf,
0x7e,0xaa,0x1e,0xb1,0x4b,0x1d,0x09,0x56,0x67,0x9c,0xc6,0x6d,
0x3b,0xe8,0x91,0x9d,0xe1,0x8a,0xb7,0x32
};
static const unsigned char hmac_sha384_returnedbits[] =
{
0xe3,0x59,0x61,0x38,0x92,0xec,0xe2,0x3c,0xff,0xb7,0xdb,0x19,
0x0f,0x5b,0x93,0x68,0x0d,0xa4,0x94,0x40,0x72,0x0b,0xe0,0xed,
0x4d,0xcd,0x68,0xa0,0x1e,0xfe,0x67,0xb2,0xfa,0x21,0x56,0x74,
0xa4,0xad,0xcf,0xb7,0x60,0x66,0x2e,0x40,0xde,0x82,0xca,0xfb
};
/* HMAC SHA-512 PR */
static const unsigned char hmac_sha512_pr_entropyinput[] =
{
0xaa,0x9e,0x45,0x67,0x0e,0x00,0x2a,0x67,0x98,0xd6,0xda,0x0b,
0x0f,0x17,0x7e,0xac,0xfd,0x27,0xc4,0xca,0x84,0xdf,0xde,0xba,
0x85,0xd9,0xbe,0x8f,0xf3,0xff,0x91,0x4d
};
static const unsigned char hmac_sha512_pr_nonce[] =
{
0x8c,0x49,0x2f,0x58,0x1e,0x7a,0xda,0x4b,0x7e,0x8a,0x30,0x7b,
0x86,0xea,0xaf,0xa2
};
static const unsigned char hmac_sha512_pr_personalizationstring[] =
{
0x71,0xe1,0xbb,0xad,0xa7,0x4b,0x2e,0x31,0x3b,0x0b,0xec,0x24,
0x99,0x38,0xbc,0xaa,0x05,0x4c,0x46,0x44,0xfa,0xad,0x8e,0x02,
0xc1,0x7e,0xad,0xec,0x54,0xa6,0xd0,0xad
};
static const unsigned char hmac_sha512_pr_additionalinput[] =
{
0x3d,0x6e,0xa6,0xa8,0x29,0x2a,0xb2,0xf5,0x98,0x42,0xe4,0x92,
0x78,0x22,0x67,0xfd,0x1b,0x15,0x1e,0x29,0xaa,0x71,0x3c,0x3c,
0xe7,0x05,0x20,0xa9,0x29,0xc6,0x75,0x71
};
static const unsigned char hmac_sha512_pr_entropyinputpr[] =
{
0xab,0xb9,0x16,0xd8,0x55,0x35,0x54,0xb7,0x97,0x3f,0x94,0xbc,
0x2f,0x7c,0x70,0xc7,0xd0,0xed,0xb7,0x4b,0xf7,0xf6,0x6c,0x03,
0x0c,0xb0,0x03,0xd8,0xbb,0x71,0xd9,0x10
};
static const unsigned char hmac_sha512_pr_int_returnedbits[] =
{
0x8e,0xd3,0xfd,0x52,0x9e,0x83,0x08,0x49,0x18,0x6e,0x23,0x56,
0x5c,0x45,0x93,0x34,0x05,0xe2,0x98,0x8f,0x0c,0xd4,0x32,0x0c,
0xfd,0xda,0x5f,0x92,0x3a,0x8c,0x81,0xbd,0xf6,0x6c,0x55,0xfd,
0xb8,0x20,0xce,0x8d,0x97,0x27,0xe8,0xe8,0xe0,0xb3,0x85,0x50,
0xa2,0xc2,0xb2,0x95,0x1d,0x48,0xd3,0x7b,0x4b,0x78,0x13,0x35,
0x05,0x17,0xbe,0x0d
};
static const unsigned char hmac_sha512_pr_additionalinput2[] =
{
0xc3,0xfc,0x95,0xaa,0x69,0x06,0xae,0x59,0x41,0xce,0x26,0x08,
0x29,0x6d,0x45,0xda,0xe8,0xb3,0x6c,0x95,0x60,0x0f,0x70,0x2c,
0x10,0xba,0x38,0x8c,0xcf,0x29,0x99,0xaa
};
static const unsigned char hmac_sha512_pr_entropyinputpr2[] =
{
0x3b,0x9a,0x25,0xce,0xd7,0xf9,0x5c,0xd1,0x3a,0x3e,0xaa,0x71,
0x14,0x3e,0x19,0xe8,0xce,0xe6,0xfe,0x51,0x84,0xe9,0x1b,0xfe,
0x3f,0xa7,0xf2,0xfd,0x76,0x5f,0x6a,0xe7
};
static const unsigned char hmac_sha512_pr_returnedbits[] =
{
0xb7,0x82,0xa9,0x57,0x81,0x67,0x53,0xb5,0xa1,0xe9,0x3d,0x35,
0xf9,0xe4,0x97,0xbe,0xa6,0xca,0xf1,0x01,0x13,0x09,0xe7,0x21,
0xc0,0xed,0x93,0x5d,0x4b,0xf4,0xeb,0x8d,0x53,0x25,0x8a,0xc4,
0xb1,0x6f,0x6e,0x37,0xcd,0x2e,0xac,0x39,0xb2,0xb6,0x99,0xa3,
0x82,0x00,0xb0,0x21,0xf0,0xc7,0x2f,0x4c,0x73,0x92,0xfd,0x00,
0xb6,0xaf,0xbc,0xd3
};
/* HMAC SHA-512 No PR */
static const unsigned char hmac_sha512_entropyinput[] =
{
0x6e,0x85,0xe6,0x25,0x96,0x29,0xa7,0x52,0x5b,0x60,0xba,0xaa,
0xde,0xdb,0x36,0x0a,0x51,0x9a,0x15,0xae,0x6e,0x18,0xd3,0xfe,
0x39,0xb9,0x4a,0x96,0xf8,0x77,0xcb,0x95
};
static const unsigned char hmac_sha512_nonce[] =
{
0xe0,0xa6,0x5d,0x08,0xc3,0x7c,0xae,0x25,0x2e,0x80,0xd1,0x3e,
0xd9,0xaf,0x43,0x3c
};
static const unsigned char hmac_sha512_personalizationstring[] =
{
0x53,0x99,0x52,0x5f,0x11,0xa9,0x64,0x66,0x20,0x5e,0x1b,0x5f,
0x42,0xb3,0xf4,0xda,0xed,0xbb,0x63,0xc1,0x23,0xaf,0xd0,0x01,
0x90,0x3b,0xd0,0x78,0xe4,0x0b,0xa7,0x20
};
static const unsigned char hmac_sha512_additionalinput[] =
{
0x85,0x90,0x80,0xd3,0x98,0xf1,0x53,0x6d,0x68,0x15,0x8f,0xe5,
0x60,0x3f,0x17,0x29,0x55,0x8d,0x33,0xb1,0x45,0x64,0x64,0x8d,
0x50,0x21,0x89,0xae,0xf6,0xfd,0x32,0x73
};
static const unsigned char hmac_sha512_int_returnedbits[] =
{
0x28,0x56,0x30,0x6f,0xf4,0xa1,0x48,0xe0,0xc9,0xf5,0x75,0x90,
0xcc,0xfb,0xdf,0xdf,0x71,0x3d,0x0a,0x9a,0x03,0x65,0x3b,0x18,
0x61,0xe3,0xd1,0xda,0xcc,0x4a,0xfe,0x55,0x38,0xf8,0x21,0x6b,
0xfa,0x18,0x01,0x42,0x39,0x2f,0x99,0x53,0x38,0x15,0x82,0x34,
0xc5,0x93,0x92,0xbc,0x4d,0x75,0x1a,0x5f,0x21,0x27,0xcc,0xa1,
0xb1,0x57,0x69,0xe8
};
static const unsigned char hmac_sha512_entropyinputreseed[] =
{
0x8c,0x52,0x7e,0x77,0x72,0x3f,0xa3,0x04,0x97,0x10,0x9b,0x41,
0xbd,0xe8,0xff,0x89,0xed,0x80,0xe3,0xbd,0xaa,0x12,0x2d,0xca,
0x75,0x82,0x36,0x77,0x88,0xcd,0xa6,0x73
};
static const unsigned char hmac_sha512_additionalinputreseed[] =
{
0x7e,0x32,0xe3,0x69,0x69,0x07,0x34,0xa2,0x16,0xa2,0x5d,0x1a,
0x10,0x91,0xd3,0xe2,0x21,0xa2,0xa3,0xdd,0xcd,0x0c,0x09,0x86,
0x11,0xe1,0x50,0xff,0x5c,0xb7,0xeb,0x5c
};
static const unsigned char hmac_sha512_additionalinput2[] =
{
0x7f,0x78,0x66,0xd8,0xfb,0x67,0xcf,0x8d,0x8c,0x08,0x30,0xa5,
0xf8,0x7d,0xcf,0x44,0x59,0xce,0xf8,0xdf,0x58,0xd3,0x60,0xcb,
0xa8,0x60,0xb9,0x07,0xc4,0xb1,0x95,0x48
};
static const unsigned char hmac_sha512_returnedbits[] =
{
0xdf,0xa7,0x36,0xd4,0xdc,0x5d,0x4d,0x31,0xad,0x69,0x46,0x9f,
0xf1,0x7c,0xd7,0x3b,0x4f,0x55,0xf2,0xd7,0xb9,0x9d,0xad,0x7a,
0x79,0x08,0x59,0xa5,0xdc,0x74,0xf5,0x9b,0x73,0xd2,0x13,0x25,
0x0b,0x81,0x08,0x08,0x25,0xfb,0x39,0xf2,0xf0,0xa3,0xa4,0x8d,
0xef,0x05,0x9e,0xb8,0xc7,0x52,0xe4,0x0e,0x42,0xaa,0x7c,0x79,
0xc2,0xd6,0xfd,0xa5
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册