Asylo
Public Types | Public Member Functions | List of all members
asylo::AesGcmSivNonceGenerator Class Reference

A 96-bit NonceGenerator that returns a uniformly distributed random nonce on each invocation of NextNonce(). More...

#include <aes_gcm_siv.h>

Inheritance diagram for asylo::AesGcmSivNonceGenerator:
Inheritance graph
[legend]
Collaboration diagram for asylo::AesGcmSivNonceGenerator:
Collaboration graph
[legend]

Public Types

using AesGcmSivNonce = UnsafeBytes< kAesGcmSivNonceSize >
 

Public Member Functions

Status NextNonce (const std::vector< uint8_t > &key_id, AesGcmSivNonce *nonce) override
 
- Public Member Functions inherited from asylo::NonceGenerator< kAesGcmSivNonceSize >
 NonceGenerator ()=default
 
virtual ~NonceGenerator ()=default
 
virtual Status NextNonce (const std::vector< uint8_t > &key_id, UnsafeBytes< Size > *nonce)=0
 Generates the next nonce. More...
 
virtual bool uses_key_id ()
 Indicates whether nonce generator utilizes the key_id input of the NextNonce() method to maintain key-id-specific nonce state. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from asylo::NonceGenerator< kAesGcmSivNonceSize >
static constexpr size_t nonce_size ()
 Gets the size of the nonces generated by this nonce generator. More...
 

Detailed Description

A 96-bit NonceGenerator that returns a uniformly distributed random nonce on each invocation of NextNonce().

Member Typedef Documentation

◆ AesGcmSivNonce

Member Function Documentation

◆ NextNonce()

Status asylo::AesGcmSivNonceGenerator::NextNonce ( const std::vector< uint8_t > &  key_id,
AesGcmSivNonce nonce 
)
override

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