org.jpedal.io.security.BaseDecryption Maven / Gradle / Ivy
/*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C) Copyright 1997-2017 IDRsolutions and Contributors.
*
* This file is part of JPedal/JPDF2HTML5
*
@LICENSE@
*
* ---------------
* BaseDecryption.java
* ---------------
*/
package org.jpedal.io.security;
import java.security.Key;
import java.security.cert.Certificate;
import org.jpedal.exception.PdfSecurityException;
public interface BaseDecryption {
byte[] v5Decrypt(final byte[] rawValue, final byte[] key) throws PdfSecurityException;
byte[] decodeAES(final byte[] encKey, final byte[] encData, final byte[] ivData) throws Exception;
byte[] readCertificate(final byte[][] recipients, final Certificate certificate, final Key key);
}