add support for elliptic curves over binary fields
[openssl.git] / crypto / cryptlib.h
index a0489e57fc9d9334272f8bdf39bde1bfdf24a335..88e4ae509f45155eb27108c1a048cc277a65f160 100644 (file)
@@ -89,6 +89,10 @@ extern "C" {
 #define X509_CERT_DIR_EVP        "SSL_CERT_DIR"
 #define X509_CERT_FILE_EVP       "SSL_CERT_FILE"
 
+/* size of string represenations */
+#define DECIMAL_SIZE(type)     ((sizeof(type)*8+2)/3+1)
+#define HEX_SIZE(type)         ((sizeof(type)*2)
+
 #ifdef  __cplusplus
 }
 #endif