MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / get_random_aes_key

Function get_random_aes_key

chirpstack/src/aeskey.rs:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3use lrwn::AES128Key;
4
5pub fn get_random_aes_key() -> AES128Key {
6 let mut rng = rand::rng();
7 let mut key: [u8; 16] = [0; 16];
8 rng.fill_bytes(&mut key);
9 AES128Key::from_bytes(key)
10}

Callers 1

create_deploymentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected