LCOV - code coverage report
Current view: top level - shishi/lib - crypto-md.c (source / functions) Hit Total Coverage
Test: GNU Shishi Lines: 0 8 0.0 %
Date: 2010-05-20 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 4 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* crypto-md.c --- DES crypto functions
       2                 :            :  * Copyright (C) 2002, 2003, 2004, 2007, 2008  Simon Josefsson
       3                 :            :  * Copyright (C) 2003  Free Software Foundation, Inc.
       4                 :            :  *
       5                 :            :  * This file is part of Shishi.
       6                 :            :  *
       7                 :            :  * Shishi is free software; you can redistribute it and/or modify it
       8                 :            :  * under the terms of the GNU General Public License as published by
       9                 :            :  * the Free Software Foundation; either version 3 of the License, or
      10                 :            :  * (at your option) any later version.
      11                 :            :  *
      12                 :            :  * Shishi is distributed in the hope that it will be useful, but
      13                 :            :  * WITHOUT ANY WARRANTY; without even the implied warranty of
      14                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      15                 :            :  * GNU General Public License for more details.
      16                 :            :  *
      17                 :            :  * You should have received a copy of the GNU General Public License
      18                 :            :  * along with Shishi; if not, see http://www.gnu.org/licenses or write
      19                 :            :  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
      20                 :            :  * Floor, Boston, MA 02110-1301, USA
      21                 :            :  *
      22                 :            :  */
      23                 :            : 
      24                 :            : #include "internal.h"
      25                 :            : 
      26                 :            : #include "crypto.h"
      27                 :            : 
      28                 :            : static int
      29                 :          0 : md4_checksum (Shishi * handle,
      30                 :            :               Shishi_key * key,
      31                 :            :               int keyusage,
      32                 :            :               int cksumtype,
      33                 :            :               const char *in, size_t inlen, char **out, size_t * outlen)
      34                 :            : {
      35         [ #  # ]:          0 :   if (outlen)
      36                 :          0 :     *outlen = 16;
      37                 :          0 :   return shishi_md4 (handle, in, inlen, out);
      38                 :            : }
      39                 :            : 
      40                 :            : static int
      41                 :          0 : md5_checksum (Shishi * handle,
      42                 :            :               Shishi_key * key,
      43                 :            :               int keyusage,
      44                 :            :               int cksumtype,
      45                 :            :               const char *in, size_t inlen, char **out, size_t * outlen)
      46                 :            : {
      47         [ #  # ]:          0 :   if (outlen)
      48                 :          0 :     *outlen = 16;
      49                 :          0 :   return shishi_md5 (handle, in, inlen, out);
      50                 :            : }
      51                 :            : 
      52                 :            : checksuminfo md4_info = {
      53                 :            :   SHISHI_RSA_MD4,
      54                 :            :   "rsa-md4",
      55                 :            :   16,
      56                 :            :   md4_checksum,
      57                 :            :   NULL
      58                 :            : };
      59                 :            : 
      60                 :            : checksuminfo md5_info = {
      61                 :            :   SHISHI_RSA_MD5,
      62                 :            :   "rsa-md5",
      63                 :            :   16,
      64                 :            :   md5_checksum,
      65                 :            :   NULL
      66                 :            : };

Generated by: LCOV version 1.8