[strongSwan] need for openssl plugin use case

Andreas Steffen andreas.steffen at strongswan.org
Wed Oct 5 16:25:24 CEST 2016


Hi Ravi,

the crypto and signature functions are registered by the
openssl_plugin.c code, e.g. via the openssl_crypter_create()
function

 
https://github.com/strongswan/strongswan/blob/master/src/libstrongswan/plugins/openssl/openssl_plugin.c#L332

or the openssl_rsa_private_key_load() function

 
https://github.com/strongswan/strongswan/blob/master/src/libstrongswan/plugins/openssl/openssl_plugin.c#L470

crypters are instantiated using the global method

    lib->crypto->crypter_create()

made available by libstrongswan. An example can be found here:

 
https://github.com/strongswan/strongswan/blob/master/scripts/aes-test.c#L409

RSA private keys can be instantiated using the global method

    lib->creds->create()

made available by libstrongswan. An example can be found here:

https://github.com/strongswan/strongswan/blob/master/scripts/pubkey_speed.c#L85

Hope this helps.

Andreas

On 05.10.2016 15:29, Ravi Kanth Vanapalli wrote:
> Hi,
>      I have one query regarding the use of openssl plugin.
>      I want to write an android plugin which makes use of strongswan
> openssl plugin more specifically I was looking to use
> 'openssl_rsa_private_key_load' in openssl.
>
>  From the link below
> https://wiki.strongswan.org/projects/strongswan/wiki/Pluginlist
>
> openssl		s	Crypto backend based on OpenSSL, provides
> RSA/ECDSA/DH/ECDH/ciphers/hashers/HMAC/X.509/CRL/RNG
>
>
>
> But in the strongswan-master code repo, i see no reference to open-ssl
> plugin .
>
> eg. openssl_crypter_create function in openssl_crypter.c
>
> I am expecting this crypter to be created in someother module which
> needs to encrypt.
> I see no references to any code calling openssl_crypter_create.
>
> Kindly provide me code references how to use API's provided by openssl
> plugin.
> Any sample example would be highly appreciated.
>
> --
> Regards,
> RaviKanth
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.strongswan.org
> https://lists.strongswan.org/mailman/listinfo/users
>

-- 
======================================================================
Andreas Steffen                         andreas.steffen at strongswan.org
strongSwan - the Open Source VPN Solution!          www.strongswan.org
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)
===========================================================[ITA-HSR]==

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3859 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.strongswan.org/pipermail/users/attachments/20161005/a91afec8/attachment.bin>


More information about the Users mailing list