Add ECP_NISTZ256 by Shay Gueron, Intel Corp.
[oweals/openssl.git] / crypto / hmac / hm_ameth.c
index 6d8a89149ee3290cf6e9a00c7f76e5391d4c0446..9fe6505bd5a07fc2d76e3ca9bf57351cde3024cc 100644 (file)
@@ -89,7 +89,7 @@ static int hmac_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2)
        switch (op)
                {
                case ASN1_PKEY_CTRL_DEFAULT_MD_NID:
-               *(int *)arg2 = NID_sha1;
+               *(int *)arg2 = NID_sha256;
                return 1;
 
                default:
@@ -153,7 +153,7 @@ const EVP_PKEY_ASN1_METHOD hmac_asn1_meth =
 
        hmac_size,
        0,
-       0,0,0,0,0,0,
+       0,0,0,0,0,0,0,
 
        hmac_key_free,
        hmac_pkey_ctrl,