os/ossrv/ossrv_pub/cryptogaphy_related_api/inc/stdapis/crypt.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/cryptogaphy_related_api/inc/stdapis/crypt.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,46 @@
     1.4 +/* LINTLIBRARY */
     1.5 +/*
     1.6 + * © Portions copyright (c) 2005-2006 Nokia Corporation.
     1.7 + * All rights reserved.
     1.8 + * Copyright (c) 1999
     1.9 + *      Mark Murray.  All rights reserved.
    1.10 + *
    1.11 + * Redistribution and use in source and binary forms, with or without
    1.12 + * modification, are permitted provided that the following conditions
    1.13 + * are met:
    1.14 + * 1. Redistributions of source code must retain the above copyright
    1.15 + *    notice, this list of conditions and the following disclaimer.
    1.16 + * 2. Redistributions in binary form must reproduce the above copyright
    1.17 + *    notice, this list of conditions and the following disclaimer in the
    1.18 + *    documentation and/or other materials provided with the distribution.
    1.19 + *
    1.20 + * THIS SOFTWARE IS PROVIDED BY MARK MURRAY AND CONTRIBUTORS ``AS IS'' AND
    1.21 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.22 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.23 + * ARE DISCLAIMED.  IN NO EVENT SHALL MARK MURRAY OR CONTRIBUTORS BE LIABLE
    1.24 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.25 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    1.26 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.27 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.28 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.29 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.30 + * SUCH DAMAGE.
    1.31 + *
    1.32 + * $FreeBSD: src/lib/libcrypt/crypt.h,v 1.8 2003/06/02 19:29:27 markm Exp $
    1.33 + *
    1.34 + */
    1.35 +
    1.36 +/* magic sizes */
    1.37 +#define MD4_SIZE 16
    1.38 +#define MD5_SIZE 16
    1.39 +
    1.40 +
    1.41 +#if (defined(__SYMBIAN32__) && !defined(SYMBIAN))
    1.42 +#define SYMBIAN
    1.43 +#endif
    1.44 +
    1.45 +
    1.46 +char *crypt_des(const char *pw, const char *salt);
    1.47 +char *crypt_md5(const char *pw, const char *salt);
    1.48 +
    1.49 +extern void _crypt_to64(char *s, u_long v, int n);