diff --git a/src/aead.c b/src/aead.c index 3196880a..b7f9b34e 100644 --- a/src/aead.c +++ b/src/aead.c @@ -635,6 +635,7 @@ aead_decrypt(buffer_t *ciphertext, cipher_ctx_t *cipher_ctx, size_t capacity) aead_cipher_ctx_set_key(cipher_ctx, 0); if (cache_key_exist(nonce_cache, (char *)cipher_ctx->salt, salt_len)) { + LOGE("crypto: AEAD: repeat salt detected"); bfree(ciphertext); return CRYPTO_ERROR; } else { diff --git a/src/stream.c b/src/stream.c index 335deb61..40b7877e 100644 --- a/src/stream.c +++ b/src/stream.c @@ -507,6 +507,7 @@ stream_decrypt(buffer_t *ciphertext, cipher_ctx_t *cipher_ctx, size_t capacity) if (cipher->method >= RC4_MD5) { if (cache_key_exist(nonce_cache, (char *)nonce, nonce_len)) { + LOGE("crypto: stream: repeat IV detected"); bfree(ciphertext); return -1; } else {