DotNetLightning


ICryptoImpl Type

Instance members

Instance member Description

this.decryptWithAD (nonce, key, ad, cipherText)

Full Usage: this.decryptWithAD (nonce, key, ad, cipherText)

Parameters:
Returns: Result<byte array, CryptoError>
Modifiers: abstract
nonce : uint64
key : uint256
ad : byte array
cipherText : ReadOnlySpan<byte>
Returns: Result<byte array, CryptoError>

this.encryptWithAD (nonce, key, ad, plainText)

Full Usage: this.encryptWithAD (nonce, key, ad, plainText)

Parameters:
Returns: byte array
Modifiers: abstract
nonce : uint64
key : uint256
ad : ReadOnlySpan<byte>
plainText : ReadOnlySpan<byte>
Returns: byte array

this.encryptWithoutAD (nonce, key, plainText)

Full Usage: this.encryptWithoutAD (nonce, key, plainText)

Parameters:
    nonce : uint64
    key : byte array
    plainText : ReadOnlySpan<byte>

Returns: byte array
Modifiers: abstract

This is used for filler generation in onion routing (BOLT 4)

nonce : uint64
key : byte array
plainText : ReadOnlySpan<byte>
Returns: byte array

this.newSecp256k1 ()

Full Usage: this.newSecp256k1 ()

Returns: ISecp256k1
Modifiers: abstract
Returns: ISecp256k1