Seed Key algorithms

Hardware and Software. If you have something to sell, post it here.
ironduke
Posts: 579
Joined: Thu Feb 13, 2020 11:32 pm
cars: Mainly GM trucks, a Cruze and an Equinox for dailys..

Re: Seed Key algorithms

Post by ironduke »

Scops12904 wrote:
ironduke wrote:
Scops12904 wrote:@In-Tech and @ironduke,
I have the algorithm from the samples. I already informed In-Tech about it. That said maybe you might want to start a separate thread, because the information that you post doesn't logically belong in this one?
Isn’t this thread seed and key algorithms? Confused as to why it doesn’t belong here? Or is just because it was posted for free? I was/am assuming that you were offering your assistance for free as I haven’t seen anyone here yet posting anything for sale, everyone was helping everyone else. I may be reading your response incorrectly, I do apologize if I am. The topic is seed and key and that is what was being discussed. Confused....
Yes, it is about seed and key algorithms in general. For free or not - logically it would be better to start another thread and name it "GM seed key algorithms for free", instead of filling this thread with details about a specific controller. Just my opinion, of course you are free to do whatever you want.
I never even saw that it was in the “for sale” section, for that I could easily see why I should have started another topic, sorry...
Scops12904
Posts: 7
Joined: Thu Jun 11, 2020 10:49 pm
cars: Ford

Re: Seed Key algorithms

Post by Scops12904 »

All is cool, guys. After all we are all here to learn from each other.
:thumbup:
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: Seed Key algorithms

Post by Gampy »

Hi all,

Looking at GM_S_K.cpp posted above I see a bit O code like I've never seen before, could someone please explain it?

Never seen "==" operator used this way.

Line #262

Code: Select all

				v15 = v16-- == 1;
And for those interested there are loop (for and while) overruns in that code. where a = 0, a<=256 is a overrun, it should be a<256.

Thanks.
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
ironduke
Posts: 579
Joined: Thu Feb 13, 2020 11:32 pm
cars: Mainly GM trucks, a Cruze and an Equinox for dailys..

Re: Seed Key algorithms

Post by ironduke »

Gampy wrote:Hi all,

Looking at GM_S_K.cpp posted above I see a bit O code like I've never seen before, could someone please explain it?

Never seen "==" operator used this way.

Line #262

Code: Select all

				v15 = v16-- == 1;
And for those interested there are loop (for and while) overruns in that code. where a = 0, a<=256 is a overrun, it should be a<256.

Thanks.

We probably should start another topic.. It was pointed out that this was in the for sale section...
As far as v15 = v16-- == 1; I have no idea why it's so convulted but it's just counting 4 loops..
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: Seed Key algorithms

Post by Gampy »

Yea, A mod could move the appropriate posts to a new thread in the appropriate forum, until then ...

Yea, it's obvious that it counts out 4 loops ...

Yea, it's different for sure ... Convoluted, well, I'll let others be the judge of that for I am not qualified to do so.

What I didn't get and it appears I do now is what the "== 1" did.

It's the same as

Code: Select all

  if(v16 == 1)
    v15 = 1;
  if(v15)
    break;
  v16--;
That IMO could be simply written as

Code: Select all

  if(v16-- == 1)
    break;
Or more clearly as

Code: Select all

  v16--;
  if(v16 == 0)
    break;
And v15 could be obliterated!

My curiosity is, is there a higher purpose to this that my dried up pea brain doesn't see ...

Not knocking ones work, just trying to learn!

Thanks ...
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
User avatar
j_ds_au
Posts: 384
Joined: Sun Jan 25, 2015 4:21 pm
Location: Sydney

Re: Seed Key algorithms

Post by j_ds_au »

C ...

Joe.
mattyjf01
Posts: 282
Joined: Wed Sep 04, 2019 8:41 pm

Re: Seed Key algorithms

Post by mattyjf01 »

.
Last edited by mattyjf01 on Wed Aug 26, 2020 6:17 pm, edited 1 time in total.
mattyjf01
Posts: 282
Joined: Wed Sep 04, 2019 8:41 pm

Re: Seed Key algorithms

Post by mattyjf01 »

.
Last edited by mattyjf01 on Wed Aug 26, 2020 6:17 pm, edited 1 time in total.
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: Seed Key algorithms

Post by Gampy »

What is this GMLAN.bin??
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
mattyjf01
Posts: 282
Joined: Wed Sep 04, 2019 8:41 pm

Re: Seed Key algorithms

Post by mattyjf01 »

.
Last edited by mattyjf01 on Wed Aug 26, 2020 6:16 pm, edited 1 time in total.
Post Reply