mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-12 16:47:42 -05:00
Support for selecting AES from the GUI. In the process, I've had to
introduce another layer of abstraction in SSH2 ciphers, such that a single `logical cipher' (as desired by a user) can equate to more than one `physical cipher'. This is because AES comes in several key lengths (PuTTY will pick the highest supported by the remote end) and several different SSH2-protocol-level names (aes*-cbc, rijndael*-cbc, and an unofficial one rijndael-cbc@lysator.liu.se). [originally from svn r967]
This commit is contained in:
11
ssh.h
11
ssh.h
@ -95,6 +95,12 @@ void SHA_Simple(void *p, int len, unsigned char *output);
|
||||
|
||||
struct ssh_cipher {
|
||||
void (*sesskey)(unsigned char *key); /* for ssh 1 */
|
||||
void (*encrypt)(unsigned char *blk, int len);
|
||||
void (*decrypt)(unsigned char *blk, int len);
|
||||
int blksize;
|
||||
};
|
||||
|
||||
struct ssh2_cipher {
|
||||
void (*setcsiv)(unsigned char *key); /* for ssh 2 */
|
||||
void (*setcskey)(unsigned char *key); /* for ssh 2 */
|
||||
void (*setsciv)(unsigned char *key); /* for ssh 2 */
|
||||
@ -106,6 +112,11 @@ struct ssh_cipher {
|
||||
int keylen;
|
||||
};
|
||||
|
||||
struct ssh2_ciphers {
|
||||
int nciphers;
|
||||
struct ssh2_cipher **list;
|
||||
};
|
||||
|
||||
struct ssh_mac {
|
||||
void (*setcskey)(unsigned char *key);
|
||||
void (*setsckey)(unsigned char *key);
|
||||
|
Reference in New Issue
Block a user