Re: [openssl-users] Using Openssl for eCOS platform

2016-08-18 Thread ssk1506
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+s6102n67903...@n7.nabble.com]
Sent: 17 August 2016 07:53 PM
To: Sunil Kerur 
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]> 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 Pl. 
anyone suggest how to configure. Regards, SSK

View this message in context: Using Openssl for eCOS 
platform
Sent from the OpenSSL - User mailing list 
archive 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+s6102n3...@n7.nabble.com
To unsubscribe from Using Openssl for eCOS platform, click 
here.
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.-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Using Openssl for eCOS platform

2016-08-18 Thread ssk1506
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



--
View this message in context: 
http://openssl.6102.n7.nabble.com/Using-Openssl-for-eCOS-platform-tp67892p67922.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Using Openssl for eCOS platform

2016-08-17 Thread Jay Foster
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 > 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
 Pl. anyone suggest how to configure.
Regards, SSK

View this message in context: Using Openssl for eCOS platform


Sent from the OpenSSL - User mailing list archive
 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


Re: [openssl-users] Using Openssl for eCOS platform

2016-08-17 Thread Devadas kk
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  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 Pl. anyone
> suggest how to configure. Regards, SSK
> --
> View this message in context: Using Openssl for eCOS platform
> 
> Sent from the OpenSSL - User mailing list archive
>  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