From ff3f8243d169a475551bca257a8cae3e854f07c0 Mon Sep 17 00:00:00 2001 From: brent s Date: Mon, 25 Apr 2022 04:27:24 -0400 Subject: [PATCH] bcrypt and null kdf done, work on ciphers next (then keytypes) --- TODO | 2 - _ref/KEY_GUIDE.html | 79 +++++++++- _ref/docinfo.html | 77 ++++++++++ cipher/aes/aes128/cbc/TODO | 1 + cipher/aes/aes128/cbc/consts.go | 5 + cipher/aes/aes128/consts.go | 10 ++ cipher/aes/aes128/ctr/TODO | 1 + cipher/aes/aes128/ctr/consts.go | 5 + cipher/aes/aes128/gcm/TODO | 1 + cipher/aes/aes128/gcm/consts.go | 5 + cipher/aes/aes192/cbc/TODO | 1 + cipher/aes/aes192/cbc/consts.go | 5 + cipher/aes/aes192/consts.go | 10 ++ cipher/aes/aes192/ctr/TODO | 1 + cipher/aes/aes192/ctr/consts.go | 5 + cipher/aes/aes192/gcm/TODO | 1 + cipher/aes/aes192/gcm/consts.go | 5 + cipher/aes/aes256/cbc/TODO | 1 + cipher/aes/aes256/cbc/consts.go | 5 + cipher/aes/aes256/consts.go | 10 ++ cipher/aes/aes256/ctr/TODO | 1 + cipher/aes/aes256/ctr/consts.go | 5 + cipher/aes/aes256/gcm/TODO | 1 + cipher/aes/aes256/gcm/consts.go | 5 + cipher/aes/consts.go | 10 ++ cipher/chacha20/poly1305/TODO | 1 + cipher/null/TODO | 1 + cipher/tripledes/cbc/TODO | 1 + cipher/types.go | 50 +++++++ kdf/bcrypt/consts.go | 11 ++ kdf/bcrypt/funcs.go | 246 ++++++++++++++++++++++++++++++++ kdf/bcrypt/types.go | 25 ++++ kdf/consts_bcrypt_pbkdf.go | 11 -- kdf/consts_null.go | 5 - kdf/{ => errs}/errs.go | 2 +- kdf/funcs.go | 23 +-- kdf/funcs_bcrypt_pbkdf.go | 226 ----------------------------- kdf/funcs_null.go | 137 ------------------ kdf/null/consts.go | 5 + kdf/null/funcs.go | 137 ++++++++++++++++++ kdf/null/types.go | 4 + kdf/types.go | 31 +--- types/ed25519/types.go | 10 +- 43 files changed, 755 insertions(+), 423 deletions(-) create mode 100644 _ref/docinfo.html create mode 100644 cipher/aes/aes128/cbc/TODO create mode 100644 cipher/aes/aes128/cbc/consts.go create mode 100644 cipher/aes/aes128/consts.go create mode 100644 cipher/aes/aes128/ctr/TODO create mode 100644 cipher/aes/aes128/ctr/consts.go create mode 100644 cipher/aes/aes128/gcm/TODO create mode 100644 cipher/aes/aes128/gcm/consts.go create mode 100644 cipher/aes/aes192/cbc/TODO create mode 100644 cipher/aes/aes192/cbc/consts.go create mode 100644 cipher/aes/aes192/consts.go create mode 100644 cipher/aes/aes192/ctr/TODO create mode 100644 cipher/aes/aes192/ctr/consts.go create mode 100644 cipher/aes/aes192/gcm/TODO create mode 100644 cipher/aes/aes192/gcm/consts.go create mode 100644 cipher/aes/aes256/cbc/TODO create mode 100644 cipher/aes/aes256/cbc/consts.go create mode 100644 cipher/aes/aes256/consts.go create mode 100644 cipher/aes/aes256/ctr/TODO create mode 100644 cipher/aes/aes256/ctr/consts.go create mode 100644 cipher/aes/aes256/gcm/TODO create mode 100644 cipher/aes/aes256/gcm/consts.go create mode 100644 cipher/aes/consts.go create mode 100644 cipher/chacha20/poly1305/TODO create mode 100644 cipher/null/TODO create mode 100644 cipher/tripledes/cbc/TODO create mode 100644 cipher/types.go create mode 100644 kdf/bcrypt/consts.go create mode 100644 kdf/bcrypt/funcs.go create mode 100644 kdf/bcrypt/types.go delete mode 100644 kdf/consts_bcrypt_pbkdf.go delete mode 100644 kdf/consts_null.go rename kdf/{ => errs}/errs.go (97%) delete mode 100644 kdf/funcs_bcrypt_pbkdf.go delete mode 100644 kdf/funcs_null.go create mode 100644 kdf/null/consts.go create mode 100644 kdf/null/funcs.go create mode 100644 kdf/null/types.go diff --git a/TODO b/TODO index 7b0ef3f..4f907d6 100644 --- a/TODO +++ b/TODO @@ -4,5 +4,3 @@ --- ssh-rsa (sha1), rsa-sha2-256, rsa-sha2-512 (new default) - ciphers: -- 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com, chacha20-poly1305@openssh.com -- kdf --- bcrypt_pbkdf diff --git a/_ref/KEY_GUIDE.html b/_ref/KEY_GUIDE.html index cc17f01..adf2a32 100644 --- a/_ref/KEY_GUIDE.html +++ b/_ref/KEY_GUIDE.html @@ -651,13 +651,90 @@ pre.rouge { background-color: #f8f8f8; } + + + + + + + + + + +