27.05.2005 14:46:04Simulate RSA using CryptoAPI Ответов: 1
SmaPK
I have a function named "RSA" and want to simulate it;

is it possible to simulate with CryptoAPI? What should be the command sequence ? Can anybody help me?

RSA (
BYTE* message,
BYTE* exponent,
BYTE* modulo,
);


Sample data and output is
[in] message = "00DF9B8FCB6E4DC4E8A3CF59100392513561E15BD86E91281BB39C34FCCAD132B68F9BDD268C27D10F0FD7A2143E1360FB56743333411EA2FAB7BC3CBF49FA8D63779648DF4A527A824E1E8B1286FBAEBEB617861A1842C84D37B7FEB03F7F1C7CC484B081ED3952AC485BC2D5A5A441DCEC2919193848F0DAA5F3FE6F562804"
[in] exponent =
"03"
[in] modulo = "A653EAC1C0F786C8724F737F172997D63D1C3251C44402049B865BAE877D0F398CBFBE8A6035E24AFA086BEFDE9351E54B95708EE672F0968BCD50DCE40F783322B2ABA04EF137EF18ABF03C7DBC5813AEAEF3AA7797BA15DF7D5BA1CBAF7FD520B5A482D8D3FEE105077871113E23A49AF3926554A70FE10ED728CF793B62A1" cikis

[out] RSA =
"6A02550472FF12080001ED01018001BC3A1D1E1D1A7F829068BF4A5518EA2EE8EAF6443E0CF12A9191ACB0252729B22E09B8FACC348C3FAF7E981ABC1E938E35BA58B77E8D764A63B9A36FC3F130695A1D664B2C6E04F4A7DA1F74D63A462461C9CB050DCA61A5D2A8B59D2A7DBBB436DE1D9C94495D78883090C6DF5766B8BC"


I tryed to import given modulo with given exponent into PublicKeyBLOB but could not success encryption. Also I couldnt understand the this function encrypt or decrypt message. Any suggestions?

Thanks,
 
Ответы:
27.05.2005 14:58:05Yury
May be this link:
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q228/7/86.ASP&NoWebContent=1