-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(profiles): Remove pre-set profile name strings and refactor
- Remove profile name map - Rename Crypto Refresh profile to RFC9580 - Remove GnuPG profile
- Loading branch information
Showing
8 changed files
with
26 additions
and
77 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -545,7 +545,7 @@ func ExamplePGPHandle_KeyGeneration_basic() { | |
|
||
func ExamplePGPHandle_KeyGeneration_profile() { | ||
// Generate a PGP key with the crypto-refresh profile | ||
pgp := PGPWithProfile(profile.CryptoRefresh()) | ||
pgp := PGPWithProfile(profile.RFC9580()) | ||
genHandle := pgp.KeyGeneration(). | ||
AddUserId("Max Mustermann", "[email protected]"). | ||
New() | ||
|
@@ -559,7 +559,7 @@ func ExamplePGPHandle_KeyGeneration_profile() { | |
func ExamplePGPHandle_KeyGeneration_level() { | ||
// Generate a PGP key with the crypto-refresh profile | ||
// higher security level (Curve448) | ||
pgp := PGPWithProfile(profile.CryptoRefresh()) | ||
pgp := PGPWithProfile(profile.RFC9580()) | ||
genHandle := pgp.KeyGeneration(). | ||
AddUserId("Max Mustermann", "[email protected]"). | ||
New() | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,7 +186,7 @@ func TestMobile2GoReader(t *testing.T) { | |
} | ||
|
||
func setUpTestKeyRing() (*crypto.PGPHandle, *crypto.KeyRing, *crypto.KeyRing, error) { | ||
pgpHandle := crypto.PGPWithProfile(profile.GnuPG()) | ||
pgpHandle := crypto.PGPWithProfile(profile.Default()) | ||
testKey, err := pgpHandle.KeyGeneration(). | ||
AddUserId("test", "[email protected]"). | ||
New(). | ||
|
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