aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/tls/TlsCipher.java
blob: 6a8f6bc0c390bee039b7984c4cbd077c081c695b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package org.spongycastle.crypto.tls;

import java.io.IOException;

public interface TlsCipher
{
    int getPlaintextLimit(int ciphertextLimit);

    byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len)
        throws IOException;

    byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len)
        throws IOException;
}