Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mdc2(3ssl) [v7 man page]

mdc2(3SSL)							      OpenSSL								mdc2(3SSL)

NAME
MDC2, MDC2_Init, MDC2_Update, MDC2_Final - MDC2 hash function SYNOPSIS
#include <openssl/mdc2.h> unsigned char *MDC2(const unsigned char *d, unsigned long n, unsigned char *md); int MDC2_Init(MDC2_CTX *c); int MDC2_Update(MDC2_CTX *c, const unsigned char *data, unsigned long len); int MDC2_Final(unsigned char *md, MDC2_CTX *c); DESCRIPTION
MDC2 is a method to construct hash functions with 128 bit output from block ciphers. These functions are an implementation of MDC2 with DES. MDC2() computes the MDC2 message digest of the n bytes at d and places it in md (which must have space for MDC2_DIGEST_LENGTH == 16 bytes of output). If md is NULL, the digest is placed in a static array. The following functions may be used if the message is not completely stored in memory: MDC2_Init() initializes a MDC2_CTX structure. MDC2_Update() can be called repeatedly with chunks of the message to be hashed (len bytes at data). MDC2_Final() places the message digest in md, which must have space for MDC2_DIGEST_LENGTH == 16 bytes of output, and erases the MDC2_CTX. Applications should use the higher level functions EVP_DigestInit(3) etc. instead of calling the hash functions directly. RETURN VALUES
MDC2() returns a pointer to the hash value. MDC2_Init(), MDC2_Update() and MDC2_Final() return 1 for success, 0 otherwise. CONFORMING TO
ISO/IEC 10118-2, with DES SEE ALSO
sha(3), EVP_DigestInit(3) HISTORY
MDC2(), MDC2_Init(), MDC2_Update() and MDC2_Final() are available since SSLeay 0.8. 1.0.1e 2013-02-11 mdc2(3SSL)

Check Out this Related Man Page

mdc2(3SSL)							      OpenSSL								mdc2(3SSL)

NAME
MDC2, MDC2_Init, MDC2_Update, MDC2_Final - MDC2 hash function SYNOPSIS
#include <openssl/mdc2.h> unsigned char *MDC2(const unsigned char *d, unsigned long n, unsigned char *md); int MDC2_Init(MDC2_CTX *c); int MDC2_Update(MDC2_CTX *c, const unsigned char *data, unsigned long len); int MDC2_Final(unsigned char *md, MDC2_CTX *c); DESCRIPTION
MDC2 is a method to construct hash functions with 128 bit output from block ciphers. These functions are an implementation of MDC2 with DES. MDC2() computes the MDC2 message digest of the n bytes at d and places it in md (which must have space for MDC2_DIGEST_LENGTH == 16 bytes of output). If md is NULL, the digest is placed in a static array. The following functions may be used if the message is not completely stored in memory: MDC2_Init() initializes a MDC2_CTX structure. MDC2_Update() can be called repeatedly with chunks of the message to be hashed (len bytes at data). MDC2_Final() places the message digest in md, which must have space for MDC2_DIGEST_LENGTH == 16 bytes of output, and erases the MDC2_CTX. Applications should use the higher level functions EVP_DigestInit(3) etc. instead of calling the hash functions directly. RETURN VALUES
MDC2() returns a pointer to the hash value. MDC2_Init(), MDC2_Update() and MDC2_Final() return 1 for success, 0 otherwise. CONFORMING TO
ISO/IEC 10118-2, with DES SEE ALSO
sha(3), EVP_DigestInit(3) HISTORY
MDC2(), MDC2_Init(), MDC2_Update() and MDC2_Final() are available since SSLeay 0.8. 1.0.1e 2013-02-11 mdc2(3SSL)
Man Page

6 More Discussions You Might Find Interesting

1. Solaris

Verifying Solaris CD Downloads with md5 Checksum on Ubuntu

I didn't know weather to post this in the Solaris or Linux forum so move it if necessary. In the Solaris 10 CD Download Instructions, it says: I open up a Terminal (I'm running Ubuntu Linux) and do a man on md5. It gives me this syntax: SYNOPSIS openssl dgst ... (2 Replies)
Discussion started by: Bradj47
2 Replies

2. Solaris

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... (6 Replies)
Discussion started by: flinders1323
6 Replies

3. UNIX for Dummies Questions & Answers

password protect a CSV file: better solution than ZIP password?

Hi We send *.csv with sensitive data to our customers. Our customers open those files with Excel. A new requirement is that we password protect those CSV files. I thought to pack them with ZIP and assign a password to the archive. But Solaris 10 can't encrypt ZIP files. $ zip -P... (12 Replies)
Discussion started by: slashdotweenie
12 Replies

4. Shell Programming and Scripting

Is there any option to verify size at destination end after NDM?

Hi, I am using ndmcli to send files from one solaris server to another one. I use the below one in script and verify the status. select stat det=yes pnum="$PNUM" Is there any option to automate in script in verifying destination size with source after doing NDM? :mad: (10 Replies)
Discussion started by: gthangav
10 Replies

5. Shell Programming and Scripting

Run different SQL on multiple DBs using SHELL script

Hi Experts, I have a list of Dbs.In that DBs i need to execute some sql scripts. each sql script is unique and it should run on particular DB only. For example. i have DBs like MDC20V,NDC20V,ODC20V and sql scripts like MD.sql,ND.sql,OD.sql.so MD.sql should run only in MDC20V and ND.sql should... (1 Reply)
Discussion started by: navsan420
1 Replies

6. UNIX for Dummies Questions & Answers

Finding SSL Cert Info

How do I find out the SSL cert info on the local server? How do I know if an ssl cert is installed on local server? How it was issued to? Who was the issuer? What's the expiration date? Any other relevant information? (1 Reply)
Discussion started by: scj2012
1 Replies