You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
re: Even if main uses BLOCK_SIZE, sometimes decrypt fails
As a work-around, use BLOCK_SIZE-2.
Here's an example
[root@localhost cod]# ./rsa
---------------Private Key-----------------kp.n is [db9968423f722fccb3673d888c31b2b38e94242c6ac825a0b209f1fe25ae27e2ff4735b8c9497614fd844a495e7e4ec3f599660735f611e7d461721d78438a769902ad9ed1a1fe13609838bbd61743788f2ad60d572085a90ef6734bb11cfccbae486dfc2e25f2f826fc1a556bb1042a4cf79a8e5c3d1abeea5c486bd09076e3]
kp.e is [3]
---------------Public Key------------------ku.n is [db9968423f722fccb3673d888c31b2b38e94242c6ac825a0b209f1fe25ae27e2ff4735b8c9497614fd844a495e7e4ec3f599660735f611e7d461721d78438a769902ad9ed1a1fe13609838bbd61743788f2ad60d572085a90ef6734bb11cfccbae486dfc2e25f2f826fc1a556bb1042a4cf79a8e5c3d1abeea5c486bd09076e3]
ku.e is [3]
ku.d is [926645817fa175332244d3b05d7677225f0d6d72f1dac3c076b14bfec3c96fecaa2f7925db864eb8a902dc30e9a989d7f910eeaf794eb69a8d964c13a5825c4dd480f0427c811742e603cb35dd5c40671c136213d42c6f17e7d9ac0b2286307765df12e0dfa5bc0d45673208a9533e3a5c0a38ce0d677c8266b20b681f6d5adb]
ku.p is [f098be133be3070a6f98a1f7774473221e909a9242194aaf9f27b4bc67191b1831d9aa6c3eb1f62dc998a4c0dc19e2fba9fd0e6c17d79b36fe50f366e810055d]
ku.q is [e9a88727dafd542497f9e5f392c86fbbc67d285d56c4945594083c7e963a990063a0273e9ffb62b67548aa87919a43d718eb36ed304a44c4520043e8b95c693f]
original is [fd10da1d8b3ed30106fd8817984cef31b7261fe7efe2ac42e270aa1d4c93b9c9a495e630533ab159b8b971d006e002bd8622257684523868c2e2050ff6be599b5440cba7fafc8133b77204bd5307fbd9a821cf2d730815b56a1a4561599efcad5e49d5d846d60c7d49113c1c97b775bf58456ccc4d8202371c4799f465162344]
encrypted is [71764423503a2c98341bbcc17ec845605ea357369941ce620bd164db1a4aac5ba557aa3638eddfcbea4d446d60093ab2356313eceb0339b1de7430dc3969b7f15a10fdcee947f58d434e997d44c056939834e140c4e8e574fe17390ae97e005b943b8b4b8a6038cc03850a28bfd7fe0b24d65aec39258d7df93ff55220232ee2]
decrypted is [217771db4bcca33453964a8f0c1b3c7e2891fbbb851a86a23066b81f26e591e6a54eb07789f13b44bb352786a861b3f99088bf6f4e5c2680ee8092f27e7acf24bb3e1e09295a832056d9cc017cf0b86118f6f9201be7900c5b23d215a881ffe1b00167dc18b01985221521c72c0671950b4dd23df144e77831eb51889485ac61]
[root@localhost cod]#
The text was updated successfully, but these errors were encountered:
re: Even if main uses BLOCK_SIZE, sometimes decrypt fails
As a work-around, use BLOCK_SIZE-2.
Here's an example
[root@localhost cod]# ./rsa
---------------Private Key-----------------kp.n is [db9968423f722fccb3673d888c31b2b38e94242c6ac825a0b209f1fe25ae27e2ff4735b8c9497614fd844a495e7e4ec3f599660735f611e7d461721d78438a769902ad9ed1a1fe13609838bbd61743788f2ad60d572085a90ef6734bb11cfccbae486dfc2e25f2f826fc1a556bb1042a4cf79a8e5c3d1abeea5c486bd09076e3]
kp.e is [3]
---------------Public Key------------------ku.n is [db9968423f722fccb3673d888c31b2b38e94242c6ac825a0b209f1fe25ae27e2ff4735b8c9497614fd844a495e7e4ec3f599660735f611e7d461721d78438a769902ad9ed1a1fe13609838bbd61743788f2ad60d572085a90ef6734bb11cfccbae486dfc2e25f2f826fc1a556bb1042a4cf79a8e5c3d1abeea5c486bd09076e3]
ku.e is [3]
ku.d is [926645817fa175332244d3b05d7677225f0d6d72f1dac3c076b14bfec3c96fecaa2f7925db864eb8a902dc30e9a989d7f910eeaf794eb69a8d964c13a5825c4dd480f0427c811742e603cb35dd5c40671c136213d42c6f17e7d9ac0b2286307765df12e0dfa5bc0d45673208a9533e3a5c0a38ce0d677c8266b20b681f6d5adb]
ku.p is [f098be133be3070a6f98a1f7774473221e909a9242194aaf9f27b4bc67191b1831d9aa6c3eb1f62dc998a4c0dc19e2fba9fd0e6c17d79b36fe50f366e810055d]
ku.q is [e9a88727dafd542497f9e5f392c86fbbc67d285d56c4945594083c7e963a990063a0273e9ffb62b67548aa87919a43d718eb36ed304a44c4520043e8b95c693f]
original is [fd10da1d8b3ed30106fd8817984cef31b7261fe7efe2ac42e270aa1d4c93b9c9a495e630533ab159b8b971d006e002bd8622257684523868c2e2050ff6be599b5440cba7fafc8133b77204bd5307fbd9a821cf2d730815b56a1a4561599efcad5e49d5d846d60c7d49113c1c97b775bf58456ccc4d8202371c4799f465162344]
encrypted is [71764423503a2c98341bbcc17ec845605ea357369941ce620bd164db1a4aac5ba557aa3638eddfcbea4d446d60093ab2356313eceb0339b1de7430dc3969b7f15a10fdcee947f58d434e997d44c056939834e140c4e8e574fe17390ae97e005b943b8b4b8a6038cc03850a28bfd7fe0b24d65aec39258d7df93ff55220232ee2]
decrypted is [217771db4bcca33453964a8f0c1b3c7e2891fbbb851a86a23066b81f26e591e6a54eb07789f13b44bb352786a861b3f99088bf6f4e5c2680ee8092f27e7acf24bb3e1e09295a832056d9cc017cf0b86118f6f9201be7900c5b23d215a881ffe1b00167dc18b01985221521c72c0671950b4dd23df144e77831eb51889485ac61]
[root@localhost cod]#
The text was updated successfully, but these errors were encountered: