Merge pull request #13 from miracl/update_crypto

Update crypto. Added MPIN_ to some function names.
diff --git a/README.md b/README.md
index d30191b..e18610a 100644
--- a/README.md
+++ b/README.md
@@ -29,11 +29,9 @@
 
 ### Building the Milagro Crypto Libraries
 
-Clone the [_milagro-crypto_ repository](https://github.com/miracl/milagro-crypto) and checkout tag `1.0.0`.
+Clone the [_milagro-crypto_ repository](https://github.com/miracl/milagro-crypto) 
 ```
 > git clone https://github.com/miracl/milagro-crypto.git
-> cd milagro-crypto
-> git checkout tags/1.0.0
 ``` 
 Follow the instructions for your platform from the milagro-crypto [README file](https://github.com/miracl/milagro-crypto/blob/master/README.md#build-instructions).
 
diff --git a/lib/crypto.py b/lib/crypto.py
index b26ef6e..b3c87e1 100644
--- a/lib/crypto.py
+++ b/lib/crypto.py
@@ -47,7 +47,7 @@
 
     # random number generator
     RNG = mpin.ffi.new('csprng*')
-    mpin.libmpin.CREATE_CSPRNG(RNG, SEED)
+    mpin.libmpin.MPIN_CREATE_CSPRNG(RNG, SEED)
 
     return RNG
 
@@ -129,7 +129,7 @@
     CIPHERTEXT[0].val = CIPHERTEXT_val
     CIPHERTEXT[0].max = len(plaintext)
 
-    mpin.libmpin.AES_GCM_ENCRYPT(AES_KEY, IV, HEADER, PLAINTEXT, CIPHERTEXT, TAG)
+    mpin.libmpin.MPIN_AES_GCM_ENCRYPT(AES_KEY, IV, HEADER, PLAINTEXT, CIPHERTEXT, TAG)
     IV_hex = mpin.toHex(IV)
     CIPHERTEXT_hex = mpin.toHex(CIPHERTEXT)
     TAG_hex = mpin.toHex(TAG)
@@ -181,7 +181,7 @@
     TAG[0].max = mpin.PAS
 
     # Decrypt ciphertext
-    mpin.libmpin.AES_GCM_DECRYPT(AES_KEY, IV, HEADER, CIPHERTEXT, PLAINTEXT, TAG)
+    mpin.libmpin.MPIN_AES_GCM_DECRYPT(AES_KEY, IV, HEADER, CIPHERTEXT, PLAINTEXT, TAG)
 
     return mpin.toHex(TAG), mpin.toHex(PLAINTEXT)