update format spec, working on better structs

This commit is contained in:
2020-09-11 23:53:55 -04:00
parent 6e032d8969
commit ff9fbdab69
3 changed files with 38 additions and 12 deletions

View File

@@ -5,8 +5,18 @@ const (
KeyV1Magic string = "openssh-key-v1"
)
// Key cipher names.
// Cipher names. I believe only AES256-CTR is supported upstream currently.
const (
CipherED25519 = iota
CipherRSA = iota
CIPHER_AES256_CTR = "aes256-ctr"
)
// Key types.
const (
KEY_ED25519 string = "ssh-ed25519"
KEY_RSA string = "ssh-rsa"
)
// KDF names. I believe only bcrypt is supported upstream currently.
const (
KDF_BCRYPT string = "bcrypt"
)