<div dir="ltr">Tx Jsesper for your guidance. But still I cannot do that & error came for below line<div>EncryptMsg = crypto:private_encrypt(rsa, Msg, ECPrivateKey, rsa_no_padding),<br></div><div>here attached sample file. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 5, 2021 at 7:39 PM Jesper Louis Andersen <<a href="mailto:jesper.louis.andersen@gmail.com" target="_blank">jesper.louis.andersen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">One particular problem is that `public_key:encrypt_private` is the RSA algorithm, and not ECC. You need `crypto:private_encrypt/4` if you want to do ECC.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 5, 2021 at 4:38 AM Sanath Prasanna <<a href="mailto:ahe.sanath@gmail.com" target="_blank">ahe.sanath@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Tx Jesper for your kind response. Here attached my sample test file & following one is not working. That is the expected other Encoding scheme. (ShaXxxx)<div>EncryptMsg = public_key:encrypt_private(Msg, ECPublicKey), (line 64)<br></div><div>Can you give some guide to over come this ?</div><div>br,</div><div>Robert</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 4, 2021 at 8:48 PM Jesper Louis Andersen <<a href="mailto:jesper.louis.andersen@gmail.com" target="_blank">jesper.louis.andersen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif">On Sun, May 2, 2021 at 1:33 PM Sanath Prasanna <<a href="mailto:ahe.sanath@gmail.com" target="_blank">ahe.sanath@gmail.com</a>> wrote:</span><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>I want to encrypt a text message using ECC & need to decrypt. Can someone give me a sample for that process ?</div><div></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">You will probably have to give more information.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">There are several different types of ECC methods, and inside these, there are a couple of different elliptic curves you can choose from, and some of them are standardized requirements for certain applications.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Furthermore, ECC is often used as a tool in a larger toolbox. It's used to agree on a (shared) secret key for an underlying block or stream cipher, and in some situations also for agreeing on message authentication (which protects the message integrity against tampering).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Getting this toolbox / tooling construction wrong can result in the proposed solution being insecure, so beware.</div><br></div></div><div><br></div>-- <br><div dir="ltr">J.</div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">J.</div>
</blockquote></div>