myl7/fss 1.1.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
Loading...
Searching...
No Matches
fss::prg::Aes128Mmo< mul > Class Template Reference

AES-128 with Matyas-Meyer-Oseas and pre-initialized cipher contexts as a PRG. More...

Public Member Functions

 Aes128Mmo (cuda::std::span< EVP_CIPHER_CTX *, mul > ctxs)
 Constructor.
 
cuda::std::array< int4, mul > Gen (int4 seed)
 

Static Public Member Functions

static cuda::std::array< EVP_CIPHER_CTX *, mul > CreateCtxs (const unsigned char *keys[mul])
 Create cipher contexts.
 
static void FreeCtxs (cuda::std::span< EVP_CIPHER_CTX *, mul > ctxs)
 

Detailed Description

template<int mul>
class fss::prg::Aes128Mmo< mul >

AES-128 with Matyas-Meyer-Oseas and pre-initialized cipher contexts as a PRG.

Only for host side.

Template Parameters
mulSee Prgable mul.

Constructor & Destructor Documentation

◆ Aes128Mmo()

template<int mul>
fss::prg::Aes128Mmo< mul >::Aes128Mmo ( cuda::std::span< EVP_CIPHER_CTX *, mul >  ctxs)
inline

Constructor.

Parameters
ctxsGenerated by CreateCtxs() and freed by FreeCtxs(). Read-only and can be shared by multiple instances. Users are responsible for managing their lifetime.

Member Function Documentation

◆ CreateCtxs()

template<int mul>
static cuda::std::array< EVP_CIPHER_CTX *, mul > fss::prg::Aes128Mmo< mul >::CreateCtxs ( const unsigned char *  keys[mul])
inlinestatic

Create cipher contexts.

Parameters
keysmul 16B AES-128 keys.

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