Lines Matching defs:K0
56 u8 K0[SHA1_BLOCK_SIZE];
63 * If the length of K = B(Block size): K0 = K.
65 * then append (B-L) zeros to create a B-byte string K0 (i.e., K0 = H(K) || 00...00).
66 * If the length of K < B: append zeros to the end of K to create a B-byte string K0
68 NdisZeroMemory(K0, SHA1_BLOCK_SIZE);
70 NdisMoveMemory(K0, Key, KeyLen);
72 RT_SHA1(Key, KeyLen, K0);
75 /* Exclusive-Or K0 with ipad */
78 K0[index] ^= 0x36;
82 /* H(K0^ipad) */
83 SHA1_Append(&sha_ctx1, K0, sizeof(K0));
84 /* H((K0^ipad)||text) */
88 /* Exclusive-Or K0 with opad and remove ipad */
91 K0[index] ^= 0x36 ^ 0x5c;
95 /* H(K0^opad) */
96 SHA1_Append(&sha_ctx2, K0, sizeof(K0));
97 /* H( (K0^opad) || H((K0^ipad)||text) ) */
135 u8 K0[MD5_BLOCK_SIZE];
142 * If the length of K = B(Block size): K0 = K.
144 * then append (B-L) zeros to create a B-byte string K0 (i.e., K0 = H(K) || 00...00).
145 * If the length of K < B: append zeros to the end of K to create a B-byte string K0
147 NdisZeroMemory(K0, MD5_BLOCK_SIZE);
149 NdisMoveMemory(K0, Key, KeyLen);
151 RT_MD5(Key, KeyLen, K0);
154 /* Exclusive-Or K0 with ipad */
157 K0[index] ^= 0x36;
161 /* H(K0^ipad) */
162 MD5_Append(&md5_ctx1, K0, sizeof(K0));
163 /* H((K0^ipad)||text) */
167 /* Exclusive-Or K0 with opad and remove ipad */
170 K0[index] ^= 0x36 ^ 0x5c;
174 /* H(K0^opad) */
175 MD5_Append(&md5_ctx2, K0, sizeof(K0));
176 /* H( (K0^opad) || H((K0^ipad)||text) ) */