From d80a87da48b00c4e41da71a1b46309825906a0c5 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Thu, 1 Dec 2016 12:50:10 +0000 Subject: [PATCH] add new EC errors --- Crypto/Error/Types.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Crypto/Error/Types.hs b/Crypto/Error/Types.hs index dff0c8b..edaf654 100644 --- a/Crypto/Error/Types.hs +++ b/Crypto/Error/Types.hs @@ -34,6 +34,10 @@ data CryptoError = | CryptoError_SecretKeyStructureInvalid | CryptoError_PublicKeySizeInvalid | CryptoError_SharedSecretSizeInvalid + -- elliptic cryptography error + | CryptoError_PointSizeInvalid + | CryptoError_PointFormatInvalid + | CryptoError_PointFormatUnsupported -- Message authentification error | CryptoError_MacKeyInvalid | CryptoError_AuthenticationTagSizeInvalid