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 7f326ff commit 2c88eff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/openssl/cmac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def reset
@keys.clear
@buffer.clear
@cipher.reset unless @keys[0].nil?
@cipher.iv = "\x00" * 16
@cipher.encrypt
self
end
Expand Down Expand Up @@ -160,6 +161,7 @@ def digest(length = 16)
@cipher.reset
@cipher.encrypt
@cipher.key = @keys[0]
@cipher.iv = "\x00" * 16
# Each block is 16-bytes and the last block will always be PKCS#7 padding
# which we want to discard. Take the last block prior to the padding for
# the MAC.
Expand Down

0 comments on commit 2c88eff

Please sign in to comment.