File Coverage

blib/lib/Zonemaster/LDNS/RR/DNSKEY.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Zonemaster::LDNS::RR::DNSKEY;
2              
3 13     13   68 use parent 'Zonemaster::LDNS::RR';
  13         24  
  13         51  
4              
5             1;
6              
7             =head1 NAME
8              
9             Zonemaster::LDNS::RR::DNSKEY - Type DNSKEY record
10              
11             =head1 DESCRIPTION
12              
13             A subclass of L, so it has all the methods of that class available in addition to the ones documented here.
14              
15             =head1 METHODS
16              
17             =over
18              
19             =item flags()
20              
21             Returns the flag field as a number.
22              
23             =item protocol()
24              
25             Returns the protocol number.
26              
27             =item algorithm()
28              
29             Returns the algorithm number.
30              
31             =item keydata()
32              
33             Returns the cryptographic key in binary form.
34              
35             =item ds($hash)
36              
37             Returns a L record matching this key. The argument must be one of the strings 'sha1', 'sha256', 'sha384' or 'gost'. GOST may not
38             be available, depending on how you ldns library was compiled.
39              
40             =item keysize()
41              
42             The size of the key stored in the record. For RSA variants, it's the length in bits of the prime number. For DSA variants, it's the key's "T" value
43             (see RFC2536). For DH, it's the value of the "prime length" field (and probably useless, since DH keys can't have signature records).
44              
45             =back