-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#50 - Added functionality to show both the algorithm and size in the …
…same label into the key details component. #58 - Added functionality to show the user ID into the key details component.
- Loading branch information
1 parent
14b58a3
commit 82f8e7c
Showing
11 changed files
with
228 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package api | ||
|
||
type Algorithm interface { | ||
HasKeySize() bool | ||
Name() string | ||
} | ||
|
||
type algorithm struct { | ||
hasKeySize bool | ||
name string | ||
} | ||
|
||
func (a *algorithm) HasKeySize() bool { | ||
return a.hasKeySize | ||
} | ||
|
||
func (a *algorithm) Name() string { | ||
return a.name | ||
} | ||
|
||
var RSA Algorithm = &algorithm{hasKeySize: true, name: "RSA"} | ||
var Ed25519 Algorithm = &algorithm{hasKeySize: false, name: "Ed25519"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.