Browse Source

Fix a typo

pull/1193/head
Max Lv 7 years ago
parent
commit
68929513d3
1 changed files with 1 additions and 1 deletions
  1. 2
      src/stream.c

2
src/stream.c

@ -497,7 +497,7 @@ stream_decrypt(buffer_t *ciphertext, cipher_ctx_t *cipher_ctx, size_t capacity)
plaintext->len = ciphertext->len;
if (!cipher_ctx->init) {
if (plaintext->len <= nonce_len)
if (ciphertext->len <= cipher->nonce_len)
return CRYPTO_ERROR;
uint8_t *nonce = cipher_ctx->nonce;

Loading…
Cancel
Save