libcrypto.so.0.9.7

Hi Can anyone tell me the use of libcrypto.so.0.9.7 ? I know it is used for SSH. Also is there a way to look into the content of these jars?

Also is there a way to uncompress the same?

i tried

# uncompress libcrypto.so.0.9.7

libcrypto.so.0.9.7.Z: No such file or directory

# jar xvf libcrypto.so.0.9.7

Both didn't work

libcrypto.so is a shared library - not a Java jar. From the OpenSSl documentation:

OVERVIEW

libcrypto consists of a number of sub-libraries that implement the individual algorithms.

The functionality includes symmetric encryption, public key cryptography and key agreement, certificate handling, cryptographic hash functions and a cryptographic pseudo-random number generator.

SYMMETRIC CIPHERS

blowfish\(3\), cast\(3\), des\(3\), idea\(3\), rc2\(3\), rc4\(3\), rc5\(3\)

PUBLIC KEY CRYPTOGRAPHY AND KEY AGREEMENT

dsa\(3\), dh\(3\), rsa\(3\)

CERTIFICATES

x509\(3\), x509v3\(3\)

AUTHENTICATION CODES, HASH FUNCTIONS

hmac\(3\), md2\(3\), md4\(3\), md5\(3\), mdc2\(3\), ripemd\(3\), sha\(3\)

AUXILIARY FUNCTIONS

err\(3\), threads\(3\), rand\(3\), OPENSSL\_VERSION_NUMBER\(3\)

INPUT/OUTPUT, DATA ENCODING

asn1\(3\), bio\(3\), evp\(3\), pem\(3\), pkcs7\(3\), pkcs12\(3\)

INTERNAL FUNCTIONS

bn\(3\), buffer\(3\), lhash\(3\), objects\(3\), stack\(3\), txt_db\(3\)

There are lots of tools you can use to "see" what is in the library. The most useful to start with is probably nm.

1 Like

I have two lybcrypto files(Standard SUN and a third party one) . I want to compare the difference between them.

The results of cksum on the SUN one is
#cksum libcrypto.so.0.9.7
26732524211452916

and on the third party one is
#cksum libcrypto.so.0.9.7
17102110681627828

With

/usr/ccs/bin/nm libcrypto.so.0.9.7

you can get the symbol table of the shared library. Look at the entries with type FUNC and binding GLOB, these are the functions defined in the library.

I have already tried the " nm ". The results didn't make much sense :frowning:

Maybe the documentation of libcrypto at OpenSSL: Documents, crypto(3) helps.

What kind of differences are you expecting comparing two binary files ?
You might try "dump", "elfdump", "mcs" to analyze them but that would be still very low level.