created why2_chat_rsa_pri_decrypt
This commit is contained in:
parent
2a9df2a4b9
commit
9cf062565a
@ -42,6 +42,7 @@ char *why2_get_chat_modulus(void); //GET THE RSA MODULUS
|
|||||||
char *why2_get_chat_d(void); //GET THE RSA d
|
char *why2_get_chat_d(void); //GET THE RSA d
|
||||||
|
|
||||||
char *why2_chat_rsa_pub_encrypt(long to_encrypt); //RSA ENCRYPT USING PUBLIC KEY
|
char *why2_chat_rsa_pub_encrypt(long to_encrypt); //RSA ENCRYPT USING PUBLIC KEY
|
||||||
|
char *why2_chat_rsa_pri_decrypt(long to_decrypt); //RSA DECRYPT USING PRIVATE KEY
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -198,3 +198,8 @@ char *why2_chat_rsa_pub_encrypt(long to_encrypt)
|
|||||||
{
|
{
|
||||||
return exp_mod(to_encrypt, WHY2_CHAT_RSA_EXPONENT);
|
return exp_mod(to_encrypt, WHY2_CHAT_RSA_EXPONENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *why2_chat_rsa_pri_decrypt(long to_decrypt)
|
||||||
|
{
|
||||||
|
return exp_mod(to_decrypt, why2_get_chat_d());
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user