This repository was archived by the owner on Dec 15, 2022. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork141
C# wrapper for the popular OpenSSL libraries
License
Unknown, Unknown licenses found
Licenses found
Unknown
LICENSEUnknown
COPYINGNotificationsYou must be signed in to change notification settings
openssl-net/openssl-net
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
OpenSSL.NET - READMEDescription-----------A managed OpenSSL wrapper written in C# for the 2.0 .NET Framework thatexposes both the Crypto API and the SSL API.This a must for .NET developers that need crypto but don't want to useMicrosoft's SSPI.This wrapper is based on version 1.0.0d of libeay32.dll and ssleay32.dll.Wrapper Example---------------The following is a partial example to show the general pattern of wrappingonto the C API.Take DSA and the following C prototypes:DSA * DSA_new(void);void DSA_free(DSA *dsa);int DSA_size(const DSA *dsa);int DSA_generate_key(DSA *dsa);int DSA_sign(int dummy, const unsigned char *dgst, int len, unsigned char *sigret, unsigned int *siglen, DSA *dsa);int DSA_verify(int dummy, const unsigned char *dgst, int len, const unsigned char *sigbuf, int siglen, DSA *dsa);Which gets wrapped as something akin to:public class DSA : IDisposable{ // calls DSA_new() public DSA(); // calls DSA_free() as needed ~DSA(); // calls DSA_free() as needed public void Dispose(); // returns DSA_size() public int Size { get; } // calls DSA_generate_key() public void GenerateKeys(); // calls DSA_sign() public byte[] Sign(byte[] msg); // returns DSA_verify() public bool Verify(byte[] msg, byte[] sig);}
About
C# wrapper for the popular OpenSSL libraries
Resources
License
Unknown, Unknown licenses found
Licenses found
Unknown
LICENSEUnknown
COPYINGUh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.