anchor.diff:                      {Key2B, IV2B} =
                           hmac_key_iv(
                             HmacAlgo, SharedSecret, [R2B, R3A], KeyLen, IVLen),
  -                    RecvParams = Params#params{key = Key2B, iv = IV2B},
  +                    RecvParams =
  +                        Params#params{
  +                          shared_secret = SharedSecret,
  +                          key = Key2B, iv = IV2B},
                       %%
                       {SendParams, RecvParams, StartMsg}
               end
  
positive.code:          dist_handle,
           hmac_algorithm = sha256,
           aead_cipher = aes_gcm,
           iv = 12,
           key = 16,
           tag_len = 16,
  
negative.code:                     {Key_1, <<IVSalt:IVSaltLen/binary, IVNo:48>>} =
                          hmac_key_iv(
                            Params#params.hmac_algorithm,
                            SharedSecret, R, KeyLen, IVLen),
                      Params#params{iv = {IVSalt, IVNo}, key = Key_1};
                  _ ->
                      error
  