xref: /titanic_50/usr/src/man/man3lib/libmd.3lib (revision 7c1d35456b77b833f089b886b99aa431a24e1377)
te
Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
libmd 3LIB "16 Jun 2008" "SunOS 5.11" "Interface Libraries"
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.

MD4FinalMD4Init
MD4Updatemd5_calc
MD5FinalMD5Init
MD5UpdateSHA1Final
SHA1InitSHA1Update
SHA2FinalSHA2Init
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 TYPEATTRIBUTE VALUE
Interface StabilityCommitted
MT-LevelMT-Safe