Reputation: 126
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
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
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