-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathHMAC.txt
53 lines (39 loc) · 2.01 KB
/
HMAC.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
*vital/Hash/HMAC.txt* HMAC utilities library.
Maintainer: Tsuyoshi CHO <[email protected]>
==============================================================================
CONTENTS *Vital.Hash.HMAC-contents*
INTRODUCTION |Vital.Hash.HMAC-introduction|
INTERFACE |Vital.Hash.HMAC-interface|
Functions |Vital.Hash.HMAC-functions|
OBJECTS |Vital.Hash.HMAC-objects|
HMAC Object |Vital.Hash.HMAC-HMAC|
==============================================================================
INTRODUCTION *Vital.Hash.HMAC-introduction*
*Vital.Hash.HMAC* is a HMAC Utilities Library.
It provides functions to return the HMAC mac given string as
hex/bytes list.
==============================================================================
INTERFACE *Vital.Hash.HMAC-interface*
------------------------------------------------------------------------------
FUNCTIONS *Vital.Hash.HMAC-functions*
new({hashobj},{key}) *Vital.Hash.HMAC.new()*
Return HMAC object with {hashobj} algo and {key}.
{hashobj} see also |Vital.Hash.HMAC-HMAC.hash()|.
{key} see also |Vital.Hash.HMAC-HMAC.key()|.
==============================================================================
OBJECTS *Vital.Hash.HMAC-objects*
------------------------------------------------------------------------------
HMAC Object *Vital.Hash.HMAC-HMAC*
HMAC.hash({hashobj}) *Vital.Hash.HMAC-HMAC.hash()*
Set HMAC {hashobj} hash algorithm.
{hashobj} must 'digest_raw' method(input/output {bytes} list).
Such as Hash.MD5,SHA1.
HMAC.key({str|bytes}) *Vital.Hash.HMAC-HMAC.key()*
Set HMAC secret key {str|bytes}. key is string or bytes list.
HMAC.calc({data}) *Vital.Hash.HMAC-HMAC.calc()*
Calculate and return HMAC value that was bytes list.
HMAC.hmac({data}) *Vital.Hash.HMAC-HMAC.hmac()*
Calculate and return HMAC value that was string
(calc result converted value).
==============================================================================
vim:tw=78:fo=tcq2mM:ts=8:ft=help:norl