|
@@ -1982,3 +1982,57 @@ static const struct rsa_decrypt_prim_st rsa_decrypt_prim_data[] = {
|
|
|
};
|
|
|
|
|
|
#endif /* OPENSSL_NO_RSA */
|
|
|
+
|
|
|
+struct drbg_st {
|
|
|
+ const char *drbg_name;
|
|
|
+ const char *cipher;
|
|
|
+ int use_df;
|
|
|
+
|
|
|
+ const unsigned char *entropy_input;
|
|
|
+ size_t entropy_input_len;
|
|
|
+ const unsigned char *nonce;
|
|
|
+ size_t nonce_len;
|
|
|
+ const unsigned char *returned_bits;
|
|
|
+ size_t returned_bits_len;
|
|
|
+};
|
|
|
+
|
|
|
+static const unsigned char drbg_entropy_input[] = {
|
|
|
+ 0x36, 0x40, 0x19, 0x40, 0xfa, 0x8b, 0x1f, 0xba,
|
|
|
+ 0x91, 0xa1, 0x66, 0x1f, 0x21, 0x1d, 0x78, 0xa0,
|
|
|
+ 0xb9, 0x38, 0x9a, 0x74, 0xe5, 0xbc, 0xcf, 0xec,
|
|
|
+ 0xe8, 0xd7, 0x66, 0xaf, 0x1a, 0x6d, 0x3b, 0x14
|
|
|
+};
|
|
|
+
|
|
|
+static const unsigned char drbg_nonce[] = {
|
|
|
+ 0x49, 0x6f, 0x25, 0xb0, 0xf1, 0x30, 0x1b, 0x4f,
|
|
|
+ 0x50, 0x1b, 0xe3, 0x03, 0x80, 0xa1, 0x37, 0xeb
|
|
|
+};
|
|
|
+
|
|
|
+static const unsigned char drbg_returned_bits[] = {
|
|
|
+ 0x58, 0x62, 0xeb, 0x38, 0xbd, 0x55, 0x8d, 0xd9,
|
|
|
+ 0x78, 0xa6, 0x96, 0xe6, 0xdf, 0x16, 0x47, 0x82,
|
|
|
+ 0xdd, 0xd8, 0x87, 0xe7, 0xe9, 0xa6, 0xc9, 0xf3,
|
|
|
+ 0xf1, 0xfb, 0xaf, 0xb7, 0x89, 0x41, 0xb5, 0x35,
|
|
|
+ 0xa6, 0x49, 0x12, 0xdf, 0xd2, 0x24, 0xc6, 0xdc,
|
|
|
+ 0x74, 0x54, 0xe5, 0x25, 0x0b, 0x3d, 0x97, 0x16,
|
|
|
+ 0x5e, 0x16, 0x26, 0x0c, 0x2f, 0xaf, 0x1c, 0xc7,
|
|
|
+ 0x73, 0x5c, 0xb7, 0x5f, 0xb4, 0xf0, 0x7e, 0x1d
|
|
|
+};
|
|
|
+
|
|
|
+static const unsigned char drbg_key_0[] = {
|
|
|
+ 0x33, 0x63, 0xd9, 0x00, 0x0e, 0x6d, 0xb4, 0x7c,
|
|
|
+ 0x16, 0xd3, 0xfc, 0x65, 0xf2, 0x87, 0x2c, 0x08,
|
|
|
+ 0xa3, 0x5f, 0x99, 0xb2, 0xd1, 0x74, 0xaf, 0xa5,
|
|
|
+ 0x37, 0xa6, 0x6e, 0xc1, 0x53, 0x05, 0x2d, 0x98
|
|
|
+};
|
|
|
+
|
|
|
+static const struct drbg_st drbg_data[] = {
|
|
|
+ {
|
|
|
+ "CTR-DRBG",
|
|
|
+ "AES-256-CTR",
|
|
|
+ 1,
|
|
|
+ ITM(drbg_entropy_input),
|
|
|
+ ITM(drbg_nonce),
|
|
|
+ ITM(drbg_returned_bits)
|
|
|
+ }
|
|
|
+};
|