summaryrefslogtreecommitdiff
path: root/nist/encrypt.c
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-12-18 14:49:31 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-12-18 14:49:31 +0100
commit7378e4934fd0da6204a2c099a7602d51cc675bbd (patch)
tree3f567a2cdb317e39e2946dee622a25dfa7734bb0 /nist/encrypt.c
parent8ebfbf8d7dae9fff9dec033f3712c437ffd828a9 (diff)
downloadlilliput-ae-implem-7378e4934fd0da6204a2c099a7602d51cc675bbd.tar.xz
Correction du code de retour du déchiffrement
Diffstat (limited to 'nist/encrypt.c')
-rw-r--r--nist/encrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nist/encrypt.c b/nist/encrypt.c
index a33a2f5..d402d53 100644
--- a/nist/encrypt.c
+++ b/nist/encrypt.c
@@ -40,7 +40,7 @@ int crypto_aead_decrypt(
);
if (!valid)
- return 1;
+ return -1;
*mlen = tagless_len;