}
public TlsCipher createCipher(TlsClientContext context,
int encAlg, int digestAlg)
throws IOException {
TlsCipher cipher = super.createCipher(context, encAlg, digestAlg);
if (cipher instanceof TlsBlockCipher) {
tlsBlockCipher = (TlsBlockCipher) cipher;
} else {
throw new TlsFatalAlert(AlertDescription.internal_error);
}