Skip to content

2042Third/securememory

 
 

Repository files navigation

Secure Memory Library

Provides general purpose data structures and utilities used by multiple ViaDuck projects. Implemented with a focus on memory security and safety.

Features

  • 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 of std::unique_ptr memory with random bytes after destruction.

Licensing

This library is subject to the GNU Lesser General Public License v3.0 (GNU LGPLv3).

Copyright (C) 2016-2022  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/>.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.3%
  • C 2.9%
  • CMake 2.8%