1Net::DNS::SEC::Digest(3U)ser Contributed Perl DocumentatiNoent::DNS::SEC::Digest(3)
2
3
4
6 Net::DNS::SEC::Digest - Message Digest Algorithms
7
9 require Net::DNS::SEC::Digest;
10
11 $object = Net::DNS::SEC::Digest::SHA->new(256);
12 $object->add($text);
13 $object->add($more);
14 $digest = $object->digest;
15
17 Interface package providing access to the message digest algorithm
18 implementations within the OpenSSL libcrypto library.
19
21 new
22 require Net::DNS::SEC::Digest;
23 $object = Net::DNS::SEC::Digest::SHA->new(256);
24
25 Creates and initialises a new digest object instance for the specified
26 algorithm class.
27
28 add
29 $object->add($data);
30 $object->add($more);
31
32 Append specified data to the digest stream.
33
34 digest
35 $digest = $object->digest;
36
37 Returns an octet string containing the calculated digest.
38
40 Thanks are due to Eric Young and the many developers and contributors
41 to the OpenSSL cryptographic library.
42
44 Copyright (c)2020,2021 Dick Franks.
45
46 All rights reserved.
47
49 Permission to use, copy, modify, and distribute this software and its
50 documentation for any purpose and without fee is hereby granted,
51 provided that the original copyright notices appear in all copies and
52 that both copyright notice and this permission notice appear in
53 supporting documentation, and that the name of the author not be used
54 in advertising or publicity pertaining to distribution of the software
55 without specific prior written permission.
56
57 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
58 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
59 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
60 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
61 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
62 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
63 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
64
66 Net::DNS, Net::DNS::SEC, OpenSSL <http://www.openssl.org/docs>
67
68
69
70perl v5.36.0 2022-07-22 Net::DNS::SEC::Digest(3)