We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0924b9c commit 826ae87Copy full SHA for 826ae87
crypto/js/src/main/scala/org/http4s/crypto/HmacKeyGenPlatform.scala
@@ -37,13 +37,13 @@ private[crypto] trait HmacKeyGenCompanionPlatform {
37
Some(F)
38
.collect { case f: Async[F] => f }
39
.fold {
40
- F.delay {
+ F.delay[SecretKey[A]] {
41
val key =
42
crypto.generateKeySync("hmac", GenerateKeyOptions(algorithm.minimumKeyLength))
43
SecretKeySpec(ByteVector.view(key.`export`()), algorithm)
44
}
45
} { F =>
46
- F.async_ { cb =>
+ F.async_[SecretKey[A]] { cb =>
47
crypto.generateKey(
48
"hmac",
49
GenerateKeyOptions(algorithm.minimumKeyLength),
@@ -55,7 +55,6 @@ private[crypto] trait HmacKeyGenCompanionPlatform {
55
)
56
57
58
- .widen
59
60
61
else
0 commit comments