Skip to content

Commit 7303ac7

Browse files
committed
kt
1 parent 75b84af commit 7303ac7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

runtime/auth/aws-signing-default/common/src/aws/smithy/kotlin/runtime/auth/awssigning/SigV4aSignatureCalculator.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package aws.smithy.kotlin.runtime.auth.awssigning
66

77
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
8-
import aws.smithy.kotlin.runtime.collections.LruCache
98
import aws.smithy.kotlin.runtime.collections.ReadThroughCache
109
import aws.smithy.kotlin.runtime.content.BigInteger
1110
import aws.smithy.kotlin.runtime.hashing.HashSupplier
@@ -27,7 +26,7 @@ internal const val MAX_KDF_COUNTER_ITERATIONS = 254.toByte()
2726

2827
internal class SigV4aSignatureCalculator(override val sha256Provider: HashSupplier = ::Sha256) : SigV4xSignatureCalculator(AwsSigningAlgorithm.SIGV4_ASYMMETRIC, sha256Provider) {
2928
private val privateKeyCache = ReadThroughCache<Credentials, ByteArray>(
30-
minimumSweepPeriod = 1.hours // note: Sweeps are effectively a no-op because expiration is [Instant.MAX_VALUE]
29+
minimumSweepPeriod = 1.hours, // note: Sweeps are effectively a no-op because expiration is [Instant.MAX_VALUE]
3130
)
3231

3332
override fun calculate(signingKey: ByteArray, stringToSign: String): String = ecdsasecp256r1(signingKey, stringToSign.encodeToByteArray()).encodeToHex()

0 commit comments

Comments
 (0)