?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. // hashplay framework
  2. // (c) 2022 lvd^mhm
  3.  
  4. /*
  5.     This file is part of hashplay framework.
  6.  
  7.     hashplay framework is free software:
  8.     you can redistribute it and/or modify it under the terms of
  9.     the GNU General Public License as published by
  10.     the Free Software Foundation, either version 3 of the License, or
  11.     (at your option) any later version.
  12.  
  13.     hashplay framework is distributed in the hope that
  14.     it will be useful, but WITHOUT ANY WARRANTY; without even
  15.     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16.     See the GNU General Public License for more details.
  17.  
  18.     You should have received a copy of the GNU General Public License
  19.     along with hashplay framework.
  20.     If not, see <http://www.gnu.org/licenses/>.
  21. */
  22.  
  23. #ifndef SPHASH_OPT_H
  24. #define SPHASH_OPT_H
  25.  
  26.  
  27.  
  28. struct hash_iface * make_sphash_opt(void);
  29.  
  30. int    sphash_opt_hash_init    (struct hash_iface * hash);
  31. int    sphash_opt_hash_start   (struct hash_iface * hash);
  32. int    sphash_opt_hash_addbytes(struct hash_iface * hash, const uint8_t * message, size_t size);
  33. size_t sphash_opt_hash_getsize (struct hash_iface * hash);
  34. int    sphash_opt_hash_result  (struct hash_iface * hash, uint8_t * result);
  35. void   sphash_opt_hash_deinit  (struct hash_iface * hash);
  36.  
  37.  
  38. #endif // SPHASH_OPT_H
  39.  
  40.  
  41.