class Secret
Defined at line 25 of file ../../src/security/lib/fcrypto/secret.h
Public Methods
void Secret ()
Public methods
Defined at line 32 of file ../../src/security/lib/fcrypto/secret.cc
void ~Secret ()
Defined at line 34 of file ../../src/security/lib/fcrypto/secret.cc
const uint8_t * get ()
Accessors
Defined at line 34 of file ../../src/security/lib/fcrypto/secret.h
size_t len ()
Defined at line 35 of file ../../src/security/lib/fcrypto/secret.h
void Secret (Secret && )
Defined at line 36 of file ../../src/security/lib/fcrypto/secret.cc
Secret & operator= (Secret && )
Defined at line 41 of file ../../src/security/lib/fcrypto/secret.cc
zx_status_t Allocate (size_t len, uint8_t ** out)
Allocates |len| bytes for a secret and returns a pointer to the buffer via |out|. This
method should be used when populating a secret from another source, and |out| should be
allowed to go out scope as quickly as possible.
Defined at line 49 of file ../../src/security/lib/fcrypto/secret.cc
zx_status_t Generate (size_t size)
Initializes this object with |size| pseudo-random bytes.
Defined at line 66 of file ../../src/security/lib/fcrypto/secret.cc
void Clear ()
Erases and frees the underlying buffer.
Defined at line 79 of file ../../src/security/lib/fcrypto/secret.cc