Skip to content

Commit

Permalink
Add support for openssl3 with travis
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 authored and SmallLars committed Jul 29, 2022
1 parent 15f258f commit e0d0b1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/openssl/ccm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def mac(data, nonce, additional_data)
@cipher.reset
@cipher.encrypt
@cipher.key = @key
@cipher.iv = "\x00" * 16

b_0 = Array.new(8, 0)
b_0[0] = (additional_data.empty? ? 0 : 64) \
Expand Down Expand Up @@ -164,6 +165,7 @@ def get_counter(nonce, index)
@cipher.reset
@cipher.encrypt
@cipher.key = @key
@cipher.iv = "\x00" * 16
@cipher.update(a.pack('C*'))
end
end
Expand Down

0 comments on commit e0d0b1a

Please sign in to comment.