MCPcopy Create free account
hub / github.com/Maschell/JNUSTool / decryptContent

Method decryptContent

src/de/mas/jnustool/util/Decryption.java:393–402  ·  view source on GitHub ↗
(FEntry fileEntry,String outputPath)

Source from the content-addressed store, hash-verified

391 }
392
393 public byte[] decryptContent(FEntry fileEntry,String outputPath) throws IOException {
394 InputStream input = new FileInputStream(fileEntry.getContentPath());
395 ByteArrayOutputStream bos = new ByteArrayOutputStream();
396
397 decryptStream(input,bos,fileEntry);
398
399 byte[] result = bos.toByteArray();
400 bos.close();
401 return result;
402 }
403
404
405 public void decrypt(FEntry fileEntry,String outputPath) throws IOException {

Callers

nothing calls this directly

Calls 2

decryptStreamMethod · 0.95
getContentPathMethod · 0.45

Tested by

no test coverage detected