Merge pull request #60 from emargolis/master

Added new API functions
diff --git a/uECC.c b/uECC.c
index 73bee2c..ca887fa 100644
--- a/uECC.c
+++ b/uECC.c
@@ -1464,6 +1464,10 @@
     return curve->num_words;
 }
 
+unsigned uECC_curve_num_bytes(uECC_Curve curve) {
+    return curve->num_bytes;
+}
+
 unsigned uECC_curve_num_bits(uECC_Curve curve) {
     return curve->num_bytes * 8;
 }
@@ -1472,6 +1476,10 @@
     return BITS_TO_WORDS(curve->num_n_bits);
 }
 
+unsigned uECC_curve_num_n_bytes(uECC_Curve curve) {
+    return BITS_TO_BYTES(curve->num_n_bits);
+}
+
 unsigned uECC_curve_num_n_bits(uECC_Curve curve) {
     return curve->num_n_bits;
 }
diff --git a/uECC_vli.h b/uECC_vli.h
index e432bc0..864cc33 100644
--- a/uECC_vli.h
+++ b/uECC_vli.h
@@ -136,8 +136,10 @@
 void uECC_vli_bytesToNative(uECC_word_t *native, const uint8_t *bytes, int num_bytes);
 
 unsigned uECC_curve_num_words(uECC_Curve curve);
+unsigned uECC_curve_num_bytes(uECC_Curve curve);
 unsigned uECC_curve_num_bits(uECC_Curve curve);
 unsigned uECC_curve_num_n_words(uECC_Curve curve);
+unsigned uECC_curve_num_n_bytes(uECC_Curve curve);
 unsigned uECC_curve_num_n_bits(uECC_Curve curve);
 
 const uECC_word_t *uECC_curve_p(uECC_Curve curve);