Add support for more key types

This commit is contained in:
cheddar 2025-02-20 22:53:18 -05:00
parent b1e4a0cf72
commit 001a4b4ac5
No known key found for this signature in database
14 changed files with 98 additions and 48 deletions

View file

@ -28,7 +28,7 @@ func (dir inMemoryDirectory) GetKey(ctx context.Context, keyId string, _ string)
return entry.toAlg()
}
func (dir inMemoryDirectory) RegisterKey(key crypto.PublicKey, alg string, userId string) (string, error) {
func (dir inMemoryDirectory) RegisterKey(key crypto.PublicKey, userId string) (string, error) {
keyId, err := generateKeyId()
if err != nil {
@ -36,7 +36,6 @@ func (dir inMemoryDirectory) RegisterKey(key crypto.PublicKey, alg string, userI
}
dir.records[keyId] = keyEntry{
Alg: alg,
PublicKey: key,
UserId: userId,
}