Electroneum
rct::key Struct Reference

#include <rctTypes.h>

Public Member Functions

unsigned char & operator[] (int i)
 
unsigned char operator[] (int i) const
 
bool operator== (const key &k) const
 

Public Attributes

unsigned char bytes [32]
 

Detailed Description

Definition at line 78 of file rctTypes.h.

Member Function Documentation

◆ operator==()

bool rct::key::operator== ( const key k) const
inline

Definition at line 85 of file rctTypes.h.

85 { return !crypto_verify_32(bytes, k.bytes); }
int crypto_verify_32(const unsigned char *, const unsigned char *)
unsigned char bytes[32]
Definition: rctTypes.h:86
Here is the call graph for this function:

◆ operator[]() [1/2]

unsigned char& rct::key::operator[] ( int  i)
inline

Definition at line 79 of file rctTypes.h.

79  {
80  return bytes[i];
81  }
unsigned char bytes[32]
Definition: rctTypes.h:86

◆ operator[]() [2/2]

unsigned char rct::key::operator[] ( int  i) const
inline

Definition at line 82 of file rctTypes.h.

82  {
83  return bytes[i];
84  }
unsigned char bytes[32]
Definition: rctTypes.h:86

Member Data Documentation

◆ bytes

unsigned char rct::key::bytes[32]

Definition at line 86 of file rctTypes.h.


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