Skip to content

Commit 09dd9ae

Browse files
committed
docs: add remark for sensitive data
1 parent 933ab6d commit 09dd9ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Yubico.YubiKey/src/Yubico/YubiKey/Piv/Converters/KeyExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static Memory<byte> EncodeAsPiv(this IPublicKey parameters) =>
5353
/// <param name="parameters">The private key parameters to encode.</param>
5454
/// <returns>A BER encoded byte array containing the encoded private key.</returns>
5555
/// <exception cref="ArgumentException">Thrown when the key type is not supported or when RSA key components have invalid lengths.</exception>
56+
/// <remarks>This method returns a newly allocated array containing sensitive information.</remarks>
5657
public static Memory<byte> EncodeAsPiv(this IPrivateKey parameters) =>
5758
parameters switch
5859
{

0 commit comments

Comments
 (0)