Provides general purpose data structures and utilities used by multiple ViaDuck projects. Implemented with a focus on memory security and safety.
BaseN
: Generic en-/decoder for any base (e.g. Base64, Base16, Hex). Various pre-defined coders exist. User-defined coders for any alphabet can be created at compile-time.Buffer
:- Variable size heap binary memory buffer.
- Convenience and safe methods to add, write, etc.
- Automatic shredding of buffer data with random bytes after destruction.
- Extensions:
String
.
Range
: Wrapper object for binary regions (pointer + size).SafeInt
: Wrapper class for integral types with arithmetic operations protected against overflows.SecureUniquePtr
: Automatic shredding ofstd::unique_ptr
memory with random bytes after destruction.
This library is subject to the GNU Lesser General Public License v3.0 (GNU LGPLv3).
Copyright (C) 2016-2023 The ViaDuck Project
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.