JCE DES Stream Ciphers Testing Program Result

This section provides results of the tutorial example on how to use DES stream ciphers provided in the JDK JCE package.

I used my testing program, JceSunDesStreamCipherTest.java, to test the cases listed in the http://www.itl.nist.gov/fipspubs/fip81.htm:

java JceSunDesStreamCipherTest 1 -- with 8-bit CFB
Key     : 0123456789ABCDEF
IV      : 1234567890ABCDEF
Message : 4E6F7720697320746865
Cipher  : F31FDA07011462EE187F
Expected: F31FDA07011462EE187F

java JceSunDesStreamCipherTest 2 -- with 64-bit CFB
Key     : 0123456789ABCDEF
IV      : 1234567890ABCDEF
Message : 4E6F77206973207468652074696D6520666F7220616C6C20
Cipher  : F3096249C7F46E51A69E839B1A92F78403467133898EA622
Expected: F3096249C7F46E51A69E839B1A92F78403467133898EA622

java JceSunDesStreamCipherTest 3 -- with 8-bit OFB
Key     : 0123456789ABCDEF
IV      : 1234567890ABCDEF
Message : 4E6F7720697320746865
Cipher  : F34A2850C9C64985D684
Expected: F34A2850C9C64985D684

java JceSunDesStreamCipherTest 4 -- with 64-bit CFB
Key     : 0123456789ABCDEF
IV      : 1234567890ABCDEF
Message : 4E6F77206973207468652074696D6520666F7220616C6C20
Cipher  : F3096249C7F46E5135F24A242EEB3D3F3D6D5BE3255AF8C3
Expected: F3096249C7F46E5135F24A242EEB3D3F3D6D5BE3255AF8C3

Outputs of all 4 test cases match well with the expected values documented in http://www.itl.nist.gov/fipspubs/fip81.htm.

Table of Contents

 About This Book

 Cryptography Terminology

 Cryptography Basic Concepts

 Introduction to AES (Advanced Encryption Standard)

 Introduction to DES Algorithm

 DES Algorithm - Illustrated with Java Programs

 DES Algorithm Java Implementation

 DES Algorithm - Java Implementation in JDK JCE

 DES Encryption Operation Modes

DES in Stream Cipher Modes

 Introducting DES Stream Cipher Modes

 CFB (Cipher FeedBack) as a Stream Cipher

 OFB (Output FeedBack) as a Stream Cipher

 CFB and OFB Stream Ciphers Implemented in JCE

 JCE DES Stream Ciphers Testing Program

JCE DES Stream Ciphers Testing Program Result

 PHP Implementation of DES - mcrypt

 Blowfish - 8-Byte Block Cipher

 Secret Key Generation and Management

 Cipher - Secret Key Encryption and Decryption

 Introduction of RSA Algorithm

 RSA Implementation using java.math.BigInteger Class

 Introduction of DSA (Digital Signature Algorithm)

 Java Default Implementation of DSA

 Private key and Public Key Pair Generation

 PKCS#8/X.509 Private/Public Encoding Standards

 Cipher - Public Key Encryption and Decryption

 MD5 Mesasge Digest Algorithm

 SHA1 Mesasge Digest Algorithm

 OpenSSL Introduction and Installation

 OpenSSL Generating and Managing RSA Keys

 OpenSSL Managing Certificates

 OpenSSL Generating and Signing CSR

 OpenSSL Validating Certificate Path

 "keytool" and "keystore" from JDK

 "OpenSSL" Signing CSR Generated by "keytool"

 Migrating Keys from "keystore" to "OpenSSL" Key Files

 Certificate X.509 Standard and DER/PEM Formats

 Migrating Keys from "OpenSSL" Key Files to "keystore"

 Using Certificates in IE (Internet Explorer)

 Using Certificates in Firefox

 Using Certificates in Google Chrome

 Outdated Tutorials

 References

 PDF Printing Version