You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you check the return value from EVP_PKEY_cmp() you will find that it is -2 in the above code. The documentation for EVP_PKEY_cmp() has this to say on its return values:
The function EVP_PKEY_cmp_parameters() and EVP_PKEY_cmp() return 1 if the
keys match, 0 if they don't match, -1 if the key types are different and
-2 if the operation is not supported.
So this means "operation is not supported" in your context. That's because we don't currently support comparison of HMAC keys.
This isn't a bug as such, its a missing feature. Perhaps the documentation could be more explicit about which EVP_PKEY types actually support comparison.
The text was updated successfully, but these errors were encountered: