/freebsd/sys/crypto/skein/ |
H A D | skein.h | 77 u08b_t b[SKEIN_256_BLOCK_BYTES]; /* partial block buffer (8-byte aligned) */ 84 u08b_t b[SKEIN_512_BLOCK_BYTES]; /* partial block buffer (8-byte aligned) */ 91 u08b_t b[SKEIN1024_BLOCK_BYTES]; /* partial block buffer (8-byte aligned) */ 99 int Skein_256_Update(Skein_256_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt); 100 int Skein_512_Update(Skein_512_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt); 101 int Skein1024_Update(Skein1024_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt); 103 int Skein_256_Final (Skein_256_Ctxt_t *ctx, u08b_t * hashVal); 104 int Skein_512_Final (Skein_512_Ctxt_t *ctx, u08b_t * hashVal); 105 int Skein1024_Final (Skein1024_Ctxt_t *ctx, u08b_t * hashVal); 121 int Skein_256_InitExt(Skein_256_Ctxt_t *ctx, size_t hashBitLen, u64b_t treeInfo, const u08b_t *key… [all …]
|
H A D | skein.c | 29 void Skein_256_Process_Block(Skein_256_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t byt… 30 void Skein_512_Process_Block(Skein_512_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t byt… 31 void Skein1024_Process_Block(Skein1024_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t byt… 43 u08b_t b[SKEIN_256_STATE_BYTES]; in Skein_256_Init() 83 int Skein_256_InitExt(Skein_256_Ctxt_t *ctx,size_t hashBitLen,u64b_t treeInfo, const u08b_t *key, s… in Skein_256_InitExt() 87 u08b_t b[SKEIN_256_STATE_BYTES]; in Skein_256_InitExt() 141 int Skein_256_Update(Skein_256_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt) in Skein_256_Update() 189 int Skein_256_Final(Skein_256_Ctxt_t *ctx, u08b_t *hashVal) in Skein_256_Final() 225 return ((u08b_t *) Skein_256_API_CodeSize) - in Skein_256_API_CodeSize() 226 ((u08b_t *) Skein_256_Init); in Skein_256_API_CodeSize() [all …]
|
H A D | skein_debug.c | 44 static void Show08(size_t cnt,const u08b_t *b) in Show08() 76 void Skein_Show_Final(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t cnt,const u08b_t *outPtr) in Skein_Show_Final() 126 const u08b_t *perm; in Skein_Show_Round() 127 … const static u08b_t PERM_256 [4][ 4] = { { 0,1,2,3 }, { 0,3,2,1 }, { 0,1,2,3 }, { 0,3,2,1 } }; in Skein_Show_Round() 128 const static u08b_t PERM_512 [4][ 8] = { { 0,1,2,3,4,5,6,7 }, in Skein_Show_Round() 133 … const static u08b_t PERM_1024[4][16] = { { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15 }, in Skein_Show_Round() 174 void Skein_Show_Block(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u64b_t *X,const u08b_t *blkPtr, in Skein_Show_Block() 237 void Skein_Show_Key(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes) in Skein_Show_Key()
|
H A D | skein_port.h | 24 typedef uint8_t u08b_t; /* 8-bit unsigned integer */ typedef 59 void Skein_Put64_LSB_First(u08b_t *dst,const u64b_t *src,size_t bCnt); 60 void Skein_Get64_LSB_First(u64b_t *dst,const u08b_t *src,size_t wCnt); 88 void Skein_Put64_LSB_First(u08b_t *dst,const u64b_t *src,size_t bCnt) in Skein_Put64_LSB_First() 103 void Skein_Get64_LSB_First(u64b_t *dst,const u08b_t *src,size_t wCnt) in Skein_Get64_LSB_First()
|
H A D | skein_debug.h | 15 void Skein_Show_Block(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u64b_t *X,const u08b_t *blkPtr, 19 void Skein_Show_Final(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t cnt,const u08b_t *outPtr); 20 void Skein_Show_Key (uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes);
|
H A D | skein_block.c | 51 void Skein_256_Process_Block(Skein_256_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t byt… 52 void Skein_512_Process_Block(Skein_512_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t byt… 53 void Skein1024_Process_Block(Skein1024_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t byt… 57 void Skein_256_Process_Block(Skein_256_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t byteCn… in Skein_256_Process_Block() 230 return ((u08b_t *) Skein_256_Process_Block_CodeSize) - in Skein_256_Process_Block_CodeSize() 231 ((u08b_t *) Skein_256_Process_Block); in Skein_256_Process_Block_CodeSize() 242 void Skein_512_Process_Block(Skein_512_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t byteCn… in Skein_512_Process_Block() 438 return ((u08b_t *) Skein_512_Process_Block_CodeSize) - in Skein_512_Process_Block_CodeSize() 439 ((u08b_t *) Skein_512_Process_Block); in Skein_512_Process_Block_CodeSize() 450 void Skein1024_Process_Block(Skein1024_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t byteCn… in Skein1024_Process_Block() [all …]
|