Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TlsCipher.java « tls « crypto « spongycastle « org « java « main « src « core - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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;
}