sci.crypt
  Home FAQ Contact Sign in
sci.crypt only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
sci.crypt Profile…
RELATED GROUPS

POPULAR GROUPS

 Up
  cryptographically good permutation         


Author: Daniel Otte
Date: May 20, 2008 19:48

Hi,
I was looking for an algorithm which cryptographically secure permutes integers
in [0 .. n] (or maps a integer from [0..n] to another integer [0..n]).
This is quite easy when n is of the form n=2**(2v)-1 with v being an positive
integer (in this case one could use a simple blockcipher with the blocksize
being 2v).

The strongest criterion for being cryptographically secure I thought of is that
an attacker knowing all mappings of x to x' except a->a' and b->b' (and not
knowing the secret key of course) can not decide with a probability larger than
50%% if a maps to a' or b'.

A possible solution for this problem would be to store the integers from 0 to n
in an array ant then permute the entrys in the array in a pseudo random way.
Due to the relative high memory usage of this method a implementation is not
feasible for me (I'm developing for a microcontroller system which has only 2KiB
RAM).

So I designed an algorithm by myself and I'm very interested in your opinions,
comments, critics and analysis.
Show full article (3.49Kb)
7 Comments
  decode base64         


Author: d-fan
Date: May 20, 2008 14:24

void decodebio( unsigned char *encbuf, unsigned char * decbuf, int
destbuf ) {

/* Read Base64 encoded data from standard input and write the
decoded data to standard output: */

BIO *b64, *bio ;
long i ;
char buffer[512] ;
memset(buffer, 0, 512) ;

b64 = BIO_new(BIO_f_base64() ) ;
bio = BIO_new(BIO_s_mem()) ;

i=BIO_write(bio, encbuf, strlen(encbuf)) ;

bio = BIO_push(b64, bio) ;
//i = BIO_ctrl_pending(bio);
i = BIO_read(bio, decbuf, 1024) ;
printf( "the old buffer size is %%d %%d\n\r", i, strlen(decbuf)) ;
Show full article (1.77Kb)
no comments
  An E -Mail From God         


Author: hamada
Date: May 20, 2008 13:52

O servants of God
Young Muslims of today
You wait impatiently everyday
For e- mail messages of the day

You log on several times a day
It makes you feel good
When you hear" you got mail"
You cannot wait to read it

Some messages are good
From your friends and relatives
But most are plain junk
That waste your time
You delete them fast

Did you know 1400 years ago
God sent you a long e-mail
Through Angel Gabriel of course
Revealed upon the holy Prophet(p)
Show full article (0.98Kb)
1 Comment