diff --git a/rncryptor.cabal b/rncryptor.cabal
--- a/rncryptor.cabal
+++ b/rncryptor.cabal
@@ -1,5 +1,5 @@
 name:                rncryptor
-version:             0.3.0.1
+version:             0.3.0.2
 synopsis:            Haskell implementation of the RNCryptor file format
 description:         Pure Haskell implementation of the RNCrytor spec.
 license:             MIT
@@ -67,7 +67,7 @@
     , tasty-quickcheck
     , tasty-hunit
     , io-streams
-    , base16-bytestring
+    , base16-bytestring >= 1.0.0.0
     , cryptonite
     , text
     , bytestring-arbitrary >= 0.1.0
diff --git a/src/Crypto/RNCryptor/V3/Decrypt.hs b/src/Crypto/RNCryptor/V3/Decrypt.hs
--- a/src/Crypto/RNCryptor/V3/Decrypt.hs
+++ b/src/Crypto/RNCryptor/V3/Decrypt.hs
@@ -53,7 +53,7 @@
   put vs
   case B.unpack v of
     [x] -> return x
-    _   -> fail err
+    _   -> error err
 
 --------------------------------------------------------------------------------
 parseBSOfSize :: Int -> String -> State ByteString ByteString
@@ -62,7 +62,7 @@
   let (v,vs) = B.splitAt sz bs
   put vs
   case B.unpack v of
-    [] -> fail err
+    [] -> error err
     _ -> return v
 
 --------------------------------------------------------------------------------
diff --git a/test/PasswordBasedVectors.hs b/test/PasswordBasedVectors.hs
--- a/test/PasswordBasedVectors.hs
+++ b/test/PasswordBasedVectors.hs
@@ -27,7 +27,7 @@
 
 --------------------------------------------------------------------------------
 unhex :: ByteString -> ByteString
-unhex = fst . decode
+unhex = decodeLenient
 
 --------------------------------------------------------------------------------
 withTestVector :: TestVector -> Assertion
