MCPcopy Create free account
hub / github.com/AGWA/git-crypt / generate

Method generate

key.cpp:150–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void Key_file::Entry::generate (uint32_t arg_version)
151{
152 version = arg_version;
153 random_bytes(aes_key, AES_KEY_LEN);
154 random_bytes(hmac_key, HMAC_KEY_LEN);
155}
156
157const Key_file::Entry* Key_file::get_latest () const
158{

Callers 2

initFunction · 0.80
keygenFunction · 0.80

Calls 1

random_bytesFunction · 0.85

Tested by

no test coverage detected