aes128 completely done.
ish. done-ish. it's entirely untested. CTR should work as i modeled it after PoC, and CBC *probably* works as it's straightforward, but I have no idea about the GCM. TODO.
This commit is contained in:
3
TODO
3
TODO
@@ -5,6 +5,9 @@
|
||||
- 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
|
||||
|
||||
-- finish trimming copypasta for aes.
|
||||
we COULD have a unified AllocateEncrypt and AllocatedDecrypt for AesCipher, but that'd require a func argument for encryption/decryption - which means
|
||||
|
||||
provide marshal, unmarshal for keytypes/* keys.
|
||||
https://golangexample.com/encode-and-decode-binary-message-and-file-formats-in-go/ (?)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user