Differences From 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]
To Artifact [f530918539]:
- File
src/OFSecureData.h
— part of check-in
[0487a81ced]
at
2018-11-04 20:11:39
on branch trunk
— OFSecureData: Add support for preallocating memory
This is useful to allocate secure memory before enabling a sandbox that
does not allow it anymore. (user: js, size: 6021) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
39 40 41 42 43 44 45 46 47 48 49 50 51 52 | /*! * @brief Whether OFSecureData is secure, meaning preventing the data from * being swapped out is supported. */ + (bool)isSecure; /*! * @brief Creates a new, autoreleased OFSecureData with count items of item * size 1, all set to zero. * * @param count The number of zero items the OFSecureData should contain * @return A new, autoreleased OFSecureData */ | > > > > > > > > > > > > > > | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | /*! * @brief Whether OFSecureData is secure, meaning preventing the data from * being swapped out is supported. */ + (bool)isSecure; /*! * @brief Preallocates the specified number of bytes. * * This is useful to allocate secure memory before enabling a sandbox that does * not allow it anymore. * * @note This may only be called once per thread! * @note Preallocated memory is only available for OFSecureData that is smaller * than a single page! * * @param size The number of bytes to preallocate */ + (void)preallocateMemoryWithSize: (size_t)size; /*! * @brief Creates a new, autoreleased OFSecureData with count items of item * size 1, all set to zero. * * @param count The number of zero items the OFSecureData should contain * @return A new, autoreleased OFSecureData */ |
︙ | ︙ |