Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::crypto::webauthn::signature Class Reference

#include <elliptic_webauthn.hpp>

Public Types

using data_type = signature
 

Public Member Functions

signature serialize () const
 
 signature ()
 
 signature (const fc::crypto::r1::compact_signature &s, const std::vector< uint8_t > &a, const std::string &j)
 
public_key recover (const sha256 &digest, bool check_canonical) const
 
size_t variable_size () const
 
bool operator== (const signature &o) const
 
bool operator< (const signature &o) const
 
size_t get_hash () const
 

Friends

struct fc::reflector< signature >
 
class public_key
 

Detailed Description

Definition at line 74 of file elliptic_webauthn.hpp.

Member Typedef Documentation

◆ data_type

using fc::crypto::webauthn::signature::data_type = signature

Definition at line 77 of file elliptic_webauthn.hpp.

Constructor & Destructor Documentation

◆ signature() [1/2]

fc::crypto::webauthn::signature::signature ( )
inline

Definition at line 80 of file elliptic_webauthn.hpp.

80{}

◆ signature() [2/2]

fc::crypto::webauthn::signature::signature ( const fc::crypto::r1::compact_signature & s,
const std::vector< uint8_t > & a,
const std::string & j )
inline

Definition at line 81 of file elliptic_webauthn.hpp.

81 :
82 compact_signature(s), auth_data(a), client_json(j) {}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
char * s
uint16_t j

Member Function Documentation

◆ get_hash()

size_t fc::crypto::webauthn::signature::get_hash ( ) const
inline

Definition at line 103 of file elliptic_webauthn.hpp.

103 {
104 return *(size_t*)&compact_signature.data[32-sizeof(size_t)] + *(size_t*)&compact_signature.data[64-sizeof(size_t)];
105 }
T data[N]
Definition array.hpp:37
Here is the caller graph for this function:

◆ operator<()

bool fc::crypto::webauthn::signature::operator< ( const signature & o) const
inline

Definition at line 98 of file elliptic_webauthn.hpp.

98 {
99 return std::tie(compact_signature, auth_data, client_json) < std::tie(o.compact_signature, o.auth_data, o.client_json);
100 }

◆ operator==()

bool fc::crypto::webauthn::signature::operator== ( const signature & o) const
inline

Definition at line 92 of file elliptic_webauthn.hpp.

92 {
93 return compact_signature == o.compact_signature &&
94 auth_data == o.auth_data &&
95 client_json == o.client_json;
96 }

◆ recover()

public_key fc::crypto::webauthn::signature::recover ( const sha256 & digest,
bool check_canonical ) const
inline

Definition at line 84 of file elliptic_webauthn.hpp.

84 {
85 return public_key(*this, digest, check_canonical);
86 }
fc::sha256 digest(const T &value)
Definition digest.hpp:9
Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

signature fc::crypto::webauthn::signature::serialize ( ) const
inline

Definition at line 78 of file elliptic_webauthn.hpp.

78{ return *this; }

◆ variable_size()

size_t fc::crypto::webauthn::signature::variable_size ( ) const
inline

Definition at line 88 of file elliptic_webauthn.hpp.

88 {
89 return auth_data.size() + client_json.size();
90 }

Friends And Related Symbol Documentation

◆ fc::reflector< signature >

friend struct fc::reflector< signature >
friend

Definition at line 103 of file elliptic_webauthn.hpp.

◆ public_key

friend class public_key
friend

Definition at line 108 of file elliptic_webauthn.hpp.


The documentation for this class was generated from the following file: