exploit the possibilities
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 | 951e87ac163f07cb72e239044e7f9135e0b076557b4344fc68b70e61dbd0cbe0

ice-doc-C.html

Change Mirror Download
<HTML>
<HEAD><TITLE>The ICE Encryption Library</TITLE></HEAD>
<BODY BGCOLOR="#d8d8d8" TEXT="#000080" LINK="#0000FF">
<H1>The ICE Encryption Library</H1>
<H3>Synopsis</H3>

<DL>
<DD> <CODE>#include <ice.h></CODE>
<BR><BR>
<DD> <CODE>ICE_KEY *ice_key_create (int level);</CODE>
<BR><BR>
<DD> <CODE>void ice_key_destroy (ICE_KEY *ik);</CODE>
<BR><BR>
<DD> <CODE>void ice_key_set (ICE_KEY *ik, const unsigned char *key);</CODE>
<BR><BR>
<DD> <CODE>unsigned char *ice_key_encrypt (const ICE_KEY *ik,
const unsigned char *plaintext, unsigned char *ciphertext);</CODE>
<BR><BR>
<DD> <CODE>unsigned char *ice_key_decrypt (const ICE_KEY *ik,
const unsigned char *ciphertext, unsigned char *plaintext);</CODE>
<BR><BR>
<DD> <CODE>int ice_key_key_size (const ICE_KEY *ik);</CODE>
<BR><BR>
<DD> <CODE>int ice_key_block_size (const ICE_KEY *ik);</CODE>
</DL>

<H3>Description</H3>
<P>
The ICE library <B>libice.a</B> contains functions for encrypting and
decrypting 64-bit blocks of data with the ICE (Information Concealment
Engine) encryption algorithm. </P>
<P>
The function <CODE>ice_key_create()</CODE> creates a new <CODE>ICE_KEY</CODE>
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>ICE_KEY</CODE> can be used to encrypt data, its key
schedule must be set with the <CODE>ice_key_set()</CODE> function.
The length of the key required is determined by the level, as described
above. </P>
<P>
The functions <CODE>ice_key_encrypt()</CODE> and <CODE>ice_key_decrypt()</CODE>
encrypt and decrypt respectively data in blocks of eight characters, using
the specified key. They return a pointer to the resulting
ciphertext/plaintext. </P>
<P>
Two functions <CODE>ice_key_key_size()</CODE> and
<CODE>ice_key_block_size()</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>
To destroy a key when it is no longer needed, the function
<CODE>ice_key_destroy()</CODE> should be used. As well as freeing up
memory, it zeroes it out, thus preventing snooping. </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:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close