Difference between revisions of "83Plus:BCALLs:801B"
From WikiTI
m |
|||
Line 1: | Line 1: | ||
− | + | [[Category:83Plus:BCALLs:By_Name|RSAValidate]] | |
− | + | [[Category:83Plus:BCALLs:By_Address|801B - RSAValidate]] | |
− | + | [[Category:83Plus:BCALLs:By_Name:Math|RSAValidate]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== Synopsis == | == Synopsis == | ||
− | '''Official Name:''' | + | '''Official Name:''' RSAValidate |
− | '''BCALL Address:''' | + | '''BCALL Address:''' 801B |
− | + | ||
− | + | Raises a big integer to the 17th power. | |
=== Inputs === | === Inputs === | ||
− | * [[83Plus: | + | * HL points to the signature, a [[83Plus:OS:Big_Integers|big integer]] |
− | * | + | * [[83Plus:RAM:8000|8000]] holds the modulus, another big integer |
− | + | ||
=== Outputs === | === Outputs === | ||
− | * | + | * [[83Plus:RAM:8478|OP1-OP6]] hold the plaintext, a big integer |
− | * | + | * DE points to [[83Plus:RAM:8478|OP1]] |
=== Destroys === | === Destroys === | ||
− | * | + | * All registers |
+ | * [[83Plus:RAM:8100|8100h]]: 130-byte area which the multiplication routine uses to store its result | ||
+ | * [[83Plus:RAM:8182|8182h]]: 65-byte area used as the first argument to the multiplication routine | ||
+ | * [[83Plus:RAM:81C3|81C3h]]: 65-byte area used as the second argument to the multiplication routine | ||
== Comments == | == Comments == | ||
− | This | + | This BCALL takes a large integer pointed to by HL and raises it to the 17th power (modulo the current public key.) The OS uses this to decrypt RSA signatures, such as those used for certificate blocks. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 15:33, 29 March 2005
Synopsis
Official Name: RSAValidate
BCALL Address: 801B
Raises a big integer to the 17th power.
Inputs
- HL points to the signature, a big integer
- 8000 holds the modulus, another big integer
Outputs
Destroys
- All registers
- 8100h: 130-byte area which the multiplication routine uses to store its result
- 8182h: 65-byte area used as the first argument to the multiplication routine
- 81C3h: 65-byte area used as the second argument to the multiplication routine
Comments
This BCALL takes a large integer pointed to by HL and raises it to the 17th power (modulo the current public key.) The OS uses this to decrypt RSA signatures, such as those used for certificate blocks.