Differences From Artifact [ac5cf895db]:
- File
src/OFSecureData.h
— part of check-in
[0e45b7bb1c]
at
2018-04-08 13:37:31
on branch trunk
— OFSecureData: Add a memory allocator
This avoids having at last one page per OFSecureData and allows multiple
small OFSecureData sharing the same page, which is important on systems
where the number of pages that can be locked is very limited. (user: js, size: 5223) [annotate] [blame] [check-ins using]
To Artifact [bc7ed72611]:
- File src/OFSecureData.h — part of check-in [68c8c02e80] at 2018-06-24 19:53:13 on branch trunk — OFSecureData: Add constant-time isEqual: (user: js, size: 5591) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
87 88 89 90 91 92 93 94 95 96 97 98 99 100 | * @param itemSize The size of a single item in the OFSecureData in bytes * @param count The number of zero items the OFSecureData should contain * @return An initialized OFSecureData */ - (instancetype)initWithItemSize: (size_t)itemSize count: (size_t)count; /*! * @brief Zeroes the data. */ - (void)zero; #ifdef OF_HAVE_FILES - (instancetype)initWithContentsOfFile: (OFString *)path OF_UNAVAILABLE; | > > > > > > > > > > > | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | * @param itemSize The size of a single item in the OFSecureData in bytes * @param count The number of zero items the OFSecureData should contain * @return An initialized OFSecureData */ - (instancetype)initWithItemSize: (size_t)itemSize count: (size_t)count; /*! * @brief Checks the OFSecureData for equality to another object. * * If the specified object is a subclass of @ref OFData, the comparison is * performed in constant time. * * @param object The object which should be tested for equality * @return A boolean whether the OFSecureData is equal to the specified object */ - (bool)isEqual: (nullable id)object; /*! * @brief Zeroes the data. */ - (void)zero; #ifdef OF_HAVE_FILES - (instancetype)initWithContentsOfFile: (OFString *)path OF_UNAVAILABLE; |
︙ | ︙ |