mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
Localise AESContext into sshaes.c.
All access to AES throughout the code is now done via the ssh2_cipher vtable interface. All code that previously made direct calls to the underlying functions (for encrypting and decrypting private key files) now does it by instantiating an ssh2_cipher. This removes constraints on the AES module's internal structure, and allows me to reorganise it as much as I like.
This commit is contained in:
11
ssh.h
11
ssh.h
@ -903,17 +903,6 @@ extern const ssh2_macalg ssh_hmac_sha256;
|
||||
extern const ssh2_macalg ssh2_poly1305;
|
||||
extern const ssh_compression_alg ssh_zlib;
|
||||
|
||||
typedef struct AESContext AESContext;
|
||||
AESContext *aes_make_context(void);
|
||||
void aes_free_context(AESContext *ctx);
|
||||
void aes128_key(AESContext *ctx, const void *key);
|
||||
void aes192_key(AESContext *ctx, const void *key);
|
||||
void aes256_key(AESContext *ctx, const void *key);
|
||||
void aes_iv(AESContext *ctx, const void *iv);
|
||||
void aes_ssh2_encrypt_blk(AESContext *ctx, void *blk, int len);
|
||||
void aes_ssh2_decrypt_blk(AESContext *ctx, void *blk, int len);
|
||||
void aes_ssh2_sdctr(AESContext *ctx, void *blk, int len);
|
||||
|
||||
/*
|
||||
* PuTTY version number formatted as an SSH version string.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user