create
Function parameters
Parameters
- out:*[mac_length]u8
- msg:[]const u8
- key:*const [key_length]u8
NIST Special Publication 800-38B - The CMAC Mode for Authentication
Functions
- Cmac
- NIST Special Publication 800-38B - The CMAC Mode for Authentication
Source
Implementation
pub fn create(out: *[mac_length]u8, msg: []const u8, key: *const [key_length]u8) void {
var ctx = Self.init(key);
ctx.update(msg);
ctx.final(out);
}