Class: Rupert::RPM::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/rupert/rpm/signature.rb

Constant Summary collapse

MD5_TAG =

Tag holding 128-bit MD5 checksum of header and payload

1004.freeze

Instance Method Summary collapse

Constructor Details

#initialize(index) ⇒ Signature

Creates a new signature given its components.

Parameters:

  • index (Rupert::RPM::Signature::Index)

    the signature index containing actual signature data



11
12
13
# File 'lib/rupert/rpm/signature.rb', line 11

def initialize(index)
  @index = index
end

Instance Method Details

#md5String

MD5 checksum contained in the RPM.

Returns:

  • (String)

    128-bit MD5 checksum of RPM’s header and payload, in raw binary form.



19
20
21
# File 'lib/rupert/rpm/signature.rb', line 19

def md5
  @index.get MD5_TAG
end