Aslam
Aslam

Reputation: 126

Encryption using BouncyCastle's Elliptic Curve Crypto API in Java

I am looking for a sample code to Encrypt/decrypt a byte[] using 'ECKey' in bouncy-castle's java implimentation. Especially i need to know how to specify Algorithm, padding etc.

Thanks in Advance

Upvotes: 2

Views: 3312

Answers (2)

JavierSP1209
JavierSP1209

Reputation: 899

In BouncyCastle API is IESEngine (Integrated Encryption Scheme) that uses a BasicAgreement and KDF objects the example you can find it in ECIESTest.java. It shows in detail the use of this class.

Upvotes: 2

Maarten Bodewes
Maarten Bodewes

Reputation: 93948

For this time only, as the sample source still cannot be downloaded separately. This is just the code of the internal bouncy castle samples. Download the latest sources or look up the EC IES test here (just googled that).

Upvotes: 2

Related Questions