IdentityEncryptionHandlerState.java
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.internal.pdftoolkit.core.securityframework.EncryptionHandlerState
* com.adobe.internal.pdftoolkit.core.util.ByteOps
*/
package com.adobe.internal.pdftoolkit.core.encryption;
import com.adobe.internal.pdftoolkit.core.securityframework.EncryptionHandlerState;
import com.adobe.internal.pdftoolkit.core.util.ByteOps;
public final class IdentityEncryptionHandlerState
implements EncryptionHandlerState {
private static byte[] mEmpty = new byte[0];
public byte[] init(byte[] buffer, int start, int len, byte[] addKey, int mode) {
if (start == 0 && buffer.length == len) {
return buffer;
}
byte[] retBuf = new byte[len];
ByteOps.copy((byte[])buffer, (int)start, (byte[])retBuf, (int)0, (int)len);
return retBuf;
}
public byte[] update(byte[] buffer, int start, int len) {
if (start == 0 && buffer.length == len) {
return buffer;
}
byte[] retBuf = new byte[len];
ByteOps.copy((byte[])buffer, (int)start, (byte[])retBuf, (int)0, (int)len);
return retBuf;
}
public byte[] finish() {
return mEmpty;
}
}