what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ice-doc-C++.html

ice-doc-C++.html
Posted Dec 21, 1999

ice-doc-C++.html

tags | java, encryption, steganography
SHA-256 | e3004805cd295faf3c3e9ff4587c261440c40c632918ae1fb16b461efbedabcb

ice-doc-C++.html

Change Mirror Download
<HTML>
<HEAD><TITLE>The C++ ICE Encryption Class</TITLE></HEAD>
<BODY BGCOLOR="#d8d8d8" TEXT="#000080" LINK="#0000FF">

<H1>The C++ ICE Encryption Class</H1>

<H3>Synopsis</H3>

<DL>
<DD> <CODE>#include <IceKey.H></CODE>
<BR><BR>
<DD> <CODE>IceKey::IceKey (int level)</CODE>
<BR><BR>
<DD> <CODE>IceKey::~IceKey ();</CODE>
<BR><BR>
<DD> <CODE>void IceKey::set (const unsigned char *key);</CODE>
<BR><BR>
<DD> <CODE>unsigned char *IceKey::encrypt (const unsigned char *plaintext,
unsigned char *ciphertext) const;</CODE>
<BR><BR>
<DD> <CODE>unsigned char *IceKey::decrypt (const unsigned char *ciphertext,
unsigned char *plaintext) const;</CODE>
<BR><BR>
<DD> <CODE>int IceKey::keySize () const;</CODE>
<BR><BR>
<DD> <CODE>int IceKey::blockSize () const;</CODE>
</DL>

<H3>Description</H3>
<P>
The <EM>IceKey</EM> class is used for encrypting and decrypting 64-bit
blocks of data with the ICE (Information Concealment Engine) encryption
algorithm. </P>
<P>
The constructor creates a new <CODE>IceKey</CODE> object that can be used
to encrypt and decrypt data. The <EM>level</EM> of encryption determines
the size of the key, and hence its speed. Level 0 uses the Thin-ICE
variant, which is an 8-round cipher taking an 8-byte key. This is the
fastest option, and is generally considered to be at least as secure
as DES, although it is not yet certain whether it is as secure as its
key size. </P>
<P>
For levels <EM>n</EM> greater than zero, a 16<EM>n</EM>-round cipher is
used, taking 8<EM>n</EM>-byte keys. Although not as fast as level 0,
these are very very secure. </P>
<P>
Before an <CODE>IceKey</CODE> can be used to encrypt data, its key
schedule must be set with the <CODE>set()</CODE> member function. The
length of the key required is determined by the level, as described above. </P>
<P>
The member functions <CODE>encrypt()</CODE> and <CODE>decrypt()</CODE>
encrypt and decrypt respectively data in blocks of eight chracters,
using the specified key. They return a pointer to the resulting
ciphertext/plaintext. </P>
<P>
Two functions <CODE>keySize()</CODE> and <CODE>blockSize()</CODE>
are provided which return the key and block size
respectively, measured in bytes. The key size is determined by
the level, while the block size is always 8. </P>
<P>
The destructor zeroes out and frees up all memory associated with the key. </P>

<HR>
<DIV ALIGN=RIGHT>
<FONT SIZE=-1>
Document written by Matthew Kwan, 25 March 1997 <BR>
Please send any comments or corrections to
<A HREF="mailto:mkwan@darkside.com.au">mkwan@darkside.com.au</A>
</FONT>
</DIV>

</BODY>
</HTML>
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close