wolfSSL / wolfEngine

wolfCrypt and wolfCrypt FIPS engine for OpenSSL
https://www.wolfssl.com
GNU General Public License v3.0
23 stars 26 forks source link

New API for creating AES object in WolfCrypt library #217

Open IldarAbdullin-okta opened 1 month ago

IldarAbdullin-okta commented 1 month ago

Hello,

In my C# project I would like to use AES GCM APIs without creating extra native library. In order to use AES APIs directly I need a way how to create Aes object, so ideally I need some wc_AesGcmNew function that creates an object for me

Proposal: Add new API:

WOLFSSL_API Aes*  wc_AesGcmNew();

Function creates and initializes Aes object

After that I can call: wc_AesGcmSetKey wc_AesGcmEncrypt

Thank you!

dgarske commented 1 month ago

Hi @IldarAbdullin-okta , should this feature request be filed in the wolfSSL repo? I'd like to see this added to our C# wrapper as well. I started some wolfCrypt C# interfaces in this PR -> https://github.com/wolfSSL/wolfssl/pull/3166 but haven't been able to expand it.

IldarAbdullin-okta commented 1 month ago

Hi @dgarske ,

Should I move this request to WolfSSL repo? When do you think new API will be available? Any ETA?

Ildar

dgarske commented 2 weeks ago

Hi @IldarAbdullin-okta ,

I have assigned this feature to @aidangarske to work on. Is AES GCM in the C Sharp layer still something you are interested in?

Thanks, David Garske, wolfSSL

IldarAbdullin-okta commented 2 weeks ago

Hi @dgarske ,

Simplified AES GCM C APIs is something that we would like to use in our C# layer. Thanks for taking this into work, much appreciated!

Ildar

dgarske commented 2 days ago

FYI: The AES GCM support has been added in PR https://github.com/wolfSSL/wolfssl/pull/3166. @IldarAbdullin-okta please give it a try and let us know if you have any feedback.