Skip to content

Commit 13c37eb

Browse files
committed
Remove duplicate ECC from method name
1 parent eb033f9 commit 13c37eb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

IdentityCore/src/JWEResponse/MSIDJweResponse+EcdhAesGcm.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ - (nullable NSDictionary *)decryptJweResponseWithPrivateStk:(nonnull SecKeyRef)p
9393
}
9494

9595
// 3. Create key from server response
96-
SecKeyRef serverKeyRef = [NSData createECCKeyFromEccJsonWebKey:epk error:error];
96+
SecKeyRef serverKeyRef = [NSData createKeyFromEccJsonWebKey:epk error:error];
9797

9898
if (!serverKeyRef)
9999
{

IdentityCore/src/util/NSData+MSIDEccSecKeyRef.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ NS_ASSUME_NONNULL_BEGIN
2929

3030
@interface NSData (MSIDEccSecKeyRef)
3131

32-
+ (nullable SecKeyRef)createECCKeyFromEccJsonWebKey:(NSDictionary *)jsonWebKey
32+
+ (nullable SecKeyRef)createKeyFromEccJsonWebKey:(NSDictionary *)jsonWebKey
3333
error:(NSError *_Nullable*_Nullable)error;
3434

35-
- (nullable SecKeyRef)createECCKeyFromEccJsonWebKey:(NSError *_Nullable*_Nullable)error;
35+
- (nullable SecKeyRef)createKeyFromEccJsonWebKey:(NSError *_Nullable*_Nullable)error;
3636

3737
@end
3838

IdentityCore/src/util/NSData+MSIDEccSecKeyRef.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
@implementation NSData (MSIDEccSecKeyRef)
3030

31-
+ (nullable SecKeyRef)createECCKeyFromEccJsonWebKey:(nonnull NSDictionary *)jsonWebKey
31+
+ (nullable SecKeyRef)createKeyFromEccJsonWebKey:(nonnull NSDictionary *)jsonWebKey
3232
error:(NSError * _Nullable __autoreleasing * _Nullable)error
3333
{
3434
if (!jsonWebKey[@"x"] || !jsonWebKey[@"y"])
@@ -46,10 +46,10 @@ + (nullable SecKeyRef)createECCKeyFromEccJsonWebKey:(nonnull NSDictionary *)json
4646
NSMutableData *keyData = [[NSMutableData alloc] initWithBytes:bytes length:sizeof(bytes)];
4747
[keyData appendData:[NSData msidDataFromBase64UrlEncodedString:jsonWebKey[@"x"]]];
4848
[keyData appendData:[NSData msidDataFromBase64UrlEncodedString:jsonWebKey[@"y"]]];
49-
return [keyData createECCKeyFromEccJsonWebKey:error];
49+
return [keyData createKeyFromEccJsonWebKey:error];
5050
}
5151

52-
- (nullable SecKeyRef)createECCKeyFromEccJsonWebKey:(NSError * _Nullable __autoreleasing * _Nullable)error
52+
- (nullable SecKeyRef)createKeyFromEccJsonWebKey:(NSError * _Nullable __autoreleasing * _Nullable)error
5353
{
5454
NSDictionary *options = @{(id)kSecAttrKeyType: (id)kSecAttrKeyTypeECSECPrimeRandom,
5555
(id)kSecAttrKeyClass: (id)kSecAttrKeyClassPublic,

0 commit comments

Comments
 (0)