Author Topic: How do apps work?  (Read 12241 times)

0 Members and 2 Guests are viewing this topic.

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: How do apps work?
« Reply #15 on: March 24, 2011, 10:39:01 am »
Why does it have to be signed? (I've never understood the whole signing thing with apps)
If it is only checked on the recieving end, it might also have to do with checksum validation (to check whether the app made it to the other side unscathed, since that's a lot of bytes to transfer).
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: How do apps work?
« Reply #16 on: March 24, 2011, 10:47:14 am »
One reason for the trials is that back when TI was selling Apps, people wanted to release trial versions of their software. After the trials were used up, the app couldn't be used and the customer would need to buy the official version made with official software and with a special signature.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: How do apps work?
« Reply #17 on: March 24, 2011, 11:17:58 am »
TI pretty much gave up on paid apps though :D

And just a point of clarification for the original question: Remember that code can be executed from any location between $0000 and $BFFF (but not $C000 and beyond, which cause a RAM clear for security purposes). Flash pages are usually switched in to the area between $4000 and $7FFF, so it runs fine. You could even switch it into $8000-$BFFF (instead of the usual RAM page that's there) and it would still run. Pointers would get messed up though, of course.




Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: How do apps work?
« Reply #18 on: March 24, 2011, 11:20:33 am »
I'm just curious about what these "security reasons" are that I keep hearing about...

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: How do apps work?
« Reply #19 on: March 24, 2011, 12:09:55 pm »
I'm just curious about what these "security reasons" are that I keep hearing about...

Security, as in keeping programs under 8 KB so no one can release awesome games :P

I think it's to protect the VAT/stack, but IMO it's really unnecessary.




Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: How do apps work?
« Reply #20 on: March 24, 2011, 12:11:05 pm »
Yeah, I don't see the necessity, either. Is it hardware that does that? I know there is a memory map mode that doesn't do this...

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: How do apps work?
« Reply #21 on: March 24, 2011, 06:29:49 pm »
Why does it have to be signed? (I've never understood the whole signing thing with apps)
If they are signed (I have no idea if they are) it would be to control who could make programs.
It has to be signed to make sure it's a "valid" source.  Before, when TI made paid apps, those required a special key.  The free key 0104 was released, and so, we use that to make apps.

Yeesh. So is it possible to sign an app on calc, or does it have to be done on a computer?
It's quite possible to be done on-calc, it would just take forever and ever.  There was a program made to sign axe apps.  It takes like 10 minutes, IIRC.  You're dealing with 256 and 512 bit numbers here, though.

Yeah, I don't see the necessity, either. Is it hardware that does that? I know there is a memory map mode that doesn't do this...
I believe it mostly has to do with how the chip is set up for flash and ram.  In one memory map mode, you have page 0 in 0000-3FFF, some flash page in 4000-7FFF, a ram page (82 I think) in 8000-BFFF, and ram page 0 (81 or 80, I can't remember) in C000-FFFF.

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: How do apps work?
« Reply #22 on: March 24, 2011, 06:31:47 pm »
You know, I have a question. Why is it that the filesize of an App on the computer is always several times bigger that what it will actually be on the calc?
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: How do apps work?
« Reply #23 on: March 24, 2011, 06:33:20 pm »
You know, I have a question. Why is it that the filesize of an App on the computer is always several times bigger that what it will actually be on the calc?
Because there's more stuff on the computer than there is on the calc.  There's header stuff for the app and more.  I don't know why it would be several times bigger, though.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: How do apps work?
« Reply #24 on: March 24, 2011, 06:38:03 pm »
512 bit numbers--now those are some bignums. O.O
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Ashbad

  • Guest
Re: How do apps work?
« Reply #25 on: March 24, 2011, 06:39:47 pm »
not as big as 65536 bit numbers >:D

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: How do apps work?
« Reply #26 on: March 24, 2011, 06:51:23 pm »
Which are not as big as 10^(10^100
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: How do apps work?
« Reply #27 on: March 24, 2011, 09:55:33 pm »
Yeah, I don't see the necessity, either. Is it hardware that does that? I know there is a memory map mode that doesn't do this...
I believe it mostly has to do with how the chip is set up for flash and ram.  In one memory map mode, you have page 0 in 0000-3FFF, some flash page in 4000-7FFF, a ram page (82 I think) in 8000-BFFF, and ram page 0 (81 or 80, I can't remember) in C000-FFFF.
Yeah, in the second memory map mode, page 0 is in 0000-3FFF and if page x is in 4000-7FFF, then x+1 is in 8000-BFFF and then whatever other page you load goes into C000-FFFF (at least I believe that is how it works... I haven't experimented with it yet :D)
You know, I have a question. Why is it that the filesize of an App on the computer is always several times bigger that what it will actually be on the calc?
Because there's more stuff on the computer than there is on the calc.  There's header stuff for the app and more.  I don't know why it would be several times bigger, though.
It is because the data in the App is stored as hexadecimal instead of bytes, so it should be over twice the size of the actual code. There are about 9 or 10 bytes (I forget) before the actual hex data and then I think there are either 16 or 32 bytes of code following (32 or 64 hex digits).

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: How do apps work?
« Reply #28 on: March 25, 2011, 03:16:03 am »
I don't really even understand how the signing works, so I don't really get what would have to be done to sign an app on calc. Why would anything ever need to use 512 bit numbers except for high decimal precision?
There's something about Tuesday...


Pushpins 'n' stuff...


Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: How do apps work?
« Reply #29 on: March 25, 2011, 02:54:58 pm »
I don't really even understand how the signing works, so I don't really get what would have to be done to sign an app on calc. Why would anything ever need to use 512 bit numbers except for high decimal precision?
For security reasons.  The object of cracking the the signature is finding the private key from the public key.  I think I do pretty well in documenting it here. Note, TL;DR: Factoring larger integers is exponentially harder.
« Last Edit: March 25, 2011, 02:55:25 pm by graphmastur »