From b38739f96008248fd5de13392d454d838d515e9a Mon Sep 17 00:00:00 2001 From: brent s Date: Fri, 29 Apr 2022 16:31:13 -0400 Subject: [PATCH] Sooo the golang ChaCha20-Poly1305 is broken. By design. It does not allow for the OpenSSH variant (https://github.com/golang/go/issues/36646). So I'll need to split out that package (and their internal poly1305 package) and maintain an internal variant of it. Ugh. --- _ref/KEY_GUIDE.html | 2 +- cipher/chacha20/poly1305/consts.go | 5 +++++ cipher/chacha20/poly1305/types.go | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 cipher/chacha20/poly1305/consts.go create mode 100644 cipher/chacha20/poly1305/types.go diff --git a/_ref/KEY_GUIDE.html b/_ref/KEY_GUIDE.html index 6bddde9..962ae87 100644 --- a/_ref/KEY_GUIDE.html +++ b/_ref/KEY_GUIDE.html @@ -734,7 +734,7 @@ pre.rouge {

OpenSSH Key Structure Guide

brent saner <bts@square-r00t.net>, https://r00t2.io
-Last updated 2022-04-29 04:09:49 -0400 +Last updated 2022-04-29 16:31:13 -0400
Table of Contents
diff --git a/cipher/chacha20/poly1305/consts.go b/cipher/chacha20/poly1305/consts.go new file mode 100644 index 0000000..eb005c6 --- /dev/null +++ b/cipher/chacha20/poly1305/consts.go @@ -0,0 +1,5 @@ +package poly1305 + +const ( + Name string = "chacha20-poly1305@openssh.com" +) diff --git a/cipher/chacha20/poly1305/types.go b/cipher/chacha20/poly1305/types.go new file mode 100644 index 0000000..3f38089 --- /dev/null +++ b/cipher/chacha20/poly1305/types.go @@ -0,0 +1,5 @@ +package poly1305 + +type Cipher struct { + Key []byte +}