Skip to main content
Version: 2.x

Class NativeCryptoMethods

Import odin_crypto function signatures to wrapper delegates

Declaration
public class NativeCryptoMethods : NativeMethods<OdinCryptoHandle>

Inheritance: System.Object -> OdinNative.Core.Imports.NativeMethods<T>

Methods​

CryptoCreate(string)​

OdinNative.Core.Imports.NativeCryptoMethods.OdinCryptoCreateDelegate

Declaration
public OdinCipherHandle CryptoCreate(string version = "2.2.1")
Returns​

OdinNative.Core.Imports.OdinCipherHandle

Parameters​
TypeName
System.Stringversion

CryptoGetPeerStatus(OdinCipherHandle, ulong)​

OdinNative.Core.Imports.NativeCryptoMethods.OdinCryptoGetPeerStatusDelegate

Declaration
public NativeBindings.OdinCryptoPeerStatus CryptoGetPeerStatus(OdinCipherHandle cipher, ulong peer_id)
Returns​

OdinNative.Core.Imports.NativeBindings.OdinCryptoPeerStatus

Parameters​
TypeName
OdinNative.Core.Imports.OdinCipherHandlecipher
System.UInt64peer_id

CryptoSetPassword(OdinCipherHandle, string)​

OdinNative.Core.Imports.NativeCryptoMethods.OdinCryptoSetPasswordDelegate

Declaration
public int CryptoSetPassword(OdinCipherHandle cipher, string password)
Returns​

System.Int32

Parameters​
TypeName
OdinNative.Core.Imports.OdinCipherHandlecipher
System.Stringpassword