DSACryptoServiceProvider.CreateSignature メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As DSACryptoServiceProvider Dim rgbHash As Byte() Dim returnValue As Byte() returnValue = instance.CreateSignature(rgbHash)
戻り値
指定したデータに対するデジタル署名。

DSACryptoServiceProvider クラスを使用してデータに署名するコード例を次に示します。
Try 'Create a new instance of DSACryptoServiceProvider. Dim DSA As New DSACryptoServiceProvider() 'The hash to sign. Dim Hash As Byte() = {59, 4, 248, 102, 77, 97, 142, 201, 210, 12, 224, 93, 25, 41, 100, 197, 213, 134, 130, 135} 'Sign the hash. Dim SignedHash As Byte() = DSA.CreateSignature(Hash) Catch e As CryptographicException Console.WriteLine(e.Message) End Try
try { //Create a new instance of DSACryptoServiceProvider. DSACryptoServiceProvider DSA = new DSACryptoServiceProvider(); //The hash to sign. byte[] Hash = {59,4,248,102,77,97,142,201,210,12,224,93,25,41,100,197,213,134 ,130,135}; //Sign the hash. byte[] SignedHash = DSA.CreateSignature(Hash); } catch(CryptographicException e) { Console.WriteLine(e.Message); }
try { //Create a new instance of DSACryptoServiceProvider. DSACryptoServiceProvider^ DSA = gcnew DSACryptoServiceProvider; //The hash to sign. array<Byte>^ Hash = { 59, 4, 248, 102, 77, 97, 142, 201, 210, 12, 224, 93, 25, 41, 100, 197, 213, 134, 130, 135}; //Sign the hash. array<Byte>^ SignedHash = DSA->CreateSignature( Hash ); } catch ( CryptographicException^ e ) { Console::WriteLine( e->Message ); }
try { // Create a new instance of DSACryptoServiceProvider. DSACryptoServiceProvider dsa = new DSACryptoServiceProvider(); // The hash to sign. ubyte hash[] = { 59, 4, 248, 102, 77, 97, 142, 201, 210, 12, 224, 93, 25, 41, 100, 197, 213, 134, 130, 135 }; // Sign the hash. ubyte signedHash[] = dsa.CreateSignature(hash); } catch (CryptographicException e) { Console.WriteLine(e.get_Message()); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDSACryptoServiceProvider.CreateSignature メソッドを検索する場合は、下記のリンクをクリックしてください。

- DSACryptoServiceProvider.CreateSignature メソッドのページへのリンク