mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57:31 +09:00
Dactyloidae iOS initial commit
This commit is contained in:
parent
daa6179d22
commit
7154a0497e
2123 changed files with 197052 additions and 0 deletions
31
mobile/ios/ThirdParty/ecec/include/ece/trailer.h
vendored
Normal file
31
mobile/ios/ThirdParty/ecec/include/ece/trailer.h
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef ECE_TRAILER_H
|
||||
#define ECE_TRAILER_H
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef bool (*needs_trailer_t)(uint32_t rs, size_t ciphertextLen);
|
||||
|
||||
// Adjusts the aesgcm record size to account for the authentication tag.
|
||||
// aesgcm includes the size of the padding delimiter, but not the tag.
|
||||
uint32_t
|
||||
ece_aesgcm_rs(uint32_t rs);
|
||||
|
||||
// Indicates if an "aesgcm" ciphertext is a multiple of the record size, and
|
||||
// needs a padding-only trailing block to prevent truncation attacks.
|
||||
bool
|
||||
ece_aesgcm_needs_trailer(uint32_t rs, size_t ciphertextLen);
|
||||
|
||||
// Provided for completeness, but always returns false because "aes128gcm" uses
|
||||
// a padding scheme that doesn't need a trailer.
|
||||
bool
|
||||
ece_aes128gcm_needs_trailer(uint32_t rs, size_t ciphertextLen);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* ECE_TRAILER_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue