mirror of
https://github.com/internetee/registry.git
synced 2025-07-06 03:03:21 +02:00
Do not alter public key while generating digest
This commit is contained in:
parent
1d28a414aa
commit
81db8e53d7
2 changed files with 21 additions and 15 deletions
|
@ -85,9 +85,9 @@ class Dnskey < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def generate_ds_key_tag
|
||||
public_key.gsub!(' ', '')
|
||||
pk = public_key.gsub(' ', '')
|
||||
wire_format = [flags, protocol, alg].pack('S!>CC')
|
||||
wire_format += Base64.decode64(public_key)
|
||||
wire_format += Base64.decode64(pk)
|
||||
|
||||
c = 0
|
||||
wire_format.each_byte.with_index do |b, i|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue