Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rickette
· 9y ago · 0 comments
Just took a quick look at the crypto implementation. It uses AES-256 in CBC mode but..... without an authentication tag (HMAC).
Comments
[–]
mikeycgto
9y ago
Also known as "The Cryptographic Doom Principle".
https://moxie.org/blog/the-cryptographic-doom-principle/
[–]
Cyphase
9y ago
I hadn't come across that post that I can remember; a very nice explanation by Moxie. Thanks.
[–]
beefsack
9y ago
There is an official (albeit experimental) NaCl implementation for Go which would probably have both been simpler and stronger to use:
https://godoc.org/golang.org/x/crypto/nacl
[–]
miovoid
9y ago
We are working on AES-GCM encryption.
[–]
tptacek
9y ago
Why did you use CBC? It's actually harder than crypto/cipher.AEAD, and what you're doing now seems insecure.
[–]
miovoid
9y ago
Because it is easy to use to separate UDP datagrams.
[–]
problems
9y ago
In what way? Are you relying on CBC padding to determine packet size?
[–]
tptacek
9y ago
I don't think that's the case.