mirror of
https://github.com/D-Modem/retrossl.git
synced 2026-11-28 12:38:06 -08:00
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
11 lines
357 B
Go
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) }
|