Skip to content

Commit

Permalink
removed aes128
Browse files Browse the repository at this point in the history
  • Loading branch information
janmojzis committed Aug 11, 2016
1 parent 72cfe9b commit 35a4bca
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 254 deletions.
116 changes: 0 additions & 116 deletions crypto-tests/crypto_core_aes128encrypttest.c

This file was deleted.

1 change: 0 additions & 1 deletion crypto/CRYPTOLIBS
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
crypto_onetimeauth_poly1305.o
aes.o
crypto_core_aes128encrypt.o
crypto_core_aes256encrypt.o
randombytes.o
uint32_pack.o
Expand Down
1 change: 0 additions & 1 deletion crypto/CRYPTOPRIMITIVES
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ crypto_hash_sha512 1
crypto_hash_sha256 1
crypto_verify_16 1
crypto_verify_32 1
crypto_core_aes128encrypt 1
crypto_core_aes256encrypt 1
crypto_scalarmult_curve25519 1
crypto_scalarmult_nistp256 1
Expand Down
1 change: 0 additions & 1 deletion crypto/CRYPTOSOURCES
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
Expand Down
14 changes: 0 additions & 14 deletions crypto/crypto_core_aes128encrypt.c

This file was deleted.

18 changes: 0 additions & 18 deletions crypto/crypto_core_aes128encrypt.h

This file was deleted.

2 changes: 1 addition & 1 deletion man/tinysshd.8
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ print error messages (default)
print extra information
.TP
.B \-o
enable older standardized crypto \- ecdsa\-sha2\-nistp256, ecdh\-sha2\-nistp256, aes128\-ctr, aes256\-ctr, hmac\-sha2\-256
enable older standardized crypto \- ecdsa\-sha2\-nistp256, ecdh\-sha2\-nistp256, aes256\-ctr, hmac\-sha2\-256
.TP
.B \-O
disable older standardized crypto (default)
Expand Down
1 change: 0 additions & 1 deletion tinyssh/LIBS
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ porttostr.o
randommod.o
readall.o
savesync.o
sshcrypto_cipher_aesctr128.o
sshcrypto_cipher_aesctr256.o
sshcrypto_cipher_aesctr.o
sshcrypto_cipher_chachapoly.o
Expand Down
1 change: 0 additions & 1 deletion tinyssh/SOURCES
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ ssh
sshcrypto
sshcrypto_cipher
sshcrypto_cipher_aesctr
sshcrypto_cipher_aesctr128
sshcrypto_cipher_aesctr256
sshcrypto_cipher_chachapoly
sshcrypto_kex
Expand Down
4 changes: 1 addition & 3 deletions tinyssh/sshcrypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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] */

Expand Down Expand Up @@ -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 *);

Expand Down
15 changes: 1 addition & 14 deletions tinyssh/sshcrypto_cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down
35 changes: 0 additions & 35 deletions tinyssh/sshcrypto_cipher_aesctr128.c

This file was deleted.

Loading

0 comments on commit 35a4bca

Please sign in to comment.