Difference between revisions of "Talk:Elliptic Curve Cryptography"

From OpenSSLWiki
Jump to navigationJump to search
m
Line 20: Line 20:
  
 
: I believe mediawiki has colorizers to do that; see [https://www.mediawiki.org/wiki/Category:Syntax_highlighting_extensions Syntax highlighting extensions]. Maybe you can ping Richard and ask him to install one.
 
: I believe mediawiki has colorizers to do that; see [https://www.mediawiki.org/wiki/Category:Syntax_highlighting_extensions Syntax highlighting extensions]. Maybe you can ping Richard and ask him to install one.
 +
: If there is a pain point, it will likely be CentOS. Red Hat provides ancient software (even with SCL enabled) so OpenSSL mediawiki software is old. You may have a hard time finding an acceptable extension because mediawiki is too old.
 
:
 
:
 
: [[User:Jwalton|Jwalton]] ([[User talk:Jwalton|talk]]) 03:24, 29 July 2019 (UTC)
 
: [[User:Jwalton|Jwalton]] ([[User talk:Jwalton|talk]]) 03:24, 29 July 2019 (UTC)

Revision as of 03:28, 29 July 2019

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.
If there is a pain point, it will likely be CentOS. Red Hat provides ancient software (even with SCL enabled) so OpenSSL mediawiki software is old. You may have a hard time finding an acceptable extension because mediawiki is too old.
Jwalton (talk) 03:24, 29 July 2019 (UTC)