-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provider: Signing #94
Conversation
provider/src/iosMain/kotlin/at/asitplus/crypto/provider/os/IOSKeychainProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/iosMain/kotlin/at/asitplus/crypto/provider/os/IOSKeychainProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/androidMain/kotlin/at/asitplus/crypto/provider/os/AndroidKeyStoreProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/androidMain/kotlin/at/asitplus/crypto/provider/os/AndroidKeyStoreProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/androidMain/kotlin/at/asitplus/crypto/provider/os/AndroidKeyStoreProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/commonMain/kotlin/at/asitplus/crypto/provider/os/TPMSigningProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/commonMain/kotlin/at/asitplus/crypto/provider/os/TPMSigningProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/iosMain/kotlin/at/asitplus/crypto/provider/os/IOSKeychainProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/iosMain/kotlin/at/asitplus/crypto/provider/os/IOSKeychainProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/iosMain/kotlin/at/asitplus/crypto/provider/os/IOSKeychainProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/commonMain/kotlin/at/asitplus/crypto/provider/os/SigningProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/iosMain/kotlin/at/asitplus/crypto/provider/os/IosKeychainProvider.kt
Outdated
Show resolved
Hide resolved
provider/src/commonMain/kotlin/at/asitplus/crypto/provider/os/Attestation.kt
Outdated
Show resolved
Hide resolved
c4c2a4f
to
6f5c8c4
Compare
This reverts commit 706959d.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nitpicks
supreme/src/commonMain/kotlin/at/asitplus/signum/supreme/SignatureResult.kt
Outdated
Show resolved
Hide resolved
} | ||
val SignatureResult.isSuccess get() = (this is SignatureResult.Success) | ||
/** Retrieves the contained signature, asserting it exists. If it does not exist, throws the contained problem. */ | ||
val SignatureResult.signature: CryptoSignature get() = when (this) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Annotate with @throws for good measure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't, build breaks on ios
supreme/src/commonMain/kotlin/at/asitplus/signum/supreme/SignatureResult.kt
Outdated
Show resolved
Hide resolved
supreme/src/iosMain/kotlin/at/asitplus/signum/supreme/os/IosKeychainProvider.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README needs small additions
#### Platform Signers | ||
|
||
On Android and iOS, signers using the systems' secure key storage can be retrieved. | ||
To do this, use `PlatformSigningProvider` (in common code), or interact with `AndroidKeystoreProvider`/`IosKeychainProvider` (in platform-specific code). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JKS signer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JKS signer is not a PlatformSigningProvider
right now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a note
This reverts commit becb46f.
No description provided.