mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Migrate free SHA* functions to SHA*Val::digest().
This commit is contained in:
parent
91f2cb2b64
commit
ddd306f00f
5 changed files with 80 additions and 81 deletions
|
@ -49,6 +49,8 @@ private:
|
|||
|
||||
class SHA1Val : public HashVal {
|
||||
public:
|
||||
static void digest(val_list& vlist, u_char result[SHA_DIGEST_LENGTH]);
|
||||
|
||||
SHA1Val() : HashVal(new OpaqueType("sha1")) { }
|
||||
|
||||
protected:
|
||||
|
@ -66,6 +68,8 @@ private:
|
|||
|
||||
class SHA256Val : public HashVal {
|
||||
public:
|
||||
static void digest(val_list& vlist, u_char result[SHA256_DIGEST_LENGTH]);
|
||||
|
||||
SHA256Val() : HashVal(new OpaqueType("sha256")) { }
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue