anchor.diff:              case decrypt_chunk(RecvParams, RecvSeq, Chunk) of
                   <<?HANDSHAKE_CHUNK, Cleartext/binary>> ->
                       {RecvParams, RecvSeq + 1, {ok, Cleartext}};
  -                OtherChunk when is_binary(OtherChunk) ->
  -                    {RecvParams, RecvSeq + 1, {error, decrypt_error}};
  +                UnknownChunk when is_binary(UnknownChunk) ->
  +                    error_logger:error_report(
  +                      [?FUNCTION_NAME,
  +                       {reason,unknown_chunk}]),
  +                    {RecvParams, RecvSeq + 1, {error, unknown_chunk}};
                   #params{} = RecvParams_1 ->
                       recv_and_decrypt_chunk(RecvParams_1, 0);
                   error ->
  +                    error_logger:error_report(
  +                      [?FUNCTION_NAME,
  +                       {reason,decrypt_error}]),
                       {RecvParams, RecvSeq, {error, decrypt_error}}
               end;
           Error ->
  
positive.code:         crypto:crypto_one_time_aead(
            AeadCipher, Key, IV, Ciphertext, AAD, CipherTag, false)
      of
          <<?REKEY_CHUNK, Rest/binary>> ->
              PubKeyLen = byte_size(PubKeyA),
              case Rest of
                  <<PubKeyB:PubKeyLen/binary>> ->
                      SharedSecret = compute_shared_secret(KeyPair, PubKeyB),
                      KeyLen = byte_size(Key),
  
negative.code:       fun () ->
                MRef = erlang:monitor(process, Pid),
                error_logger:info_report(
                  [?FUNCTION_NAME,
                   {type, Tag},
                   {pid, Pid}]),
                receive
                    {'DOWN', MRef, _, _, normal} ->
                        error_logger:error_report(
                          [?FUNCTION_NAME,
                           {reason, normal},
                           {pid, Pid}]);
                    {'DOWN', MRef, _, _, Reason} ->
                        error_logger:info_report(
                          [?FUNCTION_NAME,
                           {reason, Reason},
                           {pid, Pid}])
                end
  