D | sha1.c | 99 #define SHA_ROUND(t, input, fn, constant, A, B, C, D, E) do { \ argument 104 #define T_0_15(t, A, B, C, D, E) SHA_ROUND(t, SHA_SRC, (((C^D)&B)^D) , 0x5a827999, A, B, C, D, E ) argument 105 #define T_16_19(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, (((C^D)&B)^D) , 0x5a827999, A, B, C, D, E ) argument 106 #define T_20_39(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, (B^C^D) , 0x6ed9eba1, A, B, C, D, E ) argument 107 #define T_40_59(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, ((B&C)+(D&(B^C))) , 0x8f1bbcdc, A, B, C, D,… argument 108 #define T_60_79(t, A, B, C, D, E) SHA_ROUND(t, SHA_MIX, (B^C^D) , 0xca62c1d6, A, B, C, D, E ) argument 112 unsigned int A,B,C,D,E; in blk_SHA1Block() local 118 D = ctx->H[3]; in blk_SHA1Block() 122 T_0_15( 0, A, B, C, D, E); in blk_SHA1Block() 123 T_0_15( 1, E, A, B, C, D); in blk_SHA1Block() [all …]
|