Displaying 5 results from an estimated 5 matches for "get_pubid_priv".
2019 Apr 10
2
decrypt.rb
On 4/10/2019 1:32 AM, Aki Tuomi wrote:
> On 9.4.2019 18.15, Dave wrote:
>>>> I've tried specifying an output file as well, per the script's
>> command line options,
>>>> but the output file is 0 bytes.? Does anyone have any suggestions?
>> I *think* I'm
>>>> using it the way it's intended to be used, but maybe I'm not?!
2019 Apr 11
2
decrypt.rb
...[/code]
>
> and options[:key_digest] is filled as the private key option is passed in:
>
> [code]
> opts.on("-k","--key KEY", "Private key to decrypt file") do |k|
> ? options[:key] = OpenSSL::PKey.read(File.open(k))
> ? options[:key_digest] = get_pubid_priv(options[:key])
> end
> [/code]
>
> It's apparently using the key from the command line to get the key
> digest with the get_pubid_priv() function, and for some reason that
> value is coming back as different than the key digest that is
> ascertained by the "options...
2019 Apr 10
0
decrypt.rb
...put].read(33).unpack('Ca*')
[/code]
and options[:key_digest] is filled as the private key option is passed in:
[code]
opts.on("-k","--key KEY", "Private key to decrypt file") do |k|
? options[:key] = OpenSSL::PKey.read(File.open(k))
? options[:key_digest] = get_pubid_priv(options[:key])
end
[/code]
It's apparently using the key from the command line to get the key
digest with the get_pubid_priv() function, and for some reason that
value is coming back as different than the key digest that is
ascertained by the "options[:input].read" line.
Out of c...
2019 Apr 11
0
decrypt.rb
On 4/11/2019 1:50 AM, Aki Tuomi wrote:
>
>> ...
>> So, not being an expert at encryption, what are the ramifications of
>> those digests being read as different values in the two different
>> places???? I do notice that the get_pubid_priv() function is internal to
>> the decrypt.rb script and calls several OpenSSL functions.
>>
>> -Dave
> Hmm... can you show me how you made the keypair for encryption? Maybe there is some difference?
>
> Aki
>
Aki, I just used the "EC key" instructions from th...
2019 Apr 11
1
decrypt.rb
...rote:
>
>
> On 4/11/2019 1:50 AM, Aki Tuomi wrote:
> >
> >> ...
> >> So, not being an expert at encryption, what are the ramifications of
> >> those digests being read as different values in the two different
> >> places???? I do notice that the get_pubid_priv() function is internal to
> >> the decrypt.rb script and calls several OpenSSL functions.
> >>
> >> -Dave
> > Hmm... can you show me how you made the keypair for encryption? Maybe there is some difference?
> >
> > Aki
> >
>
> Aki, I just use...