[svn] / ecrypt / trunk / submissions / yamb / yamb256 / yamb.c  

svn: ecrypt/trunk/submissions/yamb/yamb256/yamb.c

Diff for /ecrypt/trunk/submissions/yamb/yamb256/yamb.c between version 28 and 72

version 28, Mon Jun 27 07:46:25 2005 UTC version 72, Sun Aug 21 15:56:44 2005 UTC
Line 196 
Line 196 
    u8*         output,     u8*         output,
    u32         msglen )     u32         msglen )
 {  {
    u8 remsize, i;     u8 remsize;
    u8 remainder[ ECRYPT_BLOCKLENGTH ];     u8 remainder[ ECRYPT_BLOCKLENGTH ];
   
    ECRYPT_process_blocks( action, ctx, input, output, ( msglen / ECRYPT_BLOCKLENGTH ) );     ECRYPT_process_blocks( action, ctx, input, output, ( msglen / ECRYPT_BLOCKLENGTH ) );
   
    if( (remsize = ( msglen % ECRYPT_BLOCKLENGTH )) )     if( (remsize = ( msglen % ECRYPT_BLOCKLENGTH )) )
    {     {
        u32 i;
   
       ECRYPT_keystream_blocks( ctx, remainder, 1 );        ECRYPT_keystream_blocks( ctx, remainder, 1 );
       for( i = ( msglen - remsize ); i < msglen; i++ )        for( i = ( msglen - remsize ); i < msglen; i++ )
          output[ i ] = input[ i ] ^ remainder[ i - ( msglen - remsize ) ];           output[ i ] = input[ i ] ^ remainder[ i - ( msglen - remsize ) ];


Generate output suitable for use with a patch program
Legend:
Removed from v.28  
changed lines
  Added in v.72

eSTREAM Project

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help