anchor.diff:          crypto:crypto_one_time_aead(
             AeadCipher, Key, IV, Ciphertext, AAD, CipherTag, false)
       of
  -        <<?REKEY_CHUNK, Rest/binary>> ->
  +        <<?REKEY_CHUNK, Chunk/binary>> ->
               PubKeyLen = byte_size(PubKeyA),
  -            case Rest of
  +            case Chunk of
                   <<PubKeyB:PubKeyLen/binary>> ->
                       SharedSecret = compute_shared_secret(KeyPair, PubKeyB),
                       KeyLen = byte_size(Key),
  
positive.code:                  RecvParams_1#params{iv = {IV2BSalt, IV2BNo}}}
          end
      catch
          error : Reason : Stacktrace->
              _ = trace({Reason, Stacktrace}),
              exit(connection_closed)
      end.
  
negative.code:                           SharedSecret, [Key, IV], KeyLen, IVLen),
                      Params#params{iv = {IVSalt, IVNo}, key = Key_1};
                  _ ->
                      error_logger:error_report(
                        [?FUNCTION_NAME,
                         {reason,bad_rekey_chunk}]),
                      error
              end;
          Chunk when is_binary(Chunk) ->
              case Seq of
                  RekeyCount ->
                      %% This was one chunk too many without rekeying
                      error_logger:error_report(
                        [?FUNCTION_NAME,
                         {reason,rekey_overdue}]),
                      error;
                  _ ->
                      Chunk
              end;
          error ->
              error_logger:error_report(
                [?FUNCTION_NAME,
                 {reason,decrypt_error}]),
              error
      end.
  
  %% -------------------------------------------------------------------------
  %% Queue of binaries i.e an iovec queue
  
  deq_iovec(GetSize, Front, Size, Rear) ->
      deq_iovec(GetSize, Front, Size, Rear, []).
  %%
  