[svn] / ecrypt / trunk / submissions / nls / nls.c  

svn: ecrypt/trunk/submissions/nls/nls.c

Diff for /ecrypt/trunk/submissions/nls/nls.c between version 1 and 17

version 1, Sun Jun 26 18:46:26 2005 UTC version 17, Mon Jun 27 00:20:09 2005 UTC
Line 17 
Line 17 
   
 #include "ecrypt-sync-ae.h"  #include "ecrypt-sync-ae.h"
   
   #if (ECRYPT_VARIANT == 1)
   #include "nlsref.c"
   #else
   #include "nlsfast.c"
   #endif
   
 void  void
 ECRYPT_init(void)  ECRYPT_init(void)
 {  {
Line 25 
Line 31 
 void  void
 ECRYPT_keysetup(ECRYPT_ctx* ctx, const u8* key, u32 keysize, u32 ivsize)  ECRYPT_keysetup(ECRYPT_ctx* ctx, const u8* key, u32 keysize, u32 ivsize)
 {  {
         nls_key(&ctx->ctx, (UCHAR *)key, keysize);          nls_key(&ctx->ctx, (UCHAR *)key, (keysize + 7) / 8);
         ctx->ivsize = ivsize;          ctx->ivsize = (ivsize + 7) / 8;
 }  }
   
 void  void
Line 62 
Line 68 
 ECRYPT_AE_keysetup(ECRYPT_AE_ctx* ctx, const u8* key, u32 keysize,  ECRYPT_AE_keysetup(ECRYPT_AE_ctx* ctx, const u8* key, u32 keysize,
         u32 ivsize, u32 macsize)          u32 ivsize, u32 macsize)
 {  {
         nls_key(&ctx->ctx.ctx, (UCHAR *)key, keysize);          nls_key(&ctx->ctx.ctx, (UCHAR *)key, (keysize + 7) / 8);
         ctx->ctx.ivsize = ivsize;          ctx->ctx.ivsize = (ivsize + 7) / 8;
         ctx->macctx.macsize = macsize;          ctx->macctx.macsize = (macsize + 7) / 8;
 }  }
   
 void  void


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

eSTREAM Project

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help