Repository navigation
OnixLabs.Security.Cryptography.IEddsaPrivateKey
Defines an EdDSA cryptographic private key, as specified in RFC 8032 (Ed25519, PureEdDSA).
| Namespace | OnixLabs.Security.Cryptography |
| Assembly | OnixLabs.Security.Cryptography.dll (NuGet) |
| Implements |
IPrivateKeyDerivable<EddsaPublicKey>, IPrivateKeyRawImportable<EddsaPrivateKey>, IPrivateKeyPkcs8Importable<EddsaPrivateKey>, IPrivateKeyPemImportable<EddsaPrivateKey>, IPrivateKeyRawExportable, IPrivateKeyPkcs8Exportable, IPrivateKeyPkcs8PemExportable, IBinaryConvertible
|
public interface IEddsaPrivateKey :
IPrivateKeyDerivable<EddsaPublicKey>,
IPrivateKeyRawImportable<EddsaPrivateKey>,
IPrivateKeyPkcs8Importable<EddsaPrivateKey>,
IPrivateKeyPemImportable<EddsaPrivateKey>,
IPrivateKeyRawExportable,
IPrivateKeyPkcs8Exportable,
IPrivateKeyPkcs8PemExportable,
IBinaryConvertibleEdDSA (Ed25519/PureEdDSA) does not use a separate hash step — the algorithm incorporates hashing internally. Accordingly, IEddsaPrivateKey.SignData accepts raw data without an algorithm parameter. The interface also differs from the ECDSA and RSA key interfaces in that it explicitly lists the individual import/export capability interfaces rather than using the composite IPrivateKeyImportable<T> and IPrivateKeyExportable, because EdDSA keys omit the algorithm-native raw PEM export format (IPrivateKeyRawPemExportable).
| Member | Returns | Description |
|---|---|---|
SignData(ReadOnlySpan<byte>) |
byte[] |
Signs a span of bytes. |
SignData(ReadOnlySpan<byte>, int, int) |
byte[] |
Signs a byte-range slice. |
SignData(Stream) |
byte[] |
Signs a Stream. |
SignData(IBinaryConvertible) |
byte[] |
Signs an IBinaryConvertible. |
byte[] SignData(ReadOnlySpan<byte> data);
byte[] SignData(ReadOnlySpan<byte> data, int offset, int count);
byte[] SignData(Stream data);
byte[] SignData(IBinaryConvertible data);Signs the specified input data. Ed25519 incorporates its own hash function internally, so no hash-algorithm parameter is required.
| Parameter | Type | Description |
|---|---|---|
data |
ReadOnlySpan<byte> / Stream / IBinaryConvertible
|
The input data to sign. |
offset |
int |
(slice overload) The offset into the span from which to begin reading. |
count |
int |
(slice overload) The number of bytes to read from the span. |
Returns — A byte[] containing the cryptographic digital signature.
PrivateKeyEddsaPrivateKeyIEddsaPublicKeyIPrivateKeyDerivable<T>IPrivateKeyRawImportable<T>IPrivateKeyPkcs8Importable<T>IPrivateKeyPemImportable<T>IPrivateKeyRawExportableIPrivateKeyPkcs8ExportableIPrivateKeyPkcs8PemExportable- OnixLabs.Security.Cryptography
- Home
- OnixLabs.Security.Cryptography on NuGet
ONIXLabs .NET Library · Repository · NuGet · License (Apache-2.0)
Copyright © ONIXLabs 2020. Licensed under the Apache License, Version 2.0.
- Enumeration<T>
- Optional<T>
- OptionalEqualityComparer<T>
- OptionalExtensions
- Result
- Result<T>
- ResultEqualityComparer<T>
- ResultExtensions
- Specification<T>
- Preconditions
- IValueEquatable<T>
- IValueComparable<T>
- IBinaryConvertible
- ISpanBinaryConvertible
- IMemoryBinaryConvertible
- ArrayExtensions
- ComparableExtensions
- DateTimeExtensions
- ISpanParsableExtensions
- ObjectExtensions
- RandomExtensions
- ReadOnlySequenceExtensions
- ReadOnlySpanExtensions
- StringExtensions
- Base16
- Base32
- Base58
- Base64
- IBaseCodec
- IBaseValue
- IBaseValue<T>
- Base16Codec
- Base32Codec
- Base58Codec
- Base64Codec
- Base16FormatProvider
- Base32FormatProvider
- Base58FormatProvider
- Base64FormatProvider
- EncodingExtensions
- ReadOnlySpanExtensions
- StringBuilderExtensions
- BigDecimal
- BigDecimalEqualityComparer
- BigDecimalOrdinalityComparer
- NumberInfo
- NumberInfoEqualityComparer
- NumberInfoOrdinalityComparer
- Int256
- Int512
- UInt256
- UInt512
- Float128
- Float256
- GenericMath
- NumericsExtensions
- ConversionMode
- ScaleMode
- Hash
- NamedHash
- Sha3
- Sha3Hash224
- Sha3Hash256
- Sha3Hash384
- Sha3Hash512
- Sha3Shake128
- Sha3Shake256
- MerkleTree
- MerkleTree<T>
- PrivateKey
- PublicKey
- NamedPrivateKey
- NamedPublicKey
- EcdhPrivateKey
- EcdhPublicKey
- EcdsaPrivateKey
- EcdsaPublicKey
- EddsaPrivateKey
- EddsaPublicKey
- RsaPrivateKey
- RsaPublicKey
- DigitalSignature
- DigitalSignatureAndPublicKey
- Salt
- Secret
- ICryptoPrimitive<T>
- IHashable
- IEcdhPrivateKey
- IEcdsaPrivateKey
- IEddsaPrivateKey
- IRsaPrivateKey
- IPrivateKeyDerivable<T>
- IPrivateKeyExportable
- IPrivateKeyImportable<T>
- IPrivateKeyPemImportable<T>
- IPrivateKeyPkcs8Exportable
- IPrivateKeyPkcs8Importable<T>
- IPrivateKeyPkcs8PemExportable
- IPrivateKeyRawExportable
- IPrivateKeyRawImportable<T>
- IPrivateKeyRawPemExportable
- IEcdhPublicKey
- IEcdsaPublicKey
- IEddsaPublicKey
- IRsaPublicKey
- IPublicKeyExportable
- IPublicKeyImportable<T>
- IPublicKeyPemExportable
- IPublicKeyPemImportable<T>
- IPublicKeyRawExportable
- IPublicKeyRawImportable<T>
- HashAlgorithmExtensions
- ReadOnlySpanExtensions