man pages section 3: Library Interfaces and Headers
  Search only this book
View this book in:
Download this book in PDF (1869 KB)

libmd(3LIB)

Name | Synopsis | Description | INTERFACES | Security | Files | Attributes

Name

    libmd– Message Digest library

Synopsis

    cc [ flag... ] file... -lmd [ library... ]
    #include <md4.h>
    #include <md5.h>
    #include <sha1.h>
    #include <sha2.h>

Description

    Functions in this library provide hashing routines for MD4 (RFC1320), MD5 (RFC1321), SHA1 (RFC3174), SHA256 (FIPS 180-2), SHA384 (FIPS 180-2), SHA512 (FIPS 180-2).

INTERFACES

    The shared object libmd.so.1 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces.

    MD4Final

    MD4Init

    MD4Update

    md5_calc

    MD5Final

    MD5Init

    MD5Update

    SHA1Final

    SHA1Init

    SHA1Update

    SHA2Final

    SHA2Init

    SHA2Update

     

Security

    The MD4 and MD5 algorithms are currently considered weak for cryptographic use. The algorithms should be used only for compatibility with legacy systems or protocols.

    The SHA1 algorithm is also believed to have some weaknesses. Migration to one of the SHA2 algorithms–including SHA256, SHA386 or SHA512–is highly recommended when compatibility with data formats and on wire protocols is permitted.

Files

    /lib/libmd.so.1

    shared object

    /lib/64/libmd.so.1

    64-bit shared object

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE 

    ATTRIBUTE VALUE 

    Interface Stability 

    Committed 

    MT-Level 

    MT-Safe 

SunOS 5.10  Last Revised 16 Jun 2008

Name | Synopsis | Description | INTERFACES | Security | Files | Attributes