---
name: "Net::LDNS::RR::RRSIG"
section: "3pm"
platform: "linux"
package: "libnet-ldns-perl"
version: "0.75-7+b4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::LDNS::RR::RRSIG"
---

# Net::LDNS::RR::RRSIG(3pm)

Type RRSIG record

## NAME

Net::LDNS::RR::RRSIG - Type RRSIG record

## DESCRIPTION

A subclass of Net::LDNS::RR, so it has all the methods of that class available in addition to the ones documented here.

## METHODS

- **typecovered()**

  Returns a string with the name of the RR type this signature covers.

- **algorithm()**

  Returns the algorithm number.

- **labels()**

  Returns the number of labels that was used to calculate the signature.

- **origttl()**

  Returns the original TTL value.

- **expiration()**

  Returns the expiration time, as a time\_t.

- **inception()**

  Returns the inception time, as a time\_t.

- **keytag()**

  Returns the keytag.

- **signer()**

  Returns the signer name.

- **signature()**

  Returns the cryptographic signture in binary form.

- verify($rrset\_ref, $key\_ref)

  Cryptographically verifies that the signature in this object matches the given RRset and at least one of the given keys. `$rrset_ref` should be a reference to an array of RR objects, and `$key_ref` a reference to an array of Net::LDNS::RR::DNSKEY objects. This method simply returns a true or false value, depending on the result och the check.

- verify\_str($rrset\_ref, $key\_ref)

  Takes exactly the same arguments as **verify()** and performs the same action, but instead of true/false it returns a string describing the result. In the case of a successful result the message will be "All OK". For negative results, the string will describe the reason the verification failed.

- verify\_time($rrset\_ref, $key\_ref, $time, $msg)

  This is the XS method doing the work for the previous two methods. `$rrset_ref` and `$key_ref` are the same as for the other methods. `$time` is the `"time_t"` value for which the validation should be made (for the previous two methods it is set to the current computer time). `$msg` should be a writable scalar, and the string message describing the result will be but in it. The return value from the method is true/false.
