~ubuntu-branches/ubuntu/trusty/rhash/trusty

« back to all changes in this revision

Viewing changes to hash_check.h

  • Committer: Package Import Robot
  • Author(s): Aleksey Kravchenko
  • Date: 2011-09-14 23:50:14 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: package-import@ubuntu.com-20110914235014-m9mk3eg7e6rah17x
Tags: 1.2.8-1
* New upstream release version 1.2.8
 - language bindings for Java, Perl, Python, Ruby
 - Russian translation
 - fixed recommended libssl1.0.0 dependency
 - patched broken re-compilation
 - fixed a mistype in perl documentation
 - control: updated Vcs-Git field
 - copyright: corrected Format field, added Upstream-Contact
 - copyright: updated Copyright field, mentioned another developer

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
int hash_check_parse_line(char* line, hash_check* hashes, int check_eol);
50
50
int hash_check_verify(hash_check* hashes, struct rhash_context* ctx);
51
51
 
 
52
void rhash_base32_to_byte(const char* str, unsigned char* bin, int len);
 
53
void rhash_hex_to_byte(const char* str, unsigned char* bin, int len);
 
54
 
 
55
/* note: IS_HEX() is defined on ASCII-8 while isxdigit() only when isascii()==true */
 
56
#define IS_HEX(c) ((c) <= '9' ? (c) >= '0' : (unsigned)(((c) - 'A') & ~0x20) <= ('F' - 'A' + 0U))
 
57
#define IS_BASE32(c) (((c) <= '7' ? ('2' <= (c)) : (unsigned)(((c) - 'A') & ~0x20) <= ('Z' - 'A' + 0U)))
 
58
 
52
59
#ifdef __cplusplus
53
60
} /* extern "C" */
54
61
#endif /* __cplusplus */