1e5b75505Sopenharmony_ci/* 2e5b75505Sopenharmony_ci * SHA1 internal definitions 3e5b75505Sopenharmony_ci * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> 4e5b75505Sopenharmony_ci * 5e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license. 6e5b75505Sopenharmony_ci * See README for more details. 7e5b75505Sopenharmony_ci */ 8e5b75505Sopenharmony_ci 9e5b75505Sopenharmony_ci#ifndef SHA1_I_H 10e5b75505Sopenharmony_ci#define SHA1_I_H 11e5b75505Sopenharmony_ci 12e5b75505Sopenharmony_cistruct SHA1Context { 13e5b75505Sopenharmony_ci u32 state[5]; 14e5b75505Sopenharmony_ci u32 count[2]; 15e5b75505Sopenharmony_ci unsigned char buffer[64]; 16e5b75505Sopenharmony_ci}; 17e5b75505Sopenharmony_ci 18e5b75505Sopenharmony_civoid SHA1Init(struct SHA1Context *context); 19e5b75505Sopenharmony_civoid SHA1Update(struct SHA1Context *context, const void *data, u32 len); 20e5b75505Sopenharmony_civoid SHA1Final(unsigned char digest[20], struct SHA1Context *context); 21e5b75505Sopenharmony_civoid SHA1Transform(u32 state[5], const unsigned char buffer[64]); 22e5b75505Sopenharmony_ci 23e5b75505Sopenharmony_ci#endif /* SHA1_I_H */ 24