Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

C# wrapper for the popular OpenSSL libraries

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
COPYING
NotificationsYou must be signed in to change notification settings

openssl-net/openssl-net

Repository files navigation

Description

A managedOpenSSL wrapper written in C# for the 2.0 .NET Framework that exposes both theCrypto API and theSSL API.

This a must for .NET developers that need crypto but don't want to use Microsoft's SSPI.

This wrapper is based on version 1.0.2a of libeay32.dll and ssleay32.dll.

Wrapper Example

The following is a partial example to show the general pattern of wrapping onto 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);}

Installation

Make sure you havelibeay32.dll andssleay32.dll in the current working directory of your application or in yourPATH.

In your .NET project, add a reference to theManagedOpenSsl.dll assembly.

Documentation

Take a look at the low-level C APIdocumentation.

License

The OpenSSL libraries are distributed under the terms of theOpenSSL License & SSLeay License; this library and related code are released under the BSD license, seeCOPYING for more details.

Team

This library is the product of many contributors, both directly, and indirectly, thanks to the great effort of the OpenSSL team. Thanks to all those that have contributed to this project - whether code, testing, support or anything else.

Maintainer:

For security issues, please contact the maintainer directly prior to opening a public ticket. Security issues will receive prompt attention and be handled as quickly as possible.

About

C# wrapper for the popular OpenSSL libraries

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp