Skip to content

Commit

Permalink
update casing
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Hartvig Grønbech committed Mar 26, 2024
1 parent ae65864 commit b962ec4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ codeunit 1445 RSACryptoServiceProvider
/// <summary>
/// The CreateRSAKeyPair procedure is a function that generates a public and private RSA key pair.
/// </summary>
/// <param name="PublicKeyInXML">This is an output parameter that returns the public key in XML format.</param>
/// <param name="PrivateKeyInXML">This is an output parameter that returns the private key in XML format. This is a sensitive information hence marked as SecretText.</param>
/// <param name="PublicKeyInXml">This is an output parameter that returns the public key in XML format.</param>
/// <param name="PrivateKeyInXml">This is an output parameter that returns the private key in XML format. This is a sensitive information hence marked as SecretText.</param>
/// <returns>
/// This function does not return a value. The output is via the two parameters PublicKeyInXML and PrivateKeyInXML.
/// This function does not return a value. The output is via the two parameters PublicKeyInXml and PrivateKeyInXml.
/// </returns>
procedure CreateRSAKeyPair(var PublicKeyInXML: Text; var PrivateKeyInXML: SecretText)
procedure CreateRSAKeyPair(var PublicKeyInXml: Text; var PrivateKeyInXml: SecretText)
begin
RSACryptoServiceProviderImpl.CreateRSAKeyPair(PublicKeyInXML, PrivateKeyInXML);
RSACryptoServiceProviderImpl.CreateRSAKeyPair(PublicKeyInXml, PrivateKeyInXml);
end;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ codeunit 1446 "RSACryptoServiceProvider Impl." implements "Signature Algorithm v
end;

[NonDebuggable]
procedure CreateRSAKeyPair(var PublicKeyInXML: Text; var PrivateKeyInXML: SecretText)
procedure CreateRSAKeyPair(var PublicKeyInXml: Text; var PrivateKeyInXml: SecretText)
var
DotnetRSA: DotNet RSA;
begin
RSACryptoServiceProvider();
DotnetRSA := DotNetRSACryptoServiceProvider.Create();
PublicKeyInXML := DotnetRSA.ToXmlString(false);
PrivateKeyInXML := DotnetRSA.ToXmlString(true);
PublicKeyInXml := DotnetRSA.ToXmlString(false);
PrivateKeyInXml := DotnetRSA.ToXmlString(true);
end;

#region SignData
Expand Down

0 comments on commit b962ec4

Please sign in to comment.