aws / aws/aws-encryption-sdk-java
Question : how to random access or skip during decryption
- Langage dominant
- Java
- Étoiles
- 240
- Forks
- 125
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### Problem:
I have a need to handle large files and service a random address range for decryption.
Looking throgh the exampes I dont see an effecient way to do this.
It seems that the underlying encryption data is framed, but the CryptoInputStream doesn't skip in an input stream, and there isnt a support for a Readable Channel that I am aware of
### Solution:
With the existing API - I could use skip in the InputStream, but this will (as I see it) decrypt and throw away the skipped bytes, with extra I/O and CPU load
With an enhanced implementation we could skip on the input stream to the start of a frame and then decrypt that frame (skipping internally to the offset needed by decodng and thowin a few bytes if needed)
### Out of scope:
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par l’API CryptoInputStream existante et son comportement d’entrée de données chiffrées avec trames, puis comparez InputStream.skip avec la prise en charge demandée de Readable Channel. La tâche est terminée lorsqu’un appelant peut traiter une plage d’adresses aléatoire en se positionnant sur la trame pertinente et en évitant le déchiffrement et les I/O pour les octets ignorés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, java
- Domaine
- security
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100