-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
51 additions
and
254 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
crypto_onetimeauth_poly1305 | ||
aes | ||
crypto_core_aes128encrypt | ||
crypto_core_aes256encrypt | ||
randombytes | ||
uint32_pack | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
#include "crypto.h" | ||
|
||
/* crypto type */ | ||
#define sshcrypto_TYPEOLDCRYPTO 0x1 /* ecdsa-sha2-nistp256, ecdh-sha2-nistp256, aes128-ctr, aes256-ctr, hmac-sha2-256 */ | ||
#define sshcrypto_TYPEOLDCRYPTO 0x1 /* ecdsa-sha2-nistp256, ecdh-sha2-nistp256, aes256-ctr, hmac-sha2-256 */ | ||
#define sshcrypto_TYPENEWCRYPTO 0x2 /* ssh-ed25519, [email protected], [email protected] */ | ||
#define sshcrypto_TYPEPQCRYPTO 0x4 /* TODO, TODO, [email protected] */ | ||
|
||
|
@@ -165,8 +165,6 @@ extern int chachapoly_packet_get(struct buf *); | |
/* from sshcrypto_cipher_aesctr.c */ | ||
extern void aesctr_packet_put(struct buf *); | ||
extern int aesctr_packet_get(struct buf *); | ||
/* from sshcrypto_cipher_aesctr128.c */ | ||
extern int aesctr128_xor(unsigned char *, const unsigned char *, unsigned long long, const unsigned char *, const unsigned char *); | ||
/* from sshcrypto_cipher_aesctr256.c */ | ||
extern int aesctr256_xor(unsigned char *, const unsigned char *, unsigned long long, const unsigned char *, const unsigned char *); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,19 +28,6 @@ struct sshcrypto_cipher sshcrypto_ciphers[] = { | |
0 | ||
}, | ||
#endif | ||
#if defined(crypto_core_aes128encrypt_KEYBYTES) && defined(crypto_auth_hmacsha256_BYTES) | ||
{ "aes128-ctr", | ||
aesctr128_xor, | ||
crypto_auth_hmacsha256, | ||
crypto_core_aes128encrypt_KEYBYTES, | ||
16, | ||
crypto_auth_hmacsha256_BYTES, | ||
aesctr_packet_put, | ||
aesctr_packet_get, | ||
sshcrypto_TYPEOLDCRYPTO, | ||
0 | ||
}, | ||
#endif | ||
#if defined(crypto_core_aes256encrypt_KEYBYTES) && defined(crypto_auth_hmacsha256_BYTES) | ||
{ "aes256-ctr", | ||
aesctr256_xor, | ||
|
@@ -138,7 +125,7 @@ void sshcrypto_cipher_put(struct buf *b) { | |
} | ||
|
||
/* | ||
XXX we support only hmac-sha2-256 with aes128-ctr and aes256-ctr | ||
XXX we support only hmac-sha2-256 with aes256-ctr | ||
for [email protected] is hmac-sha2-256 string ignored | ||
*/ | ||
void sshcrypto_cipher_macput(struct buf *b) { | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.