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@lists.strongswan.org https://lists.strongswan.org/mailman/listinfo/users
-- ====================================================================== Andreas Steffen andreas.stef...@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]==
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Users mailing list Users@lists.strongswan.org https://lists.strongswan.org/mailman/listinfo/users