SshCipherContext¶
Constructors¶
aes_256_gcm¶
new ref aes_256_gcm(
key: Array[U8 val] val,
iv: Array[U8 val] val,
encrypting: Bool val)
: SshCipherContext ref^ ?
Parameters¶
Returns¶
- SshCipherContext ref^ ?
aes_128_gcm¶
new ref aes_128_gcm(
key: Array[U8 val] val,
iv: Array[U8 val] val,
encrypting: Bool val)
: SshCipherContext ref^ ?
Parameters¶
Returns¶
- SshCipherContext ref^ ?
aes_256_ctr¶
new ref aes_256_ctr(
key: Array[U8 val] val,
iv: Array[U8 val] val,
encrypting: Bool val)
: SshCipherContext ref^ ?
Parameters¶
Returns¶
- SshCipherContext ref^ ?
aes_128_cbc¶
new ref aes_128_cbc(
key: Array[U8 val] val,
iv: Array[U8 val] val,
encrypting: Bool val)
: SshCipherContext ref^ ?
Parameters¶
Returns¶
- SshCipherContext ref^ ?
chacha20_poly1305_raw¶
ChaCha20-Poly1305 with explicit key and nonce (8 or 12 bytes).
new ref chacha20_poly1305_raw(
key: Array[U8 val] val,
nonce: Array[U8 val] val,
encrypting: Bool val)
: SshCipherContext ref^ ?
Parameters¶
Returns¶
- SshCipherContext ref^ ?
Public Functions¶
set_aad¶
Set additional authenticated data for AEAD ciphers (GCM). Must be called before encrypt/decrypt.
Parameters¶
Returns¶
- None val ?
encrypt¶
Parameters¶
Returns¶
set_tag¶
Parameters¶
Returns¶
- None val ?
tag_value¶
Returns¶
decrypt¶
Parameters¶
Returns¶
- (Array[U8 val] val | SshCryptoError)
encrypt_stream¶
Streaming encrypt (Update only, no Final). For CTR/CBC where the cipher context persists across packets.
Parameters¶
Returns¶
decrypt_stream¶
Streaming decrypt (Update only, no Final). For CTR/CBC where the cipher context persists across packets.