Home
last modified time | relevance | path

Searched refs:keyRecord (Results 1 – 2 of 2) sorted by relevance

/openthread-latest/src/core/net/
Dsrp_advertising_proxy.cpp1098 Dns::Ecdsa256KeyRecord keyRecord; in RegisterKey() local
1100 keyRecord.Init(); in RegisterKey()
1101 keyRecord.SetFlags(Dns::KeyRecord::kAuthConfidPermitted, Dns::KeyRecord::kOwnerNonZone, in RegisterKey()
1103 keyRecord.SetProtocol(Dns::KeyRecord::kProtocolDnsSec); in RegisterKey()
1104 keyRecord.SetAlgorithm(Dns::KeyRecord::kAlgorithmEcdsaP256Sha256); in RegisterKey()
1105 keyRecord.SetLength(sizeof(Dns::Ecdsa256KeyRecord) - sizeof(Dns::ResourceRecord)); in RegisterKey()
1106 keyRecord.SetKey(aKey); in RegisterKey()
1111 keyInfo.mKeyData = reinterpret_cast<uint8_t *>(&keyRecord) + sizeof(Dns::ResourceRecord); in RegisterKey()
1112 keyInfo.mKeyDataLength = keyRecord.GetLength(); in RegisterKey()
Dsrp_server.cpp946 Dns::Ecdsa256KeyRecord keyRecord; in ProcessHostDescriptionInstruction() local
952 SuccessOrExit(error = aMessage.Read(offset, keyRecord)); in ProcessHostDescriptionInstruction()
953 VerifyOrExit(keyRecord.IsValid(), error = kErrorParse); in ProcessHostDescriptionInstruction()
957 VerifyOrExit(aHost.mKey == keyRecord.GetKey(), error = kErrorSecurity); in ProcessHostDescriptionInstruction()
962 aHost.mKey = keyRecord.GetKey(); in ProcessHostDescriptionInstruction()