Java Doc for CAST5.java in  » Parser » Rats-Parser-Generators » cryptix » jce » provider » cipher » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Parser » Rats Parser Generators » cryptix.jce.provider.cipher 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


cryptix.jce.provider.cipher.BlockCipher
   cryptix.jce.provider.cipher.CAST5

CAST5
final public class CAST5 extends BlockCipher (Code)
CAST5 (a.k.a. CAST-128) in Java, as per RFC 2144.

The author, Carlisle Adams (the CA in CAST, ST standing for Stafford Tavares) describes CAST5 as:

"...a DES-like Substitution-Permutation Network (SPN) cryptosystem which appears to have good resistance to differential cryptanalysis, linear cryptanalysis, and related-key cryptanalysis. This cipher also possesses a number of other desirable cryptographic properties, including avalanche, Strict Avalanche Criterion (SAC), Bit Independence Criterion (BIC), no complementation property, and an absence of weak and semi-weak keys."

CAST5 is a symmetric block cipher with a block-size of 8 bytes and a variable key-size of up to 128 bits. Its authors and their employer (Entrust Technologies, a Nortel majority-owned company) made it available worldwide on a royalty-free basis for commercial and non-commercial uses.

The CAST5 encryption algorithm has been designed to allow a key size that can vary from 40 bits to 128 bits, in 8-bit increments (that is, the allowable key sizes are 40, 48, 56, 64, ..., 112, 120, and 128 bits. For variable keysize operation, the specification is as follows:

  1. For key sizes up to and including 80 bits (i.e., 40, 48, 56, 64, 72, and 80 bits), the algorithm is exactly as specified but uses 12 rounds instead of 16;
  2. For key sizes greater than 80 bits, the algorithm uses the full 16 rounds;
  3. For key sizes less than 128 bits, the key is padded with zero bytes (in the rightmost, or least significant, positions) out to 128 bits (since the CAST5 key schedule assumes an input key of 128 bits).

References:


version:
   $Revision: 1.1 $
author:
   Jeroen C. van Gelderen (gelderen@cryptix.org)
author:
   Raif S. Naffah (raif@cryptix.org)
since:
   Cryptix 2.2.2



Constructor Summary
public  CAST5()
    

Method Summary
protected  voidcoreCrypt(byte[] in, int inOffset, byte[] out, int outOffset)
    
protected  voidcoreInit(Key key, boolean decrypt)
     Initializes this cipher using the specified key.


Constructor Detail
CAST5
public CAST5()(Code)




Method Detail
coreCrypt
protected void coreCrypt(byte[] in, int inOffset, byte[] out, int outOffset)(Code)
Encrypt or decrypt a single data block



coreInit
protected void coreInit(Key key, boolean decrypt) throws InvalidKeyException(Code)
Initializes this cipher using the specified key.



Methods inherited from cryptix.jce.provider.cipher.BlockCipher
final public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
abstract void coreCrypt(byte[] in, int inOffset, byte[] out, int outOffset)(Code)(Java Doc)
int coreGetBlockSize()(Code)(Java Doc)
abstract void coreInit(Key key, boolean decrypt) throws InvalidKeyException(Code)(Java Doc)
final protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException(Code)(Java Doc)
final protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException(Code)(Java Doc)
final protected int engineGetBlockSize()(Code)(Java Doc)
final protected byte[] engineGetIV()(Code)(Java Doc)
protected int engineGetKeySize(Key key) throws InvalidKeyException(Code)(Java Doc)
final protected int engineGetOutputSize(int inputLen)(Code)(Java Doc)
final protected AlgorithmParameters engineGetParameters()(Code)(Java Doc)
final protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException(Code)(Java Doc)
final protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException(Code)(Java Doc)
final protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException(Code)(Java Doc)
final protected void engineSetMode(String mode) throws NoSuchAlgorithmException(Code)(Java Doc)
final protected void engineSetPadding(String padding) throws NoSuchPaddingException(Code)(Java Doc)
final protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException(Code)(Java Doc)
final protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.