class Rupert::RPM::Signature

Constants

MD5_TAG

Tag holding 128-bit MD5 checksum of header and payload

Public Class Methods

new(index) click to toggle source

Creates a new signature given its components.

@param index [Rupert::RPM::Signature::Index] the signature index

containing actual signature data
# File lib/rupert/rpm/signature.rb, line 11
def initialize(index)
  @index = index
end

Public Instance Methods

md5() click to toggle source

MD5 checksum contained in the RPM.

@return [String] 128-bit MD5 checksum of RPM’s header and payload, in

raw binary form.
# File lib/rupert/rpm/signature.rb, line 19
def md5
  @index.get MD5_TAG
end