hwsecurity-openpgp / de.cotech.hw.openpgp.util
Package de.cotech.hw.openpgp.util
Types
Name | Summary |
---|---|
DecryptingFileInputStream |
An InputStream that decrypts data with a ByteSecret. See DecryptingFileInputStream. |
EncryptingFileOutputStream |
An OutputStream that encrypts data with a ByteSecret.
Internally, this uses AES-GCM for authenticated encryption. The randomly generated nonce is stored as part of the file. |
ParcelFileDescriptorUtil |
Utility class for loading streamed data into a seekable ParcelFileDescriptor. This covers the use case of passing streaming data via an ACTION_SEND or similar Intent, without caching to a file. This is especially useful for encrypted files, e.g. from a DecryptingFileInputStream. Unlike ParcelFileDescriptors obtained from a ParcelFileDescriptor#createPipe(), this method returns a seekable ParcelFileDescriptor. In practice, virtually all receivers of Intents with streamed data require seekable file descriptors. android.content.ContentProvider
Internally, this uses one of two mechanisms:
Note: in our tests, the technique of extracting the internal file descriptor of a MemoryFile using reflection did not actually yield a seekable ParcelFileDescriptor that worked as intended. |
RsaEncryptionUtil |
open class RsaEncryptionUtil
|