From 2fde43b1fc85485ab50386837c3270a76d894e5b Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 6 Nov 2018 10:25:35 +0100 Subject: [PATCH] Keep tag length constants private Also AD length in AEAD was an unresolved relic. --- TunnelKit/Sources/Core/CryptoAEAD.m | 2 +- TunnelKit/Sources/Core/CryptoCTR.h | 2 -- TunnelKit/Sources/Core/CryptoCTR.m | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/TunnelKit/Sources/Core/CryptoAEAD.m b/TunnelKit/Sources/Core/CryptoAEAD.m index d5f4e06..7fc9c2a 100644 --- a/TunnelKit/Sources/Core/CryptoAEAD.m +++ b/TunnelKit/Sources/Core/CryptoAEAD.m @@ -43,7 +43,7 @@ #import "Allocation.h" #import "Errors.h" -const NSInteger CryptoAEADTagLength = 16; +static const NSInteger CryptoAEADTagLength = 16; @interface CryptoAEAD () diff --git a/TunnelKit/Sources/Core/CryptoCTR.h b/TunnelKit/Sources/Core/CryptoCTR.h index a627078..451124f 100644 --- a/TunnelKit/Sources/Core/CryptoCTR.h +++ b/TunnelKit/Sources/Core/CryptoCTR.h @@ -30,8 +30,6 @@ NS_ASSUME_NONNULL_BEGIN -extern const NSInteger CryptoCTRADLength; - @interface CryptoCTR : NSObject - (instancetype)initWithCipherName:(nullable NSString *)cipherName digestName:(NSString *)digestName; diff --git a/TunnelKit/Sources/Core/CryptoCTR.m b/TunnelKit/Sources/Core/CryptoCTR.m index d91ef42..5832fce 100644 --- a/TunnelKit/Sources/Core/CryptoCTR.m +++ b/TunnelKit/Sources/Core/CryptoCTR.m @@ -33,7 +33,7 @@ #import "Allocation.h" #import "Errors.h" -const NSInteger CryptoCTRTagLength = 32; +static const NSInteger CryptoCTRTagLength = 32; @interface CryptoCTR ()