pytropicsquare
 
Loading...
Searching...
No Matches
tropicsquare.ports.cpython.TropicSquareCPython Class Reference
Inheritance diagram for tropicsquare.ports.cpython.TropicSquareCPython:

Public Member Functions

 __init__ (self, spi, cs)
 

Protected Member Functions

 _spi_cs (self, value)
 
 _spi_write (self, data)
 
bytes _spi_read (self, int len)
 
 _spi_readinto (self, bytearray buffer)
 
 _spi_write_readinto (self, tx_buffer, bytearray rx_buffer)
 
 _get_ephemeral_keypair (self)
 
 _hkdf (self, salt, shared_secret, length=1)
 
 _x25519_exchange (self, private_bytes, public_bytes)
 
 _aesgcm (self, key)
 

Protected Attributes

 _spi
 
 _cs
 

Constructor & Destructor Documentation

◆ __init__()

tropicsquare.ports.cpython.TropicSquareCPython.__init__ (   self,
  spi,
  cs 
)

Member Function Documentation

◆ _aesgcm()

tropicsquare.ports.cpython.TropicSquareCPython._aesgcm (   self,
  key 
)
protected

◆ _get_ephemeral_keypair()

tropicsquare.ports.cpython.TropicSquareCPython._get_ephemeral_keypair (   self)
protected

◆ _hkdf()

tropicsquare.ports.cpython.TropicSquareCPython._hkdf (   self,
  salt,
  shared_secret,
  length = 1 
)
protected

◆ _spi_cs()

tropicsquare.ports.cpython.TropicSquareCPython._spi_cs (   self,
  value 
)
protected

◆ _spi_read()

bytes tropicsquare.ports.cpython.TropicSquareCPython._spi_read (   self,
int  len 
)
protected

◆ _spi_readinto()

tropicsquare.ports.cpython.TropicSquareCPython._spi_readinto (   self,
bytearray  buffer 
)
protected

◆ _spi_write()

tropicsquare.ports.cpython.TropicSquareCPython._spi_write (   self,
  data 
)
protected

◆ _spi_write_readinto()

tropicsquare.ports.cpython.TropicSquareCPython._spi_write_readinto (   self,
  tx_buffer,
bytearray  rx_buffer 
)
protected

◆ _x25519_exchange()

tropicsquare.ports.cpython.TropicSquareCPython._x25519_exchange (   self,
  private_bytes,
  public_bytes 
)
protected

Member Data Documentation

◆ _cs

tropicsquare.ports.cpython.TropicSquareCPython._cs
protected

◆ _spi

tropicsquare.ports.cpython.TropicSquareCPython._spi
protected

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