Files
retrossl/helpers_test.go
Claude 18a4acc8f0 Add an SSL 2.0, SSL 3.0 and TLS 1.0 server for old clients
Starts from the BBS's oldtls (TLS 1.0 after an SSL 2.0-format hello),
released here under BSD 3-Clause, and adds SSL 3.0, SSL 2.0, the
export suites with signed temporary RSA keys, and a Frontend that sends
each connection to retrossl or crypto/tls by its first bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRH4kntyPfrY1bFWC3
2026-11-11 12:58:34 +00:00

11 lines
357 B
Go

package retrossl
import (
"crypto/cipher"
"crypto/rc4"
)
func rc4NewCipher(k []byte) (cipher.Stream, error) { return rc4.NewCipher(k) }
func cbcDecrypter(b cipher.Block, iv []byte) cipher.BlockMode { return cipher.NewCBCDecrypter(b, iv) }
func cbcEncrypter(b cipher.Block, iv []byte) cipher.BlockMode { return cipher.NewCBCEncrypter(b, iv) }