How to calculate the coefficient of a rsa private key?

dummy

I have been trying to make a specific rsa private key to decode a message I have all the value (p,q,d,n,e,e1,e2) but am unable to find the coefficient as it says the formula to calculate the coefficient is (q^-1 mod p). But when I take the example of p=17 and q=11 the coefficient should be 14. But when I calculate it with calculator the coeffienct comes to be (0.0909090909). Please give me a way to calculate the coefficent or give me the coefficient for the following pair.

asn1=SEQUENCE:rsa_key

[rsa_key]
version=INTEGER:0

modulus=INTEGER:1230186684530117755130494958384962720772853569595334792197322452151726400507263657518745202199786469389956474942774063845925192557326303453731548268507917026122142913461670429214311602221240479274737794080665351419597459856902143413

pubExp=INTEGER:65537

privExp=INTEGER:703813872109751212728960868893055483396831478279095442779477323396386489876250832944220079595968592852532432488202250497425262918616760886811596907743384527001944888359578241816763079495533278518938372814827410628647251148091159553

p=INTEGER:878002287614711652531743087737814467999489

q=INTEGER:511279233373417143396810270092798736308917

e1=INTEGER:496787982169740923502343753899982600567297

e2=INTEGER:80295249215525643071102598936432783036457

coeff=INTEGER:?
uSeemSurprised

As pointed out in the comments q^-1 mod p is modular multiplicative inverse, you can read more about here : https://en.wikipedia.org/wiki/Modular_multiplicative_inverse

It is calculated using Extended Euclidean algorithm, but when the modulo value is prime like p is 17 then in this case it is easy to calculate the modular inverse by the formulae :

q^-1 mod p = (q^(p-2)) mod p (only when p is prime)

Now the answer is : (11 ^ 15) mod 17 = 4177248169415651 mod 17 = 14

Also note that the modular inverse does not exist when gcd(p, q) != 1

I think the coefficient for your query is : 457212035379609309760218035812085381175325

It may not be correct, you might need to investigate furthur.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to calculate the coefficient of a rsa private key?

From Java

How to convert a private key to an RSA private key?

From Dev

How to encrypt data with RSA private key in python?

From Dev

How to use encrypted RSA private key with PyCrypto?

From Dev

How to store RSA Private Key on android app

From Dev

How create rsa private key with passphrase in golang

From Dev

How to use encrypted RSA private key with PyCrypto?

From Dev

How to encrypt data with RSA private key in python?

From Dev

How to access RSA private key at start of an app?

From Dev

How to obtain private RSA key(private) as byte array in pgp file?

From Dev

How to obtain private RSA key(private) as byte array in pgp file?

From Dev

How to encrypt with private key and decrypt with public key in c# RSA

From Dev

How to retrieve RSA private key from wrapped key blob?

From Java

Calculate RSA key fingerprint

From Dev

RSA private key and public key

From Java

Openssh Private Key to RSA Private Key

From Dev

How to calculate the differential coefficient in c

From Dev

How to create private ssh RSA key from text file on mac?

From Dev

CryptoAPI - how to extract RSA public key from private

From Dev

How to transfer RSA public[/private] key outside the card?

From Dev

How to generate fixed length exponent of a given RSA private key in Java?

From Dev

How to bruteforce an RSA private-key's passphrase?

From Dev

How is c (encrypted message) decrypted by private key in RSA?

From Dev

How do I extract the private key components $N$ and $D$ from a private RSA key?

From Dev

How to encrypt and write RSA private key to file with PEM_Write_RSA_PrivateKey

From Java

Use RSA private key to generate public key?

From Dev

How to calculate the 'Coefficient of determination' for a linear model in R?

From Dev

How to calculate the least square coefficient error in python

From Java

Differences between "BEGIN RSA PRIVATE KEY" and "BEGIN PRIVATE KEY"

Related Related

  1. 1

    How to calculate the coefficient of a rsa private key?

  2. 2

    How to convert a private key to an RSA private key?

  3. 3

    How to encrypt data with RSA private key in python?

  4. 4

    How to use encrypted RSA private key with PyCrypto?

  5. 5

    How to store RSA Private Key on android app

  6. 6

    How create rsa private key with passphrase in golang

  7. 7

    How to use encrypted RSA private key with PyCrypto?

  8. 8

    How to encrypt data with RSA private key in python?

  9. 9

    How to access RSA private key at start of an app?

  10. 10

    How to obtain private RSA key(private) as byte array in pgp file?

  11. 11

    How to obtain private RSA key(private) as byte array in pgp file?

  12. 12

    How to encrypt with private key and decrypt with public key in c# RSA

  13. 13

    How to retrieve RSA private key from wrapped key blob?

  14. 14

    Calculate RSA key fingerprint

  15. 15

    RSA private key and public key

  16. 16

    Openssh Private Key to RSA Private Key

  17. 17

    How to calculate the differential coefficient in c

  18. 18

    How to create private ssh RSA key from text file on mac?

  19. 19

    CryptoAPI - how to extract RSA public key from private

  20. 20

    How to transfer RSA public[/private] key outside the card?

  21. 21

    How to generate fixed length exponent of a given RSA private key in Java?

  22. 22

    How to bruteforce an RSA private-key's passphrase?

  23. 23

    How is c (encrypted message) decrypted by private key in RSA?

  24. 24

    How do I extract the private key components $N$ and $D$ from a private RSA key?

  25. 25

    How to encrypt and write RSA private key to file with PEM_Write_RSA_PrivateKey

  26. 26

    Use RSA private key to generate public key?

  27. 27

    How to calculate the 'Coefficient of determination' for a linear model in R?

  28. 28

    How to calculate the least square coefficient error in python

  29. 29

    Differences between "BEGIN RSA PRIVATE KEY" and "BEGIN PRIVATE KEY"

HotTag

Archive