Remove some unnecessary OPENSSL_FIPS references
[openssl.git] / fips / hmac / fips_hmac_selftest.c
index bdccf96f940dd281a365c1d60b6650629d9f98f1..037761ce9f14a6467a2ef4fe880f2d3b6021f1c1 100644 (file)
@@ -63,15 +63,18 @@ typedef struct {
 
 /* from http://csrc.nist.gov/publications/fips/fips198/fips-198a.pdf */
 /* "0123456789:;<=>?@ABC" */
-const unsigned char hmac_kat_key[] = {
+__fips_constseg
+static const unsigned char hmac_kat_key[] = {
        0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a,
        0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43
        };
 /* "Sample #2" */
-const unsigned char hmac_kat_data[] = {
+__fips_constseg
+static const unsigned char hmac_kat_data[] = {
        0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x20, 0x23, 0x32
        };
 
+__fips_constseg
 static const HMAC_KAT vector[] = {
     {  NID_sha1,
        { 0x09,0x22,0xd3,0x40,0x5f,0xaa,0x3d,0x19,
@@ -117,7 +120,7 @@ int FIPS_selftest_hmac()
        unsigned char   out[EVP_MAX_MD_SIZE];
        const EVP_MD   *md;
        const HMAC_KAT *t;
-       int rv = 1, subid;
+       int rv = 1, subid = -1;
        HMAC_CTX c;
        HMAC_CTX_init(&c);