aws / aws/aws-encryption-sdk-java
Question : how to random access or skip during decryption
- Lingua principale
- Java
- Stelle
- 240
- Fork
- 125
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### 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:
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con l’API CryptoInputStream esistente e il relativo comportamento di input della cifratura suddivisa in frame, quindi confronta InputStream.skip con il supporto richiesto per Readable Channel. Il lavoro è completato quando un chiamante può gestire un intervallo di indirizzi casuale cercando il frame pertinente ed evitando la decrittografia e l’I/O per i byte scartati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, java
- Ambito
- security
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100