Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Add message to InsecureCryptoApi annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cach30verfl0w committed Jun 14, 2024
1 parent 2c24911 commit 33e1989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package io.karma.advcrypto.annotations
* @author Cedric Hammes
* @since 11/06/2024
*/
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
@RequiresOptIn("By using this function of the API, the confidentiality of sensitive data is in risk", RequiresOptIn.Level.ERROR)
@MustBeDocumented
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import okio.Path.Companion.toPath
import kotlin.experimental.ExperimentalNativeApi
import kotlin.test.Test

@OptIn(ExperimentalNativeApi::class, InsecureCryptoApi::class)
@OptIn(ExperimentalNativeApi::class)
class KeyReaderHelperTests {
private val fileSystem = FileSystem.SYSTEM

@OptIn(InsecureCryptoApi::class)
@Test
fun testPEM() {
fileSystem.read("./testkeys/rsa-private-key.pem".toPath()) {
Expand Down

0 comments on commit 33e1989

Please sign in to comment.