File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Yubico.YubiKey/tests/integration/Yubico/YubiKey/Piv Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public void MoveKey_WithImportedKey(KeyType expectedAlgorithm)
78
78
79
79
var ( publicKey , privateKey ) = TestKeys . GetKeyPair ( expectedAlgorithm ) ;
80
80
var importedPrivateKey = AsnPrivateKeyReader . CreateKeyParameters ( privateKey . EncodedKey ) ;
81
- var importedPublicKey = AsnPrivateKeyReader . CreateKeyParameters ( publicKey . EncodedKey ) ;
81
+ var importedPublicKey = AsnPublicKeyReader . CreateKeyParameters ( publicKey . EncodedKey ) ;
82
82
83
83
pivSession . ImportPrivateKey ( sourceSlot , importedPrivateKey ) ;
84
84
@@ -90,7 +90,7 @@ public void MoveKey_WithImportedKey(KeyType expectedAlgorithm)
90
90
Assert . Throws < InvalidOperationException > ( ( ) => pivSession . GetMetadata ( sourceSlot ) ) ;
91
91
92
92
var destinationMetadata = pivSession . GetMetadata ( destinationSlot ) ;
93
- Assert . Equal ( importedPublicKey . ToPivEncodedPrivateKey ( ) , destinationMetadata . PublicKeyParameters . ToPivEncodedPublicKey ( ) ) ;
93
+ Assert . Equal ( importedPublicKey . ToPivEncodedPublicKey ( ) , destinationMetadata . PublicKeyParameters . ToPivEncodedPublicKey ( ) ) ;
94
94
}
95
95
96
96
[ SkippableTheory ( typeof ( NotSupportedException ) ) ]
You can’t perform that action at this time.
0 commit comments