Using Openssl for eCOS platform

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jay,

Thanks for your reply.

Our requirement is as follows

1. only using openssl for authenticaion and a key wrap algorithm.  No encryption is needed.
2. For MAC alogorithm, we need to use M_SHA1 / M_SHA256
For key wrap algo, we need to use AES 128 or AES 256 algo.

Following are the steps we followed

1.  As we have eCOS platform, we just integrated the openssl files (1.0.1g) and added to them to our  makefile to build them (only .c and .h files)
2  In our applicatoin we call the openssl functions to above two functions from the openssl.

     key wrap algorithm to decrupt the session key which is received from the master.  AES_set_decrypt_key, AES_unwrap_key

     MAC algo to generate a mac value for a message (HMAC(), EVP_sha1(), EVP_sha256())

3. But during the linking stage we are getting the errors as ""undefined reference to a function "
   Example":
    openssl/openssl101g/crypto/engine/tb_rand.o(.text.ENGINE_get_default_RAND+0x8): In function `ENGINE_get_default_RAND': undefined reference to `engine_table_select'

4. Not able to figure out if there is any common setting file (to configure openssl ) so that we can enable /disable some features and services.

We tried doing the method as your had suggested.  But it seems that there is not much effect for the declaration of eCos

Request to please let us know what mistake we are making, or we have missed out any configuration.

Regards,

SSK
________________________________

From: Jay Foster-2 [via OpenSSL] [mailto:ml-node+s6102n67903h61@xxxxxxxxxxxxx]
Sent: 17 August 2016 07:53 PM
To: Sunil Kerur <skerur at grundfos.com>
Subject: Re: Using Openssl for eCOS platform

I have used the following snippet (along with some others) in the e_os.h header file:
# if defined(__ECOS)
#  define __INITIAL_POINTER_SIZE 0
#  define GETPID_IS_MEANINGLESS
#  define NO_CHMOD
#  define NO_SYSLOG
#  define HAVE_LONG_LONG 1
#  define HAVE_LONG_DOUBLE 1
#  define OPENSSL_THREADS
#  undef DEVRANDOM_EGD
# endif
The GETPID_IS_MEANINGLESS might work for you.

Jay

On 8/17/2016 2:55 AM, Devadas kk wrote:
Hi,
 Best way to do is to modify e_os.h header file.
 This file has to do with OS specific changes.

 Something like

 #ifdef ECOS
  #define getpid ecos_task_id_fn
#endif

 ecos_task_id_fn is a placed holder, find out actual function name to get process ID.
 GetThreadID is the function in NETWARE.
Regards,
Devadas

On Wed, Aug 17, 2016 at 10:28 AM, ssk1506 <[hidden email]</user/SendEmail.jtp?type=node&node=67903&i=0>> wrote:
Hi, I am using openssl on a n eCOS platform. I need only the secure authentication (no encryption needed). I integrated the openssl source code with my application. When I trying to build, I am getting some linking errors. :undefined reference to 'getpid' :undefined reference to 'RANDpoll' I am trying to find how to enable or disable the macros (switches to enable or disable a feature/service). But it seems that openssl.conf is generated from some utitlity program and from a file opensslconf.h.in<http://opensslconf.h.in> Pl. anyone suggest how to configure. Regards, SSK
________________________________
View this message in context: Using Openssl for eCOS platform<http://openssl.6102.n7.nabble.com/Using-Openssl-for-eCOS-platform-tp67892.html>
Sent from the OpenSSL - User mailing list archive<http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html> at Nabble.com.

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users




--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

________________________________
If you reply to this email, your message will be added to the discussion below:
http://openssl.6102.n7.nabble.com/Using-Openssl-for-eCOS-platform-tp67892p67903.html
To start a new topic under OpenSSL - User, email ml-node+s6102n3h61 at n7.nabble.com<mailto:ml-node+s6102n3h61 at n7.nabble.com>
To unsubscribe from Using Openssl for eCOS platform, click here<http://openssl.6102.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=67892&code=c2tlcnVyQGdydW5kZm9zLmNvbXw2Nzg5MnwtMTkzNTEzNjgzMQ==>.
NAML<http://openssl.6102.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://openssl.6102.n7.nabble.com/Using-Openssl-for-eCOS-platform-tp67892p67926.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20160818/5331f887/attachment-0001.html>


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux