Talk:Elliptic Curve Cryptography

From OpenSSLWiki
Revision as of 03:24, 29 July 2019 by Jwalton (talk | contribs)

Jump to: navigation, search

Source Code Highlighting

I messed around with the sample code and came up with some basic highlighting that I thought made the code easier to read. This is a sample of what I would be changing the sample code to:

#include <openssl/obj_mac.h>
#include <openssl/ec.h>

/* Other things up here... */

EC_GROUP *curve;
 
if(NULL == (curve = EC_GROUP_new_by_curve_name(NID_secp224r1)))
    handleErrors();

I have no strong feelings towards the specific colors, I just picked something I thought was simple and clean. By all means if you have a suggestion regarding the theme I'm all ears. As I said, the point of this change is to make the code easier to read, and since I know theme selection and taste are pretty arbitrary and some people might prefer the code as it is, I thought it best to leave the sample code on live as it was for now.

Jflopezfernandez (talk) 02:50, 29 July 2019 (UTC)

I believe mediawiki has colorizers to do that; see Syntax highlighting extensions. Maybe you can ping Richard and ask him to install one.
Jwalton (talk) 03:24, 29 July 2019 (UTC)