File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 ,
You can’t perform that action at this time.
0 commit comments