Class TSignerUtils

Unit

Declaration

type TSignerUtils = class sealed(TObject)

Description

This item has no description.

Hierarchy

Overview

Fields

Strict Private class var FSecureRandom: ISecureRandom;
Strict Private nested const SigningAlgorithm = 'SHA-1withECDSA';

Methods

Public class function GenerateECKeyPair(AKeyType: TKeyType): TKeyPair; static;
Public class function SignMessage(const message: TBytes; const PrivateKey: TBytes; AKeyType: TKeyType): TBytes; static;
Public class function VerifySignature(const signature: TBytes; const message: TBytes; const PublicKey: TBytes; AKeyType: TKeyType): Boolean; static;
Private class function GetCurve(keyType: TKeyType): IX9ECParameters; static;
Private class function GetDomain(curve: IX9ECParameters): IECDomainParameters; static;
Private class function GetSigner(): ISigner; static;
Strict Private class function GetCurveFromKeyType(AKeyType: TKeyType): IX9ECParameters; static; inline;
Strict Private class function GetSecureRandom: ISecureRandom; static; inline;

Properties

Strict Private class property SecureRandom: ISecureRandom read GetSecureRandom;

Description

Fields

Strict Private class var FSecureRandom: ISecureRandom;

This item has no description.

Strict Private nested const SigningAlgorithm = 'SHA-1withECDSA';

This item has no description.

Methods

Public class function GenerateECKeyPair(AKeyType: TKeyType): TKeyPair; static;

This item has no description.

Public class function SignMessage(const message: TBytes; const PrivateKey: TBytes; AKeyType: TKeyType): TBytes; static;

This item has no description.

Public class function VerifySignature(const signature: TBytes; const message: TBytes; const PublicKey: TBytes; AKeyType: TKeyType): Boolean; static;

This item has no description.

Private class function GetCurve(keyType: TKeyType): IX9ECParameters; static;

This item has no description.

Private class function GetDomain(curve: IX9ECParameters): IECDomainParameters; static;

This item has no description.

Private class function GetSigner(): ISigner; static;

This item has no description.

Strict Private class function GetCurveFromKeyType(AKeyType: TKeyType): IX9ECParameters; static; inline;

This item has no description.

Strict Private class function GetSecureRandom: ISecureRandom; static; inline;

This item has no description.

Properties

Strict Private class property SecureRandom: ISecureRandom read GetSecureRandom;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.