1   /* $RCSfile: DESCoreBlockCipher.java,v $
2    * $Revision: 1.15 $
3    * $Date: 2002/11/23 11:09:56 $
4    * $Author: uwe_guenther $
5    * $State: Exp $
6    *
7    * Created on August 3, 2001 3:49 PM
8    *
9    * Copyright (C) 2001 Uwe Guenther <uwe@cscc.de>
10   *
11   * This file is part of the jhbci JCE-ServiceProvider. The jhbci JCE-
12   * ServiceProvider is a library, written in JavaTM, that should be 
13   * used in HBCI banking applications (clients and may be servers),
14   * to do cryptographic operations.
15   *
16   * The jhbci library is free software; you can redistribute it and/or
17   * modify it under the terms of the GNU Lesser General Public
18   * License as published by the Free Software Foundation; either
19   * version 2.1 of the License, or (at your option) any later version.
20   *
21   * The jhbci library is distributed in the hope that it will be useful,
22   * but WITHOUT ANY WARRANTY; without even the implied warranty of
23   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
24   * Lesser General Public License for more details.
25   *
26   * You should have received a copy of the GNU Lesser General Public
27   * License along with this library; if not, write to the Free Software
28   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29   *
30   */
31  
32  package de.cscc.crypto.provider;
33  
34  
35  /** 
36   * DESCoreBlockCipher Interface.
37   *
38   * @author  <a href=mailto:uwe@cscc.de>Uwe G&uuml;nther</a>
39   * @version $Revision: 1.15 $
40   */
41  abstract class DESCoreBlockCipher extends BlockCipher {
42      
43      /** 
44       * Return the algorithm specific block size in bytes. These block
45       * size will be processed if one encrypt or decrypt method runs.
46       * This will be 8 bytes for all DES[ede] Block Ciphers.
47       * 
48       * @return the algorithm specific block size in bytes.
49       */
50      public int getBlockSize() {
51          
52          //DES has a block size of 8 byte or 64 bit.
53          return 8;
54      }               
55  }
56