You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/SetManagementKeyCommand.cs
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ public sealed class SetManagementKeyCommand : IYubiKeyCommand<SetManagementKeyRe
137
137
/// 5.4.2, only Triple-DES (<c>PivAlgorithm.TripleDes</c>) is supported.
138
138
/// Beginning with 5.4.2, the Algorithm can be <c>Aes128</c>,
139
139
/// <c>Aes192</c>, <c>Aes256</c>, or <c>TripleDes</c>. The default is
140
-
/// <c>TripleDes</c>.
140
+
/// <c>TripleDes</c> for keys with firmware 5.6.x and earlier and <c>Aes192</c> for YubiKeys with firmware 5.7.x and later.
141
141
/// </summary>
142
142
publicPivAlgorithmAlgorithm{get;set;}
143
143
@@ -168,8 +168,7 @@ public SetManagementKeyCommand(ReadOnlyMemory<byte> newKey)
168
168
/// <summary>
169
169
/// Initializes a new instance of the <c>SetManagementKeyCommand</c> class.
170
170
/// This command takes the new management key as input and will set the
171
-
/// <c>TouchPolicy</c> and <c>Algorithm</c> properties to their
172
-
/// respective defaults.
171
+
/// <c>TouchPolicy</c> to the default state and the <c>Algorithm</c> to the algorithm provided.
173
172
/// </summary>
174
173
/// <remarks>
175
174
/// This constructor is provided for those developers who want to use the
@@ -184,7 +183,7 @@ public SetManagementKeyCommand(ReadOnlyMemory<byte> newKey)
184
183
/// <para>
185
184
/// Valid algorithms are <c>PivAlgorithm.TripleDes</c>,
186
185
/// <c>PivAlgorithm.Aes128</c>, <c>PivAlgorithm.Aes192</c>, and
187
-
/// <c>PivAlgorithm.Aes256</c>. FIPS YubiKeys versions 5.7 and greater require <c>PivAlgorithm.Aes192</c>.
186
+
/// <c>PivAlgorithm.Aes256</c>. FIPS YubiKeys versions 5.7 and greater require <c>PivAlgorithm.Aes192</c>. YubiKeys with firmware versions prior to 5.4.2 can only use <c>PivAlgorithm.TripleDes</c>.
188
187
/// </para>
189
188
/// <para>
190
189
/// Note that you need to authenticate the current PIV management key before
@@ -219,7 +218,7 @@ public SetManagementKeyCommand(ReadOnlyMemory<byte> newKey, PivTouchPolicy touch
219
218
/// <para>
220
219
/// Valid algorithms are <c>PivAlgorithm.TripleDes</c>,
221
220
/// <c>PivAlgorithm.Aes128</c>, <c>PivAlgorithm.Aes192</c>, and
222
-
/// <c>PivAlgorithm.Aes256</c>. FIPS YubiKeys versions 5.7 and greater require <c>PivAlgorithm.Aes192</c>.
221
+
/// <c>PivAlgorithm.Aes256</c>. FIPS YubiKeys versions 5.7 and greater require <c>PivAlgorithm.Aes192</c>. YubiKeys with firmware versions prior to 5.4.2 can only use <c>PivAlgorithm.TripleDes</c>.
223
222
/// </para>
224
223
/// <para>
225
224
/// Note also that you need to authenticate the current PIV management
/// Set the YubiKey's PIV application to be PIN-only with a PIN-derived
516
-
/// and/or PIN-Protected management key (Firmware 5.7.x and later: AES-192. Firmware 5.6.x and earlier: TDES.). This sets the
516
+
/// and/or PIN-Protected management key. The default management key algorithm will be used (AES-192 for YubiKeys with firmware 5.7.x and later, TDES for keys with firmware 5.6.x and earlier). This sets the
0 commit comments