Keep tag length constants private

Also AD length in AEAD was an unresolved relic.
This commit is contained in:
Davide De Rosa 2018-11-06 10:25:35 +01:00
parent caea6624fc
commit 2fde43b1fc
3 changed files with 2 additions and 4 deletions

View File

@ -43,7 +43,7 @@
#import "Allocation.h"
#import "Errors.h"
const NSInteger CryptoAEADTagLength = 16;
static const NSInteger CryptoAEADTagLength = 16;
@interface CryptoAEAD ()

View File

@ -30,8 +30,6 @@
NS_ASSUME_NONNULL_BEGIN
extern const NSInteger CryptoCTRADLength;
@interface CryptoCTR : NSObject <Encrypter, Decrypter>
- (instancetype)initWithCipherName:(nullable NSString *)cipherName digestName:(NSString *)digestName;

View File

@ -33,7 +33,7 @@
#import "Allocation.h"
#import "Errors.h"
const NSInteger CryptoCTRTagLength = 32;
static const NSInteger CryptoCTRTagLength = 32;
@interface CryptoCTR ()