Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobdigest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-blobdigest
Commits
68935206
Commit
68935206
authored
Nov 22, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
previous commit was incomplete
parent
bd7c6346
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
16 deletions
+27
-16
README.rst
README.rst
+25
-15
usage.vtc
src/tests/usage.vtc
+2
-1
No files found.
README.rst
View file @
68935206
...
...
@@ -26,19 +26,21 @@ SYNOPSIS
import blobdigest [from "path"] ;
new xdigest =
digest(ENUM, BLOB, ENUM
)
new xdigest =
blobdigest.digest(ENUM hash, BLOB init, ENUM scope
)
BOOL xdigest.update(BLOB)
BLOB xdigest.final()
BLOB hash(ENUM
, BLOB
)
BLOB hash(ENUM
hash, BLOB msg
)
new xhmac =
hmac(ENUM, BLOB
)
new xhmac =
blobdigest.hmac(ENUM hash, BLOB key
)
BLOB xhmac.hmac(BLOB)
BLOB xhmac.hmac(BLOB
msg
)
BLOB hmacf(ENUM, BLOB, BLOB)
DURATION xhmac.hmac_bench(INT n, BLOB msg)
BLOB hmacf(ENUM hash, BLOB key, BLOB msg)
STRING version()
...
...
@@ -225,12 +227,12 @@ values:
.. _obj_digest:
new xdigest = digest(ENUM, BLOB, ENUM
)
-----------
---------------------------
digest(...
)
-----------
::
new xdigest = digest(
new xdigest =
blobdigest.
digest(
ENUM {CRC32, ICRC32, MD5, RS, SHA1, SHA224, SHA256, SHA384, SHA512, SHA3_224, SHA3_256, SHA3_384, SHA3_512} hash,
BLOB init=0,
ENUM {TASK, TOP} scope=TASK
...
...
@@ -413,8 +415,8 @@ Example::
.. _func_hash:
BLOB hash(ENUM
, BLOB
)
---------------------
BLOB hash(ENUM
hash, BLOB msg
)
---------------------
---------
::
...
...
@@ -440,12 +442,12 @@ Example::
.. _obj_hmac:
new xhmac =
hmac(ENUM, BLOB
)
----------------------------
new xhmac =
blobdigest.hmac(ENUM hash, BLOB key
)
----------------------------
--------------------
::
new xhmac = hmac(
new xhmac =
blobdigest.
hmac(
ENUM {MD5, SHA1, SHA224, SHA256, SHA384, SHA512, SHA3_224, SHA3_256, SHA3_384, SHA3_512} hash,
BLOB key
)
...
...
@@ -488,13 +490,21 @@ Example::
}
.. _func_hmac.hmac_bench:
DURATION xhmac.hmac_bench(INT n, BLOB msg)
------------------------------------------
Run `n` rounds of ``.hmac`` and return the net total duration.
.. _func_hmacf:
BLOB hmacf(ENUM
, BLOB, BLOB
)
----------------------------
BLOB hmacf(ENUM
hash, BLOB key, BLOB msg
)
----------------------------
-------------
::
...
...
src/tests/usage.vtc
View file @
68935206
...
...
@@ -201,7 +201,8 @@ client c1 {
rxresp
expect resp.status >= 501
expect resp.status <= 503
expect resp.http.empty == "D41D8CD98F00B204E9800998ECF8427E"
## varnish-cache #2840
# expect resp.http.empty == "D41D8CD98F00B204E9800998ECF8427E"
} -run
logexpect l1 -wait
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment