| gnutls_hash_int.h | gnutls_hash_int.h | |||
|---|---|---|---|---|
| skipping to change at line 113 | skipping to change at line 113 | |||
| void _gnutls_mac_deinit(mac_hd_st * handle, void *digest); | void _gnutls_mac_deinit(mac_hd_st * handle, void *digest); | |||
| /* Hash interface */ | /* Hash interface */ | |||
| int _gnutls_hash_init(digest_hd_st *, const mac_entry_st * e); | int _gnutls_hash_init(digest_hd_st *, const mac_entry_st * e); | |||
| inline static int | inline static int | |||
| _gnutls_hash(digest_hd_st * handle, const void *text, size_t textlen) | _gnutls_hash(digest_hd_st * handle, const void *text, size_t textlen) | |||
| { | { | |||
| if (textlen > 0) { | if (textlen > 0) { | |||
| handle->hash(handle->handle, text, textlen); | return handle->hash(handle->handle, text, textlen); | |||
| } | } | |||
| return 0; | return 0; | |||
| } | } | |||
| /* when the current output is needed without calling deinit | /* when the current output is needed without calling deinit | |||
| */ | */ | |||
| #define _gnutls_hash_output(h, d) \ | #define _gnutls_hash_output(h, d) \ | |||
| (h)->output((h)->handle, d, _gnutls_hash_get_algo_len((h)->e)) | (h)->output((h)->handle, d, _gnutls_hash_get_algo_len((h)->e)) | |||
| void _gnutls_hash_deinit(digest_hd_st * handle, void *digest); | void _gnutls_hash_deinit(digest_hd_st * handle, void *digest); | |||
| End of changes. 1 change blocks. | ||||
| 1 lines changed or deleted | 1 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||