Lines Matching defs:SecureChar
22 SecureChar::SecureChar() : data_(std::make_unique<char[]>(0)) {}
24 SecureChar::~SecureChar()
29 SecureChar::SecureChar(const std::string &SecureChar)
30 : length_(SecureChar.length()), data_(std::make_unique<char[]>(length_ + 1))
36 if (memcpy_s(data_.get(), length_, SecureChar.c_str(), length_) != EOK) {
42 SecureChar::SecureChar(const uint8_t *SecureChar, size_t length)
47 if (memcpy_s(data_.get(), length_, SecureChar, length_) != EOK) {
52 SecureChar::SecureChar(const SecureChar &SecureChar)
54 *this = SecureChar;
57 SecureChar &SecureChar::operator=(const SecureChar &SecureChar)
59 if (this != &SecureChar) {
60 if (SecureChar.Length() == 0) {
63 length_ = SecureChar.Length();
66 if (memcpy_s(data_.get(), length_, SecureChar.Data(), length_) != EOK) {
73 const char *SecureChar::Data() const
78 size_t SecureChar::Length() const