MCPcopy Create free account
hub / github.com/UtilitechAS/amsreader-firmware / GCMParser

Method GCMParser

lib/AmsDecoder/src/GcmParser.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#endif
14
15GCMParser::GCMParser(uint8_t *encryption_key, uint8_t *authentication_key) {
16 memcpy(this->encryption_key, encryption_key, 16);
17 memcpy(this->authentication_key, authentication_key, 16);
18}
19
20int8_t GCMParser::parse(uint8_t *d, DataParserContext &ctx, bool hastag) {
21 if(ctx.length < 12) return DATA_PARSE_INCOMPLETE;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected