19 #ifndef ASYLO_CRYPTO_NONCE_GENERATOR_H_ 20 #define ASYLO_CRYPTO_NONCE_GENERATOR_H_ 24 #include "asylo/crypto/util/bytes.h" 25 #include "asylo/util/status.h" 31 template <size_t Size>
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
virtual ~NonceGenerator()=default
virtual Status NextNonce(const std::vector< uint8_t > &key_id, UnsafeBytes< Size > *nonce)=0
Generates the next nonce.
virtual bool uses_key_id()
Indicates whether nonce generator utilizes the key_id input of the NextNonce() method to maintain key...
Definition: nonce_generator.h:58
static constexpr size_t nonce_size()
Gets the size of the nonces generated by this nonce generator.
Definition: nonce_generator.h:63
Defines a nonce-generator interface.
Definition: nonce_generator.h:32