Skip to content
Snippets Groups Projects
Commit a0843ac7 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Seriously, Poly1305 is not HMAC.

parent e0b47595
No related branches found
No related tags found
No related merge requests found
Pipeline #6865 passed
......@@ -1133,7 +1133,7 @@ JSObject* js_CreateCryptContextClass(JSContext* cx, JSObject* parent)
/* CRYPT_ALGO_HMAC_RIPEMD160 no longer supported */
JS_DefineProperty(cx, algo, "HMAC-SHAng", INT_TO_JSVAL(CRYPT_ALGO_HMAC_SHAng), NULL, NULL
, JSPROP_PERMANENT|JSPROP_ENUMERATE|JSPROP_READONLY);
JS_DefineProperty(cx, algo, "HMAC-Poly1305", INT_TO_JSVAL(CRYPT_ALGO_POLY1305), NULL, NULL
JS_DefineProperty(cx, algo, "Poly1305", INT_TO_JSVAL(CRYPT_ALGO_POLY1305), NULL, NULL
, JSPROP_PERMANENT|JSPROP_ENUMERATE|JSPROP_READONLY);
#ifdef BUILD_JSDOCS
js_CreateArrayOfStrings(cx, algo, "_property_desc_list", cryptcon_algo_prop_desc, JSPROP_READONLY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment