public class COSFilterAESDecryptionDefault extends ASBufferedInFilter
BF_BUFFER_SIZE, buffernPos, resourceUsers| Constructor and Description |
|---|
COSFilterAESDecryptionDefault(ASInputStream stream,
COSKey objectKey,
byte[] encryptionKey,
boolean decryptingCOSStream,
ASAtom method)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read(byte[] buffer,
int size) |
addToBuffer, bufferPop, bufferPopArray, bufferSize, closeResource, concatenate, decode, feedBuffer, getBufferBegin, getBufferCapacity, getBufferEnd, getReadCounter, initialize, isEOF, peek, peek, processBuffer, read, readByte, reset, resetReadCounter, skip, unread, unreadclose, getInputStream, incrementResourceUsers, read, setInputStreamcreateStreamFromStreamavailable, mark, markSupported, read, skippublic COSFilterAESDecryptionDefault(ASInputStream stream, COSKey objectKey, byte[] encryptionKey, boolean decryptingCOSStream, ASAtom method) throws IOException, GeneralSecurityException
stream - is stream with encrypted data.objectKey - contains object and generation numbers from object
identifier for object that is being decrypted. If it is
direct object, objectKey is taken from indirect object
that contains it.encryptionKey - is encryption key that is calculated from user
password and encryption dictionary.method - value of CFM key in crypt filter dictionary, should
be AESV2 or AESV3.IOExceptionGeneralSecurityExceptionpublic int read(byte[] buffer,
int size)
throws IOException
read in class ASBufferedInFilterIOExceptionCopyright © 2015–2017 The veraPDF Consortium. All rights reserved.