diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2022-01-18 17:40:16 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 17:40:16 +0530 |
| commit | 5509558eedbcd90f130b32d4e6c41632da291b15 (patch) | |
| tree | 7b6839928889698ebe0da48a83b2e1532ed6d094 /crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKey.kt | |
| parent | 3ead6596ba9c2b65434f6cd948bf6ebf41a230eb (diff) | |
| download | HardenedPass-5509558eedbcd90f130b32d4e6c41632da291b15.tar.gz HardenedPass-5509558eedbcd90f130b32d4e6c41632da291b15.zip | |
Parameterize key and key identifier types for KeyManager (#1669)
Diffstat (limited to 'crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKey.kt')
| -rw-r--r-- | crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKey.kt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKey.kt b/crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKey.kt new file mode 100644 index 00000000..2e1311a1 --- /dev/null +++ b/crypto-pgpainless/src/main/kotlin/dev/msfjarvis/aps/crypto/PGPKey.kt @@ -0,0 +1,12 @@ +/* + * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + * SPDX-License-Identifier: GPL-3.0-only + */ + +package dev.msfjarvis.aps.crypto + +/** + * A simple value class wrapping over a [ByteArray] that can represent a PGP key. The implementation + * details of public/ private parts as well as identities are deferred to [PGPKeyManager]. + */ +@JvmInline public value class PGPKey(public val contents: ByteArray) |
