Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Sep 19, 2021
1 parent 1ef934b commit 019ed6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class HashSuite extends CatsEffectSuite {

val data = ByteVector.encodeAscii("The quick brown fox jumps over the lazy dog").toOption.get

def testHash(algorithm: HashAlgorithm, expect: String) =
final def testHash(algorithm: HashAlgorithm, expect: String) =
test(algorithm.toString) {
assertIO(
Hash[IO].digest(algorithm, data),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class HmacSuite extends CatsEffectSuite {
val key = ByteVector.encodeAscii("key").toOption.get
val data = ByteVector.encodeAscii("The quick brown fox jumps over the lazy dog").toOption.get

def testHash(algorithm: HmacAlgorithm, expect: String) =
final def testHash(algorithm: HmacAlgorithm, expect: String) =
test(algorithm.toString) {
assertIO(
Hmac[IO].digest(SecretKeySpec(key, algorithm), data),
Expand All @@ -41,7 +41,7 @@ class HmacSuite extends CatsEffectSuite {
SHA512,
"b42af09057bac1e2d41708e48a902e09b5ff7f12ab428a4fe86653c73dd248fb82f948a549f7b791a5b41915ee4d1ec3935357e4e2317250d0372afa2ebeeb3a")

def testGenerateKey(algorithm: HmacAlgorithm) =
final def testGenerateKey(algorithm: HmacAlgorithm) =
test(s"generate key for ${algorithm}") {
Hmac[IO].generateKey(algorithm).map {
case SecretKeySpec(key, keyAlgorithm) =>
Expand Down

0 comments on commit 019ed6f

Please sign in to comment.