MCPcopy Create free account
hub / github.com/RickdeJager/stegseek / isValidStringRep

Method isValidStringRep

src/EncryptionAlgorithm.cc:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34EncryptionAlgorithm::IRep EncryptionAlgorithm::getIntegerRep() const { return Value; }
35
36bool EncryptionAlgorithm::isValidStringRep(std::string srep) {
37 bool retval = false;
38 for (unsigned int i = 0; i < NumValues; i++) {
39 if (Translations[i].srep == srep) {
40 retval = true;
41 }
42 }
43 return retval;
44}
45
46bool EncryptionAlgorithm::isValidIntegerRep(unsigned int irep) { return (irep < NumValues); }
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected