Skip to content

Commit 1ea7aa7

Browse files
committed
Fix AES.keyGenerator resolution
fixes #53
1 parent 85e3a6a commit 1ea7aa7

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cryptography-core/api/cryptography-core.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public abstract interface class dev/whyoleg/cryptography/algorithms/AES : dev/wh
7979
public abstract fun keyGenerator-6q1zMKY (I)Ldev/whyoleg/cryptography/materials/key/KeyGenerator;
8080
public static synthetic fun keyGenerator-6q1zMKY$default (Ldev/whyoleg/cryptography/algorithms/AES;IILjava/lang/Object;)Ldev/whyoleg/cryptography/materials/key/KeyGenerator;
8181
public fun keyGenerator-__FLmac (I)Ldev/whyoleg/cryptography/materials/key/KeyGenerator;
82-
public static synthetic fun keyGenerator-__FLmac$default (Ldev/whyoleg/cryptography/algorithms/AES;IILjava/lang/Object;)Ldev/whyoleg/cryptography/materials/key/KeyGenerator;
8382
}
8483

8584
public abstract interface class dev/whyoleg/cryptography/algorithms/AES$CBC : dev/whyoleg/cryptography/algorithms/AES {

cryptography-core/api/cryptography-core.klib.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ open annotation class dev.whyoleg.cryptography/DelicateCryptographyApi : kotlin/
1717
abstract interface <#A: dev.whyoleg.cryptography.algorithms/AES.Key> dev.whyoleg.cryptography.algorithms/AES : dev.whyoleg.cryptography/CryptographyAlgorithm { // dev.whyoleg.cryptography.algorithms/AES|null[0]
1818
abstract fun keyDecoder(): dev.whyoleg.cryptography.materials.key/KeyDecoder<dev.whyoleg.cryptography.algorithms/AES.Key.Format, #A> // dev.whyoleg.cryptography.algorithms/AES.keyDecoder|keyDecoder(){}[0]
1919
abstract fun keyGenerator(dev.whyoleg.cryptography/BinarySize = ...): dev.whyoleg.cryptography.materials.key/KeyGenerator<#A> // dev.whyoleg.cryptography.algorithms/AES.keyGenerator|keyGenerator(dev.whyoleg.cryptography.BinarySize){}[0]
20-
open fun keyGenerator(dev.whyoleg.cryptography.algorithms.symmetric/SymmetricKeySize = ...): dev.whyoleg.cryptography.materials.key/KeyGenerator<#A> // dev.whyoleg.cryptography.algorithms/AES.keyGenerator|keyGenerator(dev.whyoleg.cryptography.algorithms.symmetric.SymmetricKeySize){}[0]
20+
open fun keyGenerator(dev.whyoleg.cryptography.algorithms.symmetric/SymmetricKeySize): dev.whyoleg.cryptography.materials.key/KeyGenerator<#A> // dev.whyoleg.cryptography.algorithms/AES.keyGenerator|keyGenerator(dev.whyoleg.cryptography.algorithms.symmetric.SymmetricKeySize){}[0]
2121

2222
abstract interface CBC : dev.whyoleg.cryptography.algorithms/AES<dev.whyoleg.cryptography.algorithms/AES.CBC.Key> { // dev.whyoleg.cryptography.algorithms/AES.CBC|null[0]
2323
open val id // dev.whyoleg.cryptography.algorithms/AES.CBC.id|{}id[0]

cryptography-core/src/commonMain/kotlin/algorithms/AES.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023-2024 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright (c) 2023-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package dev.whyoleg.cryptography.algorithms
@@ -23,7 +23,7 @@ public interface AES<K : AES.Key> : CryptographyAlgorithm {
2323
ReplaceWith("keyGenerator(keySize.value)"),
2424
DeprecationLevel.ERROR
2525
)
26-
public fun keyGenerator(keySize: SymmetricKeySize = SymmetricKeySize.B256): KeyGenerator<K> = keyGenerator(keySize.value)
26+
public fun keyGenerator(keySize: SymmetricKeySize): KeyGenerator<K> = keyGenerator(keySize.value)
2727

2828
@SubclassOptInRequired(CryptographyProviderApi::class)
2929
public interface Key : EncodableKey<Key.Format> {

0 commit comments

Comments
 (0)