diff options
Diffstat (limited to 'test/drbg_cavs_data_hash.c')
-rw-r--r-- | test/drbg_cavs_data_hash.c | 8387 |
1 files changed, 8387 insertions, 0 deletions
diff --git a/test/drbg_cavs_data_hash.c b/test/drbg_cavs_data_hash.c new file mode 100644 index 0000000000..24d5c874eb --- /dev/null +++ b/test/drbg_cavs_data_hash.c @@ -0,0 +1,8387 @@ +/* + * Copyright 2018 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +/* + * Small subset of DRBG test vectors from: + * https://csrc.nist.gov/projects/cryptographic-algorithm-validation-program/ + * The index in the names given below (e.g- kat1680)- refers to the CAVS index. + */ + +#include <openssl/obj_mac.h> +#include "internal/nelem.h" +#include "drbg_cavs_data.h" + + +static const unsigned char kat1_nor_entropyin[] = { + 0x13, 0x6c, 0xf1, 0xc1, 0x74, 0xe5, 0xa0, 0x9f, 0x66, 0xb9, 0x62, 0xd9, + 0x94, 0x39, 0x65, 0x25, +}; +static const unsigned char kat1_nor_nonce[] = { + 0xff, 0xf1, 0xc6, 0x64, 0x5f, 0x19, 0x23, 0x1f, +}; +static const unsigned char kat1_nor_persstr[] = {0}; +static const unsigned char kat1_nor_addin0[] = {0}; +static const unsigned char kat1_nor_addin1[] = {0}; +static const unsigned char kat1_nor_retbytes[] = { + 0x0e, 0x28, 0x13, 0x0f, 0xa5, 0xca, 0x11, 0xed, 0xd3, 0x29, 0x3c, 0xa2, + 0x6f, 0xdb, 0x8a, 0xe1, 0x81, 0x06, 0x11, 0xf7, 0x87, 0x15, 0x08, 0x2e, + 0xd3, 0x84, 0x1e, 0x74, 0x86, 0xf1, 0x66, 0x77, 0xb2, 0x8e, 0x33, 0xff, + 0xe0, 0xb9, 0x3d, 0x98, 0xba, 0x57, 0xba, 0x35, 0x8c, 0x13, 0x43, 0xab, + 0x2a, 0x26, 0xb4, 0xeb, 0x79, 0x40, 0xf5, 0xbc, 0x63, 0x93, 0x84, 0x64, + 0x1e, 0xe8, 0x0a, 0x25, 0x14, 0x03, 0x31, 0x07, 0x62, 0x68, 0xbd, 0x1c, + 0xe7, 0x02, 0xad, 0x53, 0x4d, 0xda, 0x0e, 0xd8, +}; +static const struct drbg_kat_no_reseed kat1_nor_t = { + 0, kat1_nor_entropyin, kat1_nor_nonce, kat1_nor_persstr, + kat1_nor_addin0, kat1_nor_addin1, kat1_nor_retbytes +}; +static const struct drbg_kat kat1_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat1_nor_t +}; + +static const unsigned char kat2_nor_entropyin[] = { + 0xdf, 0xed, 0x69, 0xb0, 0x89, 0x02, 0xfc, 0xfb, 0x79, 0x5d, 0x5d, 0x35, + 0xdb, 0xe2, 0x3f, 0x6b, +}; +static const unsigned char kat2_nor_nonce[] = { + 0x37, 0x25, 0x8e, 0x82, 0x04, 0x32, 0xe3, 0x92, +}; +static const unsigned char kat2_nor_persstr[] = {0}; +static const unsigned char kat2_nor_addin0[] = {0}; +static const unsigned char kat2_nor_addin1[] = {0}; +static const unsigned char kat2_nor_retbytes[] = { + 0xad, 0xcb, 0x8e, 0x2c, 0xbb, 0xc5, 0x95, 0x7d, 0x53, 0x8a, 0x20, 0xdb, + 0x18, 0xb5, 0xe7, 0xfe, 0x35, 0x0a, 0x90, 0xa2, 0x01, 0x35, 0x9f, 0xab, + 0x9e, 0x0f, 0x15, 0x4c, 0x53, 0xaa, 0x14, 0x6b, 0xc6, 0xaf, 0x1f, 0xcc, + 0x7f, 0xf8, 0xf3, 0x30, 0xb8, 0xd9, 0xf3, 0xd7, 0xb0, 0x38, 0x48, 0x8b, + 0xa6, 0x27, 0xe6, 0xfa, 0x21, 0xd0, 0x14, 0x73, 0x77, 0xb1, 0x34, 0x04, + 0x22, 0xb2, 0x26, 0x34, 0xb4, 0x12, 0xda, 0xc6, 0x9a, 0xc8, 0x2c, 0x35, + 0xb5, 0xfb, 0x41, 0x1a, 0x4e, 0x42, 0xa1, 0x33, +}; +static const struct drbg_kat_no_reseed kat2_nor_t = { + 1, kat2_nor_entropyin, kat2_nor_nonce, kat2_nor_persstr, + kat2_nor_addin0, kat2_nor_addin1, kat2_nor_retbytes +}; +static const struct drbg_kat kat2_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat2_nor_t +}; + +static const unsigned char kat3_nor_entropyin[] = { + 0xf3, 0x2e, 0x36, 0xff, 0x80, 0x98, 0xf9, 0x32, 0x03, 0x5c, 0xae, 0x42, + 0x9c, 0x0e, 0xce, 0x72, +}; +static const unsigned char kat3_nor_nonce[] = { + 0x55, 0x52, 0xce, 0xb1, 0x82, 0x32, 0x4b, 0x49, +}; +static const unsigned char kat3_nor_persstr[] = {0}; +static const unsigned char kat3_nor_addin0[] = {0}; +static const unsigned char kat3_nor_addin1[] = {0}; +static const unsigned char kat3_nor_retbytes[] = { + 0xba, 0xc9, 0x4b, 0xc1, 0x79, 0x7b, 0x20, 0x9b, 0x8e, 0x57, 0x67, 0x09, + 0xd6, 0x8d, 0x92, 0xa9, 0x4a, 0xa8, 0xa5, 0xf4, 0x14, 0xfe, 0xee, 0x3e, + 0x87, 0xd2, 0xf2, 0x1f, 0xcb, 0x59, 0x39, 0x31, 0x4b, 0x1b, 0x47, 0x11, + 0x27, 0x40, 0x77, 0xe7, 0x94, 0xe8, 0xe3, 0x85, 0xa2, 0x8f, 0xab, 0xb5, + 0xb4, 0x90, 0x81, 0xef, 0x14, 0xcb, 0x13, 0x96, 0xcb, 0x12, 0x54, 0x2f, + 0xd1, 0xb4, 0x8c, 0x2a, 0xd4, 0xdf, 0x98, 0xf7, 0x4b, 0xf0, 0x83, 0x46, + 0xf0, 0xa2, 0x9f, 0xf7, 0x08, 0x8d, 0xcb, 0xfe, +}; +static const struct drbg_kat_no_reseed kat3_nor_t = { + 2, kat3_nor_entropyin, kat3_nor_nonce, kat3_nor_persstr, + kat3_nor_addin0, kat3_nor_addin1, kat3_nor_retbytes +}; +static const struct drbg_kat kat3_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat3_nor_t +}; + +static const unsigned char kat4_nor_entropyin[] = { + 0x21, 0x3e, 0x90, 0x22, 0x89, 0x8a, 0xa0, 0x5c, 0x7a, 0x6a, 0x01, 0xa4, + 0xb8, 0xd3, 0x43, 0xcc, +}; +static const unsigned char kat4_nor_nonce[] = { + 0x7b, 0x69, 0x81, 0xd7, 0xe1, 0x6c, 0x98, 0x80, +}; +static const unsigned char kat4_nor_persstr[] = {0}; +static const unsigned char kat4_nor_addin0[] = {0}; +static const unsigned char kat4_nor_addin1[] = {0}; +static const unsigned char kat4_nor_retbytes[] = { + 0xa7, 0x49, 0x06, 0x34, 0x0d, 0x75, 0x14, 0xdb, 0x5b, 0x44, 0x86, 0x01, + 0x70, 0xa5, 0xe0, 0x73, 0x3c, 0x67, 0xd3, 0xce, 0x7e, 0x51, 0xbd, 0x32, + 0xb0, 0x49, 0x80, 0x0d, 0x8e, 0x3c, 0x36, 0xc8, 0x45, 0x56, 0x00, 0x84, + 0xde, 0xcc, 0x79, 0xe6, 0xf7, 0xb4, 0xd6, 0xf2, 0xf1, 0x27, 0x59, 0x2e, + 0x64, 0x58, 0x91, 0x79, 0x2d, 0x0f, 0x56, 0x2b, 0x67, 0xbc, 0x8a, 0x1f, + 0x63, 0xaa, 0x14, 0x9d, 0x84, 0x9d, 0xe1, 0xfe, 0x03, 0x28, 0x25, 0xf3, + 0xa5, 0xd4, 0x6f, 0xe3, 0x70, 0x50, 0x24, 0xeb, +}; +static const struct drbg_kat_no_reseed kat4_nor_t = { + 3, kat4_nor_entropyin, kat4_nor_nonce, kat4_nor_persstr, + kat4_nor_addin0, kat4_nor_addin1, kat4_nor_retbytes +}; +static const struct drbg_kat kat4_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat4_nor_t +}; + +static const unsigned char kat5_nor_entropyin[] = { + 0x09, 0x1b, 0xa7, 0x85, 0xfa, 0xc4, 0x66, 0xb4, 0x85, 0x1e, 0xa2, 0xdc, + 0xa8, 0xb3, 0x8b, 0xcd, +}; +static const unsigned char kat5_nor_nonce[] = { + 0x90, 0x12, 0xcb, 0xb0, 0xf9, 0xb5, 0x9c, 0xac, +}; +static const unsigned char kat5_nor_persstr[] = {0}; +static const unsigned char kat5_nor_addin0[] = {0}; +static const unsigned char kat5_nor_addin1[] = {0}; +static const unsigned char kat5_nor_retbytes[] = { + 0x39, 0x9a, 0xe6, 0x1f, 0xe5, 0x31, 0x44, 0x8c, 0x82, 0x06, 0xd7, 0xac, + 0x12, 0x7b, 0x6a, 0x44, 0x86, 0xad, 0xae, 0xbe, 0xff, 0x35, 0x67, 0xb6, + 0xbc, 0xd0, 0xf5, 0x54, 0xb8, 0x2a, 0x6a, 0xa6, 0x33, 0x7f, 0x73, 0x11, + 0x46, 0x59, 0x46, 0x91, 0x22, 0x83, 0xdc, 0x3f, 0xb0, 0x5c, 0xf8, 0x9a, + 0x74, 0xad, 0x0a, 0x18, 0x51, 0xc5, 0xa2, 0x00, 0x26, 0xca, 0x99, 0x0f, + 0x11, 0x84, 0xa8, 0xa9, 0x97, 0x8a, 0xad, 0x2e, 0x0c, 0x40, 0xb6, 0xc4, + 0xe3, 0x57, 0x1b, 0xfa, 0x0f, 0x14, 0x43, 0x29, +}; +static const struct drbg_kat_no_reseed kat5_nor_t = { + 4, kat5_nor_entropyin, kat5_nor_nonce, kat5_nor_persstr, + kat5_nor_addin0, kat5_nor_addin1, kat5_nor_retbytes +}; +static const struct drbg_kat kat5_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat5_nor_t +}; + +static const unsigned char kat6_nor_entropyin[] = { + 0xff, 0x07, 0x6a, 0x63, 0x0f, 0x39, 0xbd, 0x94, 0xd0, 0x7e, 0x88, 0xd0, + 0x23, 0x2d, 0xd5, 0x6e, +}; +static const unsigned char kat6_nor_nonce[] = { + 0xf5, 0x1a, 0x8c, 0x5d, 0x4c, 0xd4, 0x13, 0x1f, +}; +static const unsigned char kat6_nor_persstr[] = {0}; +static const unsigned char kat6_nor_addin0[] = {0}; +static const unsigned char kat6_nor_addin1[] = {0}; +static const unsigned char kat6_nor_retbytes[] = { + 0x99, 0x1d, 0x77, 0xb5, 0x15, 0xbb, 0x73, 0xde, 0xc2, 0x22, 0x6c, 0x24, + 0x86, 0xe6, 0x34, 0xd6, 0x53, 0x1a, 0xaa, 0x6c, 0xef, 0x9f, 0x64, 0x6f, + 0xba, 0x5f, 0xdd, 0x02, 0x10, 0x83, 0x4c, 0x73, 0x0b, 0x7f, 0x2f, 0xa1, + 0x10, 0xab, 0x06, 0x1c, 0xfb, 0xb0, 0x8a, 0x95, 0xb3, 0x69, 0x4b, 0x62, + 0xe8, 0x1d, 0x0c, 0x6b, 0x82, 0xcf, 0x29, 0x4e, 0xa6, 0x2f, 0xde, 0xc0, + 0x94, 0xc3, 0xed, 0x78, 0x34, 0xfb, 0xf9, 0xb8, 0x76, 0xf1, 0xa6, 0x3a, + 0x58, 0x3e, 0x2e, 0xa4, 0x2a, 0x58, 0xff, 0x74, +}; +static const struct drbg_kat_no_reseed kat6_nor_t = { + 5, kat6_nor_entropyin, kat6_nor_nonce, kat6_nor_persstr, + kat6_nor_addin0, kat6_nor_addin1, kat6_nor_retbytes +}; +static const struct drbg_kat kat6_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat6_nor_t +}; + +static const unsigned char kat7_nor_entropyin[] = { + 0x0f, 0x67, 0x9e, 0x66, 0x2f, 0x08, 0x19, 0x7e, 0x76, 0x45, 0x76, 0x39, + 0x19, 0xba, 0x08, 0xe8, +}; +static const unsigned char kat7_nor_nonce[] = { + 0x18, 0x7e, 0x82, 0xeb, 0x84, 0x4b, 0x32, 0xc2, +}; +static const unsigned char kat7_nor_persstr[] = {0}; +static const unsigned char kat7_nor_addin0[] = {0}; +static const unsigned char kat7_nor_addin1[] = {0}; +static const unsigned char kat7_nor_retbytes[] = { + 0xff, 0x63, 0x9c, 0x15, 0xf8, 0x73, 0xd3, 0x50, 0xf1, 0x77, 0x8f, 0x1e, + 0x9e, 0xa0, 0xa5, 0x61, 0x4e, 0xb2, 0x60, 0xac, 0x45, 0x3f, 0x5c, 0x57, + 0x30, 0xbb, 0x0b, 0xe9, 0x07, 0x2a, 0x01, 0x3f, 0x15, 0x96, 0xae, 0x26, + 0x6c, 0xc0, 0x9f, 0xf1, 0xc8, 0xa7, 0xfe, 0x52, 0x0e, 0xbd, 0x40, 0x69, + 0x24, 0x8d, 0x86, 0xea, 0x36, 0xde, 0x43, 0x58, 0x0c, 0xd0, 0x7c, 0xce, + 0xf1, 0xec, 0x8b, 0x6f, 0xe1, 0x6c, 0x2a, 0x50, 0x04, 0x24, 0xab, 0xe6, + 0x57, 0x65, 0xc4, 0x18, 0x91, 0x97, 0x2d, 0xc9, +}; +static const struct drbg_kat_no_reseed kat7_nor_t = { + 6, kat7_nor_entropyin, kat7_nor_nonce, kat7_nor_persstr, + kat7_nor_addin0, kat7_nor_addin1, kat7_nor_retbytes +}; +static const struct drbg_kat kat7_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat7_nor_t +}; + +static const unsigned char kat8_nor_entropyin[] = { + 0xc4, 0x48, 0x62, 0x40, 0x35, 0xdf, 0x3b, 0x16, 0x8a, 0xf3, 0x97, 0x55, + 0xb9, 0x52, 0xf0, 0xef, +}; +static const unsigned char kat8_nor_nonce[] = { + 0x6c, 0x32, 0xbd, 0x9d, 0xd5, 0x34, 0x7f, 0x3c, +}; +static const unsigned char kat8_nor_persstr[] = {0}; +static const unsigned char kat8_nor_addin0[] = {0}; +static const unsigned char kat8_nor_addin1[] = {0}; +static const unsigned char kat8_nor_retbytes[] = { + 0x3b, 0xb7, 0x25, 0x63, 0x37, 0x45, 0xc3, 0x0a, 0x3c, 0xfe, 0x9f, 0xeb, + 0x05, 0x29, 0x53, 0x2a, 0x65, 0x36, 0x8b, 0x65, 0xd2, 0xe7, 0xfb, 0x99, + 0x0d, 0x6b, 0xa2, 0xf9, 0xbb, 0xbb, 0xb8, 0xcd, 0x66, 0xec, 0x1a, 0xf5, + 0x30, 0x61, 0x4f, 0xe3, 0x9b, 0x7a, 0xd5, 0x5b, 0x2a, 0x62, 0x91, 0x79, + 0x17, 0x41, 0xf7, 0xe7, 0x61, 0x16, 0xda, 0x1e, 0xbf, 0xed, 0x65, 0x8e, + 0xc5, 0x5a, 0x86, 0x29, 0x47, 0x67, 0x16, 0x82, 0xd2, 0x87, 0xc0, 0xf6, + 0xe8, 0xce, 0xab, 0xd5, 0x0c, 0x4c, 0x37, 0x59, +}; +static const struct drbg_kat_no_reseed kat8_nor_t = { + 7, kat8_nor_entropyin, kat8_nor_nonce, kat8_nor_persstr, + kat8_nor_addin0, kat8_nor_addin1, kat8_nor_retbytes +}; +static const struct drbg_kat kat8_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat8_nor_t +}; + +static const unsigned char kat9_nor_entropyin[] = { + 0xef, 0xd2, 0x56, 0x11, 0x48, 0xbf, 0xad, 0x41, 0x59, 0x5b, 0xe9, 0x69, + 0xc3, 0xf0, 0x21, 0xfe, +}; +static const unsigned char kat9_nor_nonce[] = { + 0x7c, 0x72, 0x33, 0xe9, 0xe0, 0x6f, 0xa1, 0x89, +}; +static const unsigned char kat9_nor_persstr[] = {0}; +static const unsigned char kat9_nor_addin0[] = {0}; +static const unsigned char kat9_nor_addin1[] = {0}; +static const unsigned char kat9_nor_retbytes[] = { + 0xd9, 0xb6, 0xb5, 0xb0, 0xaa, 0x26, 0xa0, 0x1d, 0xe1, 0x52, 0xce, 0xd9, + 0x4a, 0x83, 0xbb, 0xb6, 0xaf, 0xfd, 0xb9, 0x15, 0xe4, 0x88, 0xa0, 0x4b, + 0x64, 0x22, 0x11, 0xf8, 0xe3, 0xb8, 0x8d, 0x89, 0xf5, 0x9d, 0x92, 0xf9, + 0xf4, 0xfc, 0xd8, 0x99, 0x89, 0x07, 0xbf, 0x14, 0x8b, 0xc5, 0x8f, 0x30, + 0x11, 0x5c, 0x8f, 0xff, 0x85, 0xc5, 0x57, 0x13, 0x54, 0x5f, 0xe7, 0x75, + 0x82, 0xd9, 0x06, 0x75, 0x8d, 0xb2, 0x0a, 0xe7, 0x53, 0x7f, 0x3d, 0xa6, + 0xf9, 0xa8, 0xc9, 0x94, 0xfa, 0x2d, 0x01, 0xb5, +}; +static const struct drbg_kat_no_reseed kat9_nor_t = { + 8, kat9_nor_entropyin, kat9_nor_nonce, kat9_nor_persstr, + kat9_nor_addin0, kat9_nor_addin1, kat9_nor_retbytes +}; +static const struct drbg_kat kat9_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat9_nor_t +}; + +static const unsigned char kat10_nor_entropyin[] = { + 0xa1, 0x3e, 0xd8, 0xf6, 0x04, 0xac, 0x03, 0x46, 0xc2, 0xac, 0x27, 0x01, + 0x29, 0xbb, 0x35, 0x78, +}; +static const unsigned char kat10_nor_nonce[] = { + 0x9c, 0xa5, 0xf6, 0x2c, 0x4d, 0x09, 0xde, 0x87, +}; +static const unsigned char kat10_nor_persstr[] = {0}; +static const unsigned char kat10_nor_addin0[] = {0}; +static const unsigned char kat10_nor_addin1[] = {0}; +static const unsigned char kat10_nor_retbytes[] = { + 0x6c, 0xf7, 0x0e, 0x27, 0xa9, 0x79, 0x3c, 0x14, 0xeb, 0xae, 0x73, 0xb6, + 0x53, 0x79, 0x8c, 0x15, 0xe1, 0x4e, 0x6c, 0xb9, 0xb8, 0x54, 0x34, 0x9e, + 0x42, 0xd8, 0x80, 0x1d, 0x49, 0x36, 0x4d, 0x77, 0x88, 0x68, 0x6f, 0x89, + 0xc6, 0xea, 0x2d, 0xb7, 0xf0, 0x38, 0xdd, 0x42, 0x43, 0x2d, 0xd7, 0x44, + 0xbb, 0xc9, 0x1e, 0x1f, 0xcd, 0xaf, 0x6e, 0xee, 0x2e, 0x76, 0x32, 0x5d, + 0xb7, 0x29, 0xfd, 0x3a, 0x99, 0xb9, 0x6c, 0xd6, 0x38, 0xc4, 0xa8, 0x92, + 0x35, 0x16, 0xfa, 0x04, 0xfd, 0x90, 0xea, 0xc5, +}; +static const struct drbg_kat_no_reseed kat10_nor_t = { + 9, kat10_nor_entropyin, kat10_nor_nonce, kat10_nor_persstr, + kat10_nor_addin0, kat10_nor_addin1, kat10_nor_retbytes +}; +static const struct drbg_kat kat10_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat10_nor_t +}; + +static const unsigned char kat11_nor_entropyin[] = { + 0xdf, 0xe6, 0xeb, 0xca, 0x43, 0xec, 0x46, 0xb8, 0xaa, 0xc3, 0x53, 0x33, + 0xdd, 0xc4, 0x7d, 0x44, +}; +static const unsigned char kat11_nor_nonce[] = { + 0x5d, 0x03, 0xcb, 0xac, 0xd4, 0x4d, 0xb1, 0x69, +}; +static const unsigned char kat11_nor_persstr[] = {0}; +static const unsigned char kat11_nor_addin0[] = {0}; +static const unsigned char kat11_nor_addin1[] = {0}; +static const unsigned char kat11_nor_retbytes[] = { + 0x1c, 0x1d, 0x75, 0x6b, 0x6d, 0x5d, 0x47, 0x5e, 0xe3, 0x93, 0x19, 0x39, + 0x92, 0x00, 0xb7, 0xf8, 0x64, 0x11, 0x24, 0x54, 0xbf, 0x03, 0xcc, 0x61, + 0xf6, 0x85, 0x6c, 0x5d, 0x42, 0x07, 0xb1, 0xcd, 0x97, 0x92, 0xc0, 0x84, + 0x1a, 0xb3, 0xb5, 0x67, 0x30, 0xab, 0x26, 0xd9, 0x5c, 0x36, 0x0c, 0xc0, + 0x2a, 0xc4, 0x61, 0x1e, 0xf4, 0x7f, 0x80, 0xd6, 0x65, 0xff, 0xb8, 0x32, + 0x7e, 0x10, 0x3f, 0xef, 0x24, 0x6b, 0xf9, 0x3a, 0x2a, 0x10, 0x38, 0xb2, + 0xbe, 0xda, 0x9a, 0x8a, 0x6d, 0x21, 0xc4, 0x15, +}; +static const struct drbg_kat_no_reseed kat11_nor_t = { + 10, kat11_nor_entropyin, kat11_nor_nonce, kat11_nor_persstr, + kat11_nor_addin0, kat11_nor_addin1, kat11_nor_retbytes +}; +static const struct drbg_kat kat11_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat11_nor_t +}; + +static const unsigned char kat12_nor_entropyin[] = { + 0x48, 0xe5, 0xfb, 0xd1, 0xac, 0xc6, 0x01, 0xe0, 0x2d, 0x81, 0xce, 0x03, + 0x0f, 0x10, 0x01, 0x55, +}; +static const unsigned char kat12_nor_nonce[] = { + 0xa0, 0xfc, 0x82, 0xd8, 0xe6, 0x92, 0xe6, 0x9b, +}; +static const unsigned char kat12_nor_persstr[] = {0}; +static const unsigned char kat12_nor_addin0[] = {0}; +static const unsigned char kat12_nor_addin1[] = {0}; +static const unsigned char kat12_nor_retbytes[] = { + 0x9e, 0xea, 0x52, 0x5c, 0xa5, 0x72, 0x09, 0x5b, 0x4d, 0x0b, 0x96, 0x7c, + 0xa8, 0xfc, 0xc5, 0xda, 0xe6, 0xec, 0x32, 0x6a, 0x0b, 0x9b, 0xb6, 0x3c, + 0x4a, 0x7f, 0x08, 0xd1, 0xda, 0xd4, 0xa5, 0xd2, 0x1c, 0x15, 0xcf, 0x4b, + 0x8d, 0xf9, 0xeb, 0x8a, 0xd2, 0x60, 0x37, 0xd9, 0xdc, 0xe9, 0xa7, 0x84, + 0x8a, 0xf5, 0xee, 0x8e, 0x30, 0x49, 0x3d, 0xea, 0x7b, 0xe2, 0xb1, 0xf1, + 0xff, 0xe8, 0xc4, 0x17, 0x1c, 0x13, 0x11, 0xac, 0xf9, 0x82, 0x1c, 0x06, + 0x61, 0x48, 0x38, 0xae, 0x2b, 0x8a, 0xb7, 0xb2, +}; +static const struct drbg_kat_no_reseed kat12_nor_t = { + 11, kat12_nor_entropyin, kat12_nor_nonce, kat12_nor_persstr, + kat12_nor_addin0, kat12_nor_addin1, kat12_nor_retbytes +}; +static const struct drbg_kat kat12_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat12_nor_t +}; + +static const unsigned char kat13_nor_entropyin[] = { + 0xdc, 0x8c, 0x36, 0x9f, 0x6f, 0x65, 0x9c, 0xf7, 0x60, 0x71, 0x0b, 0x1a, + 0x69, 0xa5, 0x47, 0xcf, +}; +static const unsigned char kat13_nor_nonce[] = { + 0x45, 0x84, 0x7c, 0xf4, 0x8b, 0x89, 0xb3, 0xc9, +}; +static const unsigned char kat13_nor_persstr[] = {0}; +static const unsigned char kat13_nor_addin0[] = {0}; +static const unsigned char kat13_nor_addin1[] = {0}; +static const unsigned char kat13_nor_retbytes[] = { + 0xf8, 0x45, 0x62, 0xc1, 0x5d, 0x3a, 0x35, 0x74, 0xa2, 0x7d, 0x3e, 0xd8, + 0x99, 0x1f, 0x17, 0xb8, 0xe7, 0xd3, 0xb7, 0x4a, 0x06, 0x50, 0xd6, 0xdc, + 0x32, 0x8d, 0x94, 0x7a, 0x98, 0x42, 0x57, 0xcf, 0x22, 0xf9, 0xf6, 0xef, + 0x5f, 0x5f, 0xb2, 0x08, 0x0e, 0x59, 0xd6, 0x5f, 0x6f, 0x2c, 0xa9, 0x96, + 0xb7, 0xb1, 0x51, 0xd7, 0xb7, 0x9b, 0xc9, 0x8c, 0xc7, 0x1e, 0x50, 0x42, + 0xa1, 0x0b, 0xc4, 0xb9, 0x33, 0xfa, 0x5c, 0xa2, 0x73, 0x1b, 0xfc, 0x5c, + 0xc6, 0xb0, 0xb7, 0xca, 0x25, 0xe6, 0x41, 0x6b, +}; +static const struct drbg_kat_no_reseed kat13_nor_t = { + 12, kat13_nor_entropyin, kat13_nor_nonce, kat13_nor_persstr, + kat13_nor_addin0, kat13_nor_addin1, kat13_nor_retbytes +}; +static const struct drbg_kat kat13_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat13_nor_t +}; + +static const unsigned char kat14_nor_entropyin[] = { + 0x4e, 0x8b, 0x4b, 0x1e, 0x2f, 0x6a, 0x9f, 0xe8, 0xab, 0xb5, 0x6f, 0x71, + 0x6b, 0xc8, 0x94, 0xb8, +}; +static const unsigned char kat14_nor_nonce[] = { + 0x38, 0x56, 0x5e, 0x90, 0xcd, 0x13, 0x1e, 0x3f, +}; +static const unsigned char kat14_nor_persstr[] = {0}; +static const unsigned char kat14_nor_addin0[] = {0}; +static const unsigned char kat14_nor_addin1[] = {0}; +static const unsigned char kat14_nor_retbytes[] = { + 0xe0, 0x46, 0x05, 0x0e, 0xd2, 0xa1, 0x4a, 0x56, 0x4d, 0xc6, 0x9b, 0x7e, + 0x4a, 0xa8, 0x9a, 0x99, 0x8a, 0x0d, 0xc7, 0x32, 0x5a, 0x05, 0xe4, 0x66, + 0x6b, 0x0c, 0xf6, 0x11, 0x88, 0x5f, 0x63, 0x91, 0xd9, 0x8c, 0x31, 0xd8, + 0xe2, 0x52, 0x7e, 0xa2, 0x96, 0x79, 0x1d, 0x0c, 0x8f, 0x34, 0x52, 0x2c, + 0xed, 0x84, 0x21, 0x7b, 0xae, 0x3e, 0xac, 0x5e, 0xb8, 0x73, 0x2c, 0xbc, + 0x4a, 0xf0, 0x71, 0x69, 0xe2, 0x5f, 0x9f, 0xb6, 0xda, 0x45, 0x88, 0xe0, + 0x19, 0x96, 0x9d, 0x79, 0xfc, 0xcc, 0xd5, 0xf7, +}; +static const struct drbg_kat_no_reseed kat14_nor_t = { + 13, kat14_nor_entropyin, kat14_nor_nonce, kat14_nor_persstr, + kat14_nor_addin0, kat14_nor_addin1, kat14_nor_retbytes +}; +static const struct drbg_kat kat14_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat14_nor_t +}; + +static const unsigned char kat15_nor_entropyin[] = { + 0x6f, 0xe9, 0x59, 0x7b, 0x59, 0x90, 0x3b, 0x1a, 0xf4, 0x01, 0x2a, 0x15, + 0x36, 0x8a, 0xf7, 0xb1, +}; +static const unsigned char kat15_nor_nonce[] = { + 0xfd, 0x3e, 0x84, 0xb3, 0xa9, 0x6c, 0xaa, 0xff, +}; +static const unsigned char kat15_nor_persstr[] = {0}; +static const unsigned char kat15_nor_addin0[] = {0}; +static const unsigned char kat15_nor_addin1[] = {0}; +static const unsigned char kat15_nor_retbytes[] = { + 0x1e, 0xee, 0x4c, 0x78, 0x64, 0x76, 0xd4, 0x88, 0xe5, 0x8d, 0x0e, 0x06, + 0x5b, 0xb0, 0x25, 0xdb, 0x54, 0x87, 0x87, 0xfa, 0xfb, 0xe7, 0x57, 0xf2, + 0x9e, 0xe2, 0xbd, 0x47, 0x81, 0xcf, 0x69, 0x21, 0x60, 0x91, 0xba, 0x2b, + 0x68, 0x91, 0x9b, 0x54, 0xad, 0x30, 0x70, 0xac, 0x72, 0xa2, 0x34, 0x23, + 0x20, 0xeb, 0x1e, 0x69, 0x7b, 0x91, 0x15, 0xac, 0xbe, 0x07, 0xe1, 0x94, + 0xd0, 0x60, 0x56, 0x2e, 0x4d, 0x0f, 0xd9, 0x66, 0xab, 0x29, 0xe2, 0xc5, + 0xe5, 0x60, 0x57, 0x4b, 0x2d, 0xac, 0x04, 0xce, +}; +static const struct drbg_kat_no_reseed kat15_nor_t = { + 14, kat15_nor_entropyin, kat15_nor_nonce, kat15_nor_persstr, + kat15_nor_addin0, kat15_nor_addin1, kat15_nor_retbytes +}; +static const struct drbg_kat kat15_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 0, 80, &kat15_nor_t +}; + +static const unsigned char kat16_nor_entropyin[] = { + 0xc3, 0xef, 0x82, 0xce, 0x24, 0x1f, 0x02, 0xe4, 0x29, 0x8b, 0x11, 0x8c, + 0xa4, 0xf1, 0x62, 0x25, +}; +static const unsigned char kat16_nor_nonce[] = { + 0x15, 0xe3, 0x2a, 0xbb, 0xae, 0x6b, 0x74, 0x33, +}; +static const unsigned char kat16_nor_persstr[] = {0}; +static const unsigned char kat16_nor_addin0[] = { + 0x2b, 0x79, 0x00, 0x52, 0xf0, 0x9b, 0x36, 0x4d, 0x4a, 0x82, 0x67, 0xa0, + 0xa7, 0xde, 0x63, 0xb8, +}; +static const unsigned char kat16_nor_addin1[] = { + 0x2e, 0xe0, 0x81, 0x9a, 0x67, 0x1d, 0x07, 0xb5, 0x08, 0x5c, 0xc4, 0x6a, + 0xa0, 0xe6, 0x1b, 0x56, +}; +static const unsigned char kat16_nor_retbytes[] = { + 0x58, 0x25, 0xfa, 0x1d, 0x1d, 0xc3, 0x3c, 0x64, 0xcd, 0xc8, 0x69, 0x06, + 0x82, 0xef, 0xf0, 0x60, 0x39, 0xe7, 0x95, 0x08, 0xc3, 0xaf, 0x48, 0xe8, + 0x80, 0xf8, 0x22, 0x7d, 0x5f, 0x9a, 0xaa, 0x14, 0xb3, 0xbc, 0x76, 0xba, + 0xee, 0x47, 0x7e, 0xbb, 0xb5, 0xc4, 0x55, 0x47, 0x13, 0x41, 0x79, 0x22, + 0x32, 0x57, 0x52, 0x5e, 0x8f, 0x3a, 0xfe, 0xfb, 0x78, 0xb5, 0x9d, 0xa0, + 0x32, 0xf1, 0x00, 0x6d, 0x74, 0xc9, 0x83, 0x13, 0x75, 0xa6, 0x77, 0xea, + 0xb3, 0x23, 0x9c, 0x94, 0xeb, 0xe3, 0xf7, 0xfa, +}; +static const struct drbg_kat_no_reseed kat16_nor_t = { + 0, kat16_nor_entropyin, kat16_nor_nonce, kat16_nor_persstr, + kat16_nor_addin0, kat16_nor_addin1, kat16_nor_retbytes +}; +static const struct drbg_kat kat16_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat16_nor_t +}; + +static const unsigned char kat17_nor_entropyin[] = { + 0x4b, 0xa7, 0x07, 0x43, 0xac, 0xcd, 0x43, 0x19, 0xe1, 0x1d, 0xe0, 0x46, + 0x1d, 0x9a, 0x37, 0xaa, +}; +static const unsigned char kat17_nor_nonce[] = { + 0x84, 0x5e, 0x4a, 0x96, 0x46, 0x2f, 0xb1, 0x6a, +}; +static const unsigned char kat17_nor_persstr[] = {0}; +static const unsigned char kat17_nor_addin0[] = { + 0xc7, 0xde, 0xec, 0x6c, 0xb5, 0x04, 0x9c, 0x34, 0xc8, 0xbe, 0x42, 0x37, + 0x5a, 0xfe, 0xc6, 0xf0, +}; +static const unsigned char kat17_nor_addin1[] = { + 0x37, 0xaf, 0x84, 0x11, 0x08, 0x5b, 0x41, 0xd8, 0x8e, 0xcf, 0x89, 0x9f, + 0xf2, 0xbb, 0x13, 0x25, +}; +static const unsigned char kat17_nor_retbytes[] = { + 0x7b, 0x6d, 0xac, 0xba, 0x0f, 0x66, 0xf2, 0xa1, 0x20, 0x71, 0xf9, 0xda, + 0x43, 0xf7, 0x5a, 0x61, 0x24, 0x0d, 0xf7, 0x5a, 0x47, 0xdd, 0xa1, 0x6f, + 0x47, 0x4e, 0xd2, 0xcf, 0x03, 0x08, 0xf5, 0x07, 0x94, 0xbf, 0x01, 0x7c, + 0xc6, 0xe6, 0xf0, 0x18, 0xfa, 0x9f, 0xa1, 0x50, 0x07, 0x48, 0xf7, 0xe0, + 0xb3, 0x6e, 0x62, 0xc6, 0x2a, 0x8d, 0xc4, 0x27, 0xf5, 0x8c, 0x1f, 0x2c, + 0x5a, 0xed, 0x10, 0xa4, 0x72, 0x6d, 0x88, 0x6c, 0xa1, 0x23, 0x25, 0xef, + 0x0c, 0x56, 0x6d, 0x5b, 0xc9, 0xa0, 0x4e, 0xcf, +}; +static const struct drbg_kat_no_reseed kat17_nor_t = { + 1, kat17_nor_entropyin, kat17_nor_nonce, kat17_nor_persstr, + kat17_nor_addin0, kat17_nor_addin1, kat17_nor_retbytes +}; +static const struct drbg_kat kat17_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat17_nor_t +}; + +static const unsigned char kat18_nor_entropyin[] = { + 0xac, 0x3c, 0xd0, 0xea, 0x3d, 0x26, 0x19, 0x7c, 0xc9, 0x37, 0x9b, 0x82, + 0xbd, 0x82, 0x89, 0xff, +}; +static const unsigned char kat18_nor_nonce[] = { + 0xe3, 0x63, 0xff, 0x61, 0x74, 0x1a, 0xab, 0x5e, +}; +static const unsigned char kat18_nor_persstr[] = {0}; +static const unsigned char kat18_nor_addin0[] = { + 0xc7, 0xc3, 0x0f, 0x2a, 0x6e, 0x50, 0x0b, 0x0b, 0xf9, 0x46, 0xd0, 0x21, + 0x93, 0x2b, 0xb1, 0x24, +}; +static const unsigned char kat18_nor_addin1[] = { + 0xbc, 0xb4, 0x0c, 0x37, 0x3a, 0x4a, 0x9b, 0xe6, 0x06, 0x79, 0x0e, 0x55, + 0x17, 0x37, 0xf0, 0x6c, +}; +static const unsigned char kat18_nor_retbytes[] = { + 0x15, 0xf4, 0x9e, 0x79, 0x14, 0xfe, 0x0b, 0xce, 0x03, 0x9b, 0x99, 0x06, + 0x0c, 0xc3, 0x72, 0xce, 0xb4, 0x53, 0x28, 0x29, 0x46, 0x57, 0x9a, 0x47, + 0xd9, 0xbf, 0xb6, 0x1c, 0x5a, 0xed, 0x7a, 0x4d, 0xa0, 0xdc, 0x77, 0xbe, + 0x7e, 0x7b, 0xc3, 0x3b, 0x63, 0xd6, 0x50, 0xf2, 0x84, 0x90, 0xd9, 0x2f, + 0xb5, 0x87, 0x25, 0xd5, 0x19, 0xfa, 0xd9, 0x44, 0x92, 0xf7, 0x12, 0xbd, + 0x81, 0x93, 0xd0, 0x94, 0xc8, 0x65, 0xcc, 0xbd, 0x41, 0x96, 0x25, 0xd5, + 0xd2, 0x7e, 0x24, 0x9b, 0x1c, 0xc5, 0x55, 0xcc, +}; +static const struct drbg_kat_no_reseed kat18_nor_t = { + 2, kat18_nor_entropyin, kat18_nor_nonce, kat18_nor_persstr, + kat18_nor_addin0, kat18_nor_addin1, kat18_nor_retbytes +}; +static const struct drbg_kat kat18_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat18_nor_t +}; + +static const unsigned char kat19_nor_entropyin[] = { + 0xeb, 0x51, 0xfe, 0x7b, 0xd7, 0x24, 0x74, 0x65, 0x99, 0x47, 0xb0, 0xed, + 0x51, 0x09, 0xbe, 0x38, +}; +static const unsigned char kat19_nor_nonce[] = { + 0x0a, 0x2a, 0xff, 0x93, 0xbf, 0xcc, 0x07, 0x22, +}; +static const unsigned char kat19_nor_persstr[] = {0}; +static const unsigned char kat19_nor_addin0[] = { + 0x94, 0xf6, 0x17, 0x3e, 0xd7, 0xc3, 0x6a, 0x63, 0xc4, 0xa9, 0x5c, 0x91, + 0x4d, 0x07, 0x42, 0xb7, +}; +static const unsigned char kat19_nor_addin1[] = { + 0x6b, 0x11, 0x98, 0x91, 0x48, 0xcb, 0x86, 0x04, 0x07, 0xa3, 0x67, 0x5a, + 0x33, 0x79, 0x89, 0x69, +}; +static const unsigned char kat19_nor_retbytes[] = { + 0xa6, 0x79, 0xa0, 0x8a, 0x10, 0x0e, 0xcc, 0x52, 0x50, 0xc3, 0x3b, 0x9b, + 0x1d, 0xcd, 0x9e, 0x20, 0x46, 0x9b, 0x30, 0x31, 0x6d, 0x0e, 0x0e, 0x47, + 0x80, 0xff, 0xe1, 0x5c, 0x06, 0xc9, 0x9c, 0x04, 0x40, 0xf7, 0xdb, 0xf0, + 0x46, 0x21, 0x21, 0x5d, 0x3d, 0x50, 0x81, 0x20, 0x1d, 0x4a, 0x10, 0x41, + 0x6a, 0x91, 0x38, 0x78, 0x2c, 0x56, 0x92, 0xed, 0x9e, 0xae, 0xdc, 0x99, + 0xc7, 0xcc, 0xfb, 0x09, 0xab, 0x08, 0x49, 0x38, 0x11, 0x50, 0x14, 0x5d, + 0xc0, 0xe5, 0x5a, 0x8f, 0xa8, 0x89, 0x80, 0x68, +}; +static const struct drbg_kat_no_reseed kat19_nor_t = { + 3, kat19_nor_entropyin, kat19_nor_nonce, kat19_nor_persstr, + kat19_nor_addin0, kat19_nor_addin1, kat19_nor_retbytes +}; +static const struct drbg_kat kat19_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat19_nor_t +}; + +static const unsigned char kat20_nor_entropyin[] = { + 0x9c, 0xdb, 0x91, 0xa2, 0x1b, 0x4f, 0xdc, 0xc4, 0x10, 0xf9, 0x60, 0xce, + 0xb7, 0xac, 0x8e, 0xc8, +}; +static const unsigned char kat20_nor_nonce[] = { + 0x9d, 0x01, 0xf7, 0x3a, 0xe1, 0x68, 0xed, 0x6e, +}; +static const unsigned char kat20_nor_persstr[] = {0}; +static const unsigned char kat20_nor_addin0[] = { + 0xe1, 0xeb, 0x4b, 0xb2, 0xd0, 0x80, 0xb1, 0xd3, 0xe9, 0x5b, 0xc0, 0x42, + 0xac, 0xe9, 0x4c, 0x68, +}; +static const unsigned char kat20_nor_addin1[] = { + 0x06, 0x2d, 0xc8, 0x66, 0xf4, 0x14, 0xb9, 0x51, 0xe3, 0xf6, 0x1a, 0xa7, + 0xfe, 0x6d, 0x1f, 0xfe, +}; +static const unsigned char kat20_nor_retbytes[] = { + 0xbf, 0xb0, 0x07, 0x7e, 0x99, 0x5f, 0x49, 0xc4, 0x03, 0xdc, 0x38, 0x29, + 0x7e, 0xe4, 0x7b, 0x41, 0x93, 0x88, 0x64, 0xd7, 0x34, 0xb2, 0xe7, 0xb7, + 0x94, 0xe9, 0xbb, 0xf4, 0x61, 0xa2, 0xa4, 0xa4, 0x5f, 0x36, 0x4d, 0x82, + 0xa6, 0x6b, 0x37, 0x30, 0xbc, 0x5c, 0x99, 0x02, 0xd7, 0xb5, 0x99, 0x9f, + 0x74, 0x55, 0x4e, 0x59, 0xe4, 0x54, 0xd6, 0x58, 0xa8, 0x6d, 0x48, 0x13, + 0xb5, 0xe7, 0x60, 0x9e, 0x03, 0xbc, 0x75, 0x0c, 0x38, 0xcd, 0x52, 0xb3, + 0x66, 0x76, 0x05, 0x7e, 0xd8, 0x0b, 0xfd, 0x41, +}; +static const struct drbg_kat_no_reseed kat20_nor_t = { + 4, kat20_nor_entropyin, kat20_nor_nonce, kat20_nor_persstr, + kat20_nor_addin0, kat20_nor_addin1, kat20_nor_retbytes +}; +static const struct drbg_kat kat20_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat20_nor_t +}; + +static const unsigned char kat21_nor_entropyin[] = { + 0x7d, 0xd2, 0xff, 0xfc, 0x51, 0x45, 0x6d, 0xd4, 0x72, 0x60, 0x39, 0x5d, + 0xdc, 0xa6, 0x0c, 0x8f, +}; +static const unsigned char kat21_nor_nonce[] = { + 0x63, 0x1e, 0x5b, 0x0c, 0xe8, 0x4e, 0x36, 0x52, +}; +static const unsigned char kat21_nor_persstr[] = {0}; +static const unsigned char kat21_nor_addin0[] = { + 0xcf, 0xc3, 0xab, 0x0a, 0x51, 0xc3, 0xb0, 0xad, 0xb3, 0x20, 0xfb, 0xa6, + 0x11, 0x2a, 0xc8, 0x56, +}; +static const unsigned char kat21_nor_addin1[] = { + 0xf5, 0xaa, 0xae, 0x47, 0xc8, 0x23, 0xc0, 0x4e, 0x69, 0x60, 0xdc, 0xc2, + 0x05, 0xfd, 0x77, 0xa3, +}; +static const unsigned char kat21_nor_retbytes[] = { + 0xc6, 0x11, 0x8f, 0x46, 0x89, 0xc7, 0xfc, 0xcd, 0x5a, 0xeb, 0x46, 0x87, + 0x75, 0x80, 0x7d, 0x39, 0x63, 0x1f, 0x5b, 0x31, 0x5f, 0x0c, 0x83, 0xb5, + 0xd9, 0x6f, 0xa6, 0xc2, 0xeb, 0xc0, 0xf9, 0x5e, 0xf4, 0x41, 0x4e, 0xfe, + 0x1c, 0x99, 0xce, 0x71, 0xe6, 0x2c, 0x46, 0x17, 0xdd, 0x1c, 0xc9, 0x57, + 0x77, 0xdd, 0xda, 0xa8, 0x25, 0x8d, 0x06, 0x5b, 0xf3, 0xaf, 0x2a, 0xdc, + 0x67, 0x9d, 0xd3, 0xd1, 0x9d, 0x23, 0xce, 0xd6, 0xe2, 0xb4, 0xb4, 0x7c, + 0x85, 0x65, 0x76, 0xf9, 0x69, 0x7a, 0x5f, 0x42, +}; +static const struct drbg_kat_no_reseed kat21_nor_t = { + 5, kat21_nor_entropyin, kat21_nor_nonce, kat21_nor_persstr, + kat21_nor_addin0, kat21_nor_addin1, kat21_nor_retbytes +}; +static const struct drbg_kat kat21_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat21_nor_t +}; + +static const unsigned char kat22_nor_entropyin[] = { + 0x74, 0x91, 0xcd, 0x16, 0x5d, 0xe8, 0x4b, 0xe1, 0xce, 0x94, 0xf0, 0xbc, + 0x28, 0xb7, 0xa0, 0x1c, +}; +static const unsigned char kat22_nor_nonce[] = { + 0x7d, 0xe5, 0xf3, 0x7f, 0xbd, 0x77, 0x75, 0x26, +}; +static const unsigned char kat22_nor_persstr[] = {0}; +static const unsigned char kat22_nor_addin0[] = { + 0x2c, 0x2e, 0xb1, 0x93, 0x19, 0x7b, 0xe1, 0x1f, 0xd9, 0x6c, 0x6b, 0x4f, + 0x8a, 0x56, 0x74, 0x8e, +}; +static const unsigned char kat22_nor_addin1[] = { + 0x41, 0x1d, 0x9f, 0x71, 0xe0, 0xf9, 0x7e, 0x94, 0x06, 0x50, 0xf4, 0xca, + 0x99, 0x9f, 0xde, 0x5c, +}; +static const unsigned char kat22_nor_retbytes[] = { + 0xdf, 0xd1, 0x5d, 0x00, 0xe3, 0x69, 0x3e, 0x89, 0xef, 0xff, 0xed, 0xd2, + 0x87, 0xaf, 0x2f, 0x6f, 0x33, 0x00, 0x4c, 0xb4, 0x2b, 0x16, 0xb3, 0x8b, + 0x41, 0xa3, 0x93, 0x54, 0x81, 0x90, 0xf8, 0x41, 0xdb, 0xca, 0xdd, 0xf6, + 0x7c, 0x41, 0x0b, 0x79, 0xa9, 0xcf, 0x10, 0x4a, 0xd1, 0x80, 0x5e, 0x89, + 0xe2, 0xc1, 0xa4, 0x1a, 0x24, 0x05, 0x36, 0x14, 0xd6, 0x7e, 0x95, 0x67, + 0xc1, 0xac, 0x98, 0x9d, 0xb3, 0x3d, 0x79, 0x2d, 0x80, 0x24, 0x55, 0xb1, + 0x7b, 0x17, 0x4a, 0xdb, 0xc9, 0xde, 0xd7, 0xb4, +}; +static const struct drbg_kat_no_reseed kat22_nor_t = { + 6, kat22_nor_entropyin, kat22_nor_nonce, kat22_nor_persstr, + kat22_nor_addin0, kat22_nor_addin1, kat22_nor_retbytes +}; +static const struct drbg_kat kat22_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat22_nor_t +}; + +static const unsigned char kat23_nor_entropyin[] = { + 0x14, 0x98, 0x67, 0x34, 0xe4, 0x19, 0xb6, 0x47, 0xda, 0x59, 0xba, 0xd3, + 0x86, 0xa1, 0x6c, 0xf9, +}; +static const unsigned char kat23_nor_nonce[] = { + 0xc3, 0x7c, 0x9b, 0xf5, 0xa4, 0x36, 0x51, 0x23, +}; +static const unsigned char kat23_nor_persstr[] = {0}; +static const unsigned char kat23_nor_addin0[] = { + 0x58, 0xbb, 0x48, 0x58, 0x52, 0xa8, 0x67, 0xeb, 0x55, 0x6c, 0x53, 0xe9, + 0x04, 0xc5, 0x59, 0x39, +}; +static const unsigned char kat23_nor_addin1[] = { + 0x92, 0xfd, 0x0b, 0x39, 0xdb, 0x4f, 0x98, 0x26, 0x03, 0x99, 0xd5, 0xc1, + 0x2d, 0x74, 0x4a, 0xd3, +}; +static const unsigned char kat23_nor_retbytes[] = { + 0x81, 0xc7, 0x50, 0x9f, 0xd3, 0xaa, 0x29, 0xf7, 0x9e, 0x6c, 0xe6, 0x03, + 0x7e, 0xd4, 0x80, 0x03, 0x17, 0xb7, 0x4a, 0x6e, 0xab, 0x5c, 0x8e, 0xe1, + 0x52, 0x05, 0xd2, 0x92, 0xbd, 0xab, 0x76, 0xd7, 0xba, 0xe6, 0x2c, 0xb2, + 0xc2, 0x6c, 0x6b, 0xb9, 0x5d, 0x66, 0xbc, 0x8d, 0x3b, 0x27, 0x0e, 0x89, + 0xf9, 0xe6, 0x1b, 0x62, 0x81, 0x8e, 0xbe, 0x27, 0xff, 0xe4, 0x9f, 0x3e, + 0xb8, 0x6e, 0xe5, 0xfc, 0xd4, 0x92, 0xb7, 0xee, 0x03, 0xdd, 0xca, 0x6d, + 0xd3, 0x33, 0xa3, 0xd9, 0x33, 0x4f, 0xe2, 0xda, +}; +static const struct drbg_kat_no_reseed kat23_nor_t = { + 7, kat23_nor_entropyin, kat23_nor_nonce, kat23_nor_persstr, + kat23_nor_addin0, kat23_nor_addin1, kat23_nor_retbytes +}; +static const struct drbg_kat kat23_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat23_nor_t +}; + +static const unsigned char kat24_nor_entropyin[] = { + 0x29, 0x87, 0x24, 0x60, 0xa7, 0xf1, 0x3c, 0x18, 0xe6, 0x80, 0x67, 0xa0, + 0xfb, 0x8d, 0xd6, 0xc2, +}; +static const unsigned char kat24_nor_nonce[] = { + 0x7d, 0x62, 0xe2, 0x0a, 0xa7, 0x1a, 0x94, 0x5b, +}; +static const unsigned char kat24_nor_persstr[] = {0}; +static const unsigned char kat24_nor_addin0[] = { + 0xeb, 0xd9, 0x87, 0xbd, 0x55, 0x1b, 0x35, 0x4b, 0xdd, 0xc1, 0x74, 0x14, + 0xa2, 0x6e, 0x1f, 0x08, +}; +static const unsigned char kat24_nor_addin1[] = { + 0xc2, 0xc0, 0xe5, 0x3e, 0x61, 0x45, 0x1a, 0xe1, 0x7f, 0xf6, 0xa9, 0x0c, + 0x49, 0xb4, 0x66, 0xd7, +}; +static const unsigned char kat24_nor_retbytes[] = { + 0x95, 0x60, 0x98, 0x22, 0x20, 0x32, 0x63, 0xf9, 0x2a, 0x40, 0x95, 0x5a, + 0x56, 0x19, 0x24, 0x0e, 0x74, 0x09, 0x13, 0x63, 0x34, 0xe3, 0x1b, 0x95, + 0x63, 0x68, 0xb4, 0x9b, 0xb8, 0x55, 0x06, 0x51, 0x72, 0xde, 0x37, 0x18, + 0xc4, 0x04, 0x83, 0x87, 0x1b, 0x45, 0x5d, 0x8e, 0x25, 0xf4, 0x34, 0x23, + 0xb9, 0x91, 0xb3, 0xaa, 0x9b, 0xcf, 0x0e, 0x27, 0xb4, 0x50, 0x9b, 0x45, + 0xd8, 0xf7, 0x98, 0x3b, 0xc0, 0x54, 0xed, 0x5f, 0xf1, 0x99, 0x9f, 0xbb, + 0x75, 0xf9, 0xe9, 0x1b, 0xfe, 0xab, 0x8a, 0x6e, +}; +static const struct drbg_kat_no_reseed kat24_nor_t = { + 8, kat24_nor_entropyin, kat24_nor_nonce, kat24_nor_persstr, + kat24_nor_addin0, kat24_nor_addin1, kat24_nor_retbytes +}; +static const struct drbg_kat kat24_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat24_nor_t +}; + +static const unsigned char kat25_nor_entropyin[] = { + 0xbb, 0x0a, 0x1f, 0x9b, 0x84, 0x74, 0x1b, 0x55, 0x38, 0x4b, 0x89, 0xc0, + 0x55, 0xd5, 0x02, 0x72, +}; +static const unsigned char kat25_nor_nonce[] = { + 0x25, 0x86, 0xdf, 0xe6, 0x30, 0x6d, 0xb7, 0x3d, +}; +static const unsigned char kat25_nor_persstr[] = {0}; +static const unsigned char kat25_nor_addin0[] = { + 0xbc, 0xf6, 0xee, 0x1e, 0xac, 0x1d, 0x2d, 0x3a, 0x7b, 0x96, 0x05, 0x00, + 0xf8, 0x0c, 0x53, 0x28, +}; +static const unsigned char kat25_nor_addin1[] = { + 0x54, 0x3f, 0xea, 0x55, 0x15, 0xec, 0x0e, 0xa5, 0xd2, 0x5d, 0x01, 0x9b, + 0xce, 0x97, 0x39, 0x09, +}; +static const unsigned char kat25_nor_retbytes[] = { + 0x9d, 0x88, 0x97, 0x0a, 0x80, 0x76, 0x40, 0x1f, 0xc1, 0x32, 0xec, 0xff, + 0x78, 0x2a, 0x2f, 0x68, 0x17, 0xe4, 0x82, 0x9f, 0x6e, 0x87, 0x41, 0x72, + 0xab, 0x3b, 0x99, 0x1f, 0x46, 0xff, 0x53, 0x19, 0x98, 0x7d, 0xd6, 0xae, + 0x53, 0x9f, 0xc2, 0xa3, 0x65, 0x7f, 0x00, 0x48, 0x0c, 0x7b, 0xb5, 0xe7, + 0xdd, 0x6d, 0x1a, 0x12, 0x96, 0x9e, 0x81, 0xa3, 0x87, 0xa9, 0xae, 0x43, + 0xab, 0x9c, 0x0d, 0x28, 0x26, 0x44, 0x8c, 0x6c, 0xa9, 0xe9, 0xbf, 0x9a, + 0xe0, 0x82, 0x1a, 0x35, 0xc4, 0xe2, 0xf0, 0xbd, +}; +static const struct drbg_kat_no_reseed kat25_nor_t = { + 9, kat25_nor_entropyin, kat25_nor_nonce, kat25_nor_persstr, + kat25_nor_addin0, kat25_nor_addin1, kat25_nor_retbytes +}; +static const struct drbg_kat kat25_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat25_nor_t +}; + +static const unsigned char kat26_nor_entropyin[] = { + 0xb9, 0xde, 0x65, 0x31, 0x31, 0x2e, 0x4c, 0x7c, 0x6f, 0x49, 0x2f, 0x94, + 0x3d, 0x74, 0xc2, 0xc3, +}; +static const unsigned char kat26_nor_nonce[] = { + 0xae, 0x15, 0xbd, 0xf3, 0xcd, 0x20, 0x86, 0xdc, +}; +static const unsigned char kat26_nor_persstr[] = {0}; +static const unsigned char kat26_nor_addin0[] = { + 0xf4, 0x03, 0x54, 0x91, 0x8f, 0x58, 0x78, 0xcc, 0xb0, 0x2e, 0x38, 0x29, + 0x89, 0x30, 0x35, 0xf5, +}; +static const unsigned char kat26_nor_addin1[] = { + 0xdf, 0x58, 0x7b, 0x08, 0x22, 0xe6, 0x49, 0x18, 0xc2, 0xf4, 0x90, 0x3a, + 0x0f, 0x3e, 0x2e, 0x3b, +}; +static const unsigned char kat26_nor_retbytes[] = { + 0xa7, 0xab, 0x93, 0xcd, 0x9f, 0xfe, 0x24, 0x6d, 0xd4, 0xe3, 0xdc, 0x55, + 0xba, 0x94, 0x6e, 0xb2, 0x15, 0x1d, 0x03, 0xd0, 0xdd, 0x2b, 0x6a, 0x81, + 0x2f, 0x8e, 0x3a, 0x2d, 0xb1, 0x9c, 0x78, 0x10, 0xfb, 0xf2, 0xb9, 0x51, + 0x34, 0x13, 0x14, 0x15, 0x62, 0xaa, 0xd7, 0xe5, 0x7f, 0x8d, 0xdf, 0x74, + 0x25, 0x70, 0x2f, 0x6c, 0x19, 0x76, 0xdf, 0xcd, 0x82, 0x1a, 0x71, 0x58, + 0x68, 0xcb, 0x6d, 0x43, 0x6a, 0xcf, 0x97, 0x08, 0x48, 0x1b, 0xfa, 0x09, + 0x54, 0x54, 0xc8, 0xc6, 0xb8, 0x1d, 0xe6, 0x2b, +}; +static const struct drbg_kat_no_reseed kat26_nor_t = { + 10, kat26_nor_entropyin, kat26_nor_nonce, kat26_nor_persstr, + kat26_nor_addin0, kat26_nor_addin1, kat26_nor_retbytes +}; +static const struct drbg_kat kat26_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat26_nor_t +}; + +static const unsigned char kat27_nor_entropyin[] = { + 0x70, 0xfd, 0xd3, 0x7d, 0x38, 0x64, 0xbe, 0x69, 0x92, 0xfb, 0xdb, 0x78, + 0x55, 0x64, 0x9f, 0xcc, +}; +static const unsigned char kat27_nor_nonce[] = { + 0x9f, 0x6d, 0x99, 0x4d, 0x1c, 0xdd, 0x27, 0x0b, +}; +static const unsigned char kat27_nor_persstr[] = {0}; +static const unsigned char kat27_nor_addin0[] = { + 0x9e, 0x5a, 0x48, 0xc9, 0xb3, 0x42, 0x89, 0xdc, 0xce, 0x94, 0x7c, 0x37, + 0xcf, 0x1a, 0x8d, 0xb7, +}; +static const unsigned char kat27_nor_addin1[] = { + 0xa2, 0x3d, 0xd5, 0x8b, 0xf5, 0xfd, 0x18, 0x7f, 0xc2, 0xa0, 0x63, 0x62, + 0x24, 0x38, 0x8a, 0x3f, +}; +static const unsigned char kat27_nor_retbytes[] = { + 0xbb, 0x89, 0xab, 0x58, 0x54, 0xed, 0xe9, 0x2a, 0xb6, 0x76, 0x6d, 0xb2, + 0xdb, 0x04, 0xa7, 0x8c, 0xd0, 0x31, 0x92, 0xba, 0x64, 0xf9, 0x57, 0x77, + 0x9d, 0x6a, 0x23, 0x22, 0x1e, 0xdb, 0xe8, 0x6c, 0x1a, 0xb7, 0x6d, 0xdd, + 0x1a, 0xf7, 0x40, 0x66, 0x88, 0xfb, 0xeb, 0xb8, 0xad, 0x37, 0x7b, 0xb4, + 0x99, 0xf6, 0x6e, 0xc9, 0x67, 0x27, 0x05, 0xd2, 0xfe, 0x30, 0xe8, 0xa2, + 0xd5, 0xee, 0xd9, 0xb5, 0xda, 0x5c, 0x2c, 0x2f, 0xd1, 0xe0, 0x59, 0xd0, + 0x6c, 0x84, 0xe3, 0xa4, 0xd0, 0x46, 0xfc, 0x66, +}; +static const struct drbg_kat_no_reseed kat27_nor_t = { + 11, kat27_nor_entropyin, kat27_nor_nonce, kat27_nor_persstr, + kat27_nor_addin0, kat27_nor_addin1, kat27_nor_retbytes +}; +static const struct drbg_kat kat27_nor = { + NO_RESEED, NA, NID_sha1, 16, 8, 0, 16, 80, &kat27_nor_t +}; + +static const unsigned char kat28_nor_entropyin[] = { + 0x0e, 0x18, 0x34, 0xca, 0x71, 0x8e, 0x2e, 0xc8, 0x9d, 0xf6, 0x6f, 0x76, + 0x7e, 0x31, 0x01, 0x8b, +}; +static const unsigned char kat28_nor_nonce[] = { + 0xb9, 0x77, 0x57, 0xad, 0xf5, 0x15, 0x8e, 0x82, +}; +static const unsigned char kat28_nor_persstr[] = {0}; +static const unsigned char kat28_nor_addin0[] = { + 0x1b, 0x8f, 0x11, 0x5d, 0xc9, 0x37, 0x54, 0x00, 0x21, 0x2e, 0x50, 0x33, + 0x76, 0xa9, 0x0f, 0x6b, +}; +static const unsigned char kat28_nor_addin1[] = { + 0xb7, 0xb8, 0xa7, 0x4d, 0x1d, 0xb1, 0xec, 0xb6, 0x6c, 0x8a, 0x7f, 0x82, + 0xec, 0x55, 0xec, 0x13, +}; +static const unsigned char kat28_nor_retbytes[] = { + 0xa5, 0x5d, 0x54, 0xfa, 0x57, 0xaa, 0x36, 0x45, 0x6c, 0x64, 0xed, 0xf2, + 0xa4, 0xbf, 0xc3, 0xa0, 0x45, 0x8d, 0x20, 0xc0, 0x0b, 0xd1, 0x9b, 0x5d, + 0 |