adding GPL

This commit is contained in:
bts committed 2020-09-18 18:01:16 -04:00
1 parent c3a116c140
commit 382aaffa39
26 files changed
+1225 -7

No files matched your search

+20 -2
View File
@@ -1,3 +1,21 @@
/*
SSHSecure - a program to harden OpenSSH from defaults
Copyright (C) 2020 Brent Saner
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package sshkeys
import (
@@ -8,7 +26,6 @@ import (
// EncryptedSSHKeyV1 represents an encrypted private key.
type EncryptedSSHKeyV1 struct {
SSHKeyV1
CipherName string
Crypt SSHCrypt
KDFOpts SSHKDFOpts
Passphrase []byte
@@ -30,13 +47,14 @@ type SSHKDFOpts struct {
Rounds uint32 // Also referred to as work factor.
}
// SSHKeyV1 represents an unencrypted private key.
// SSHKeyV1 represents a private key.
// We don't bother with the legacy (pre v1) keys. Sorry not sorry.
// Patch your shit.
type SSHKeyV1 struct {
Magic string
DefKeyType string
KDFName string
CipherName string
KeySize uint32
BlockSize uint32
Keys []SSHPrivKey // 1 by default.