Welcome to the "trac"-ing site of openpgp4u!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 16

Show
Ignore:
Timestamp:
10/30/04 23:38:15 (4 years ago)
Author:
nahi
Message:

* add some algorithm support.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/pgp/hashalgorithm.rb

    r2 r16  
    1818      0x03, 0x02, 0x01, 0x05, 0x00, 0x04, 0x14]], 
    1919    # SHA256: 2.16.840.1.101.3.4.2.1 
     20    4 => ["Reserved"], 
     21    5 => ["Reserved"], 
     22    6 => ["Reserved"], 
     23    7 => ["Reserved"], 
    2024    8 => ["SHA256", 32, [0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 
    2125      0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20]], 
  • trunk/lib/pgp/pkeyalgorithm.rb

    r2 r16  
    4848    when 17 
    4949      "r - #{MPI.nbits(signature[0])} bits, s - #{MPI.nbits(signature[1])} bits" 
     50    when 16, 20 
     51      "??? (#{signature.size} bytes)" 
    5052    else 
    5153      raise "Not supported: #{algorithm}"