File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ Pod::Spec.new do |spec|
11
11
spec . ios . deployment_target = '8.0'
12
12
spec . osx . deployment_target = '10.9'
13
13
spec . requires_arc = true
14
- spec . dependency 'CryptoSwift' , '0.0.14 '
14
+ spec . dependency 'CryptoSwift' , '0.1.1 '
15
15
spec . module_name = 'JWT'
16
16
end
17
-
Original file line number Diff line number Diff line change 14
14
279D63BB1AD0E3FA0024E2BC /* Claims.swift in Sources */ = {isa = PBXBuildFile; fileRef = 279D63BA1AD0E3FA0024E2BC /* Claims.swift */; };
15
15
279D63BD1AD0ED750024E2BC /* Decode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 279D63BC1AD0ED750024E2BC /* Decode.swift */; };
16
16
279D63BF1AD0EDC00024E2BC /* Base64.swift in Sources */ = {isa = PBXBuildFile; fileRef = 279D63BE1AD0EDC00024E2BC /* Base64.swift */; };
17
- 885619E9E1C342A9D8BD77B7 /* Pods_JWT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 540942F3614C41E3827F2013 /* Pods_JWT.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
18
- EBEC5851F5183DF2D7BFE1AF /* Pods_JWTTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE8198B6E30BA6B8F8125FA7 /* Pods_JWTTests.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
17
+ 885619E9E1C342A9D8BD77B7 /* Pods_JWT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 540942F3614C41E3827F2013 /* Pods_JWT.framework */; };
18
+ EBEC5851F5183DF2D7BFE1AF /* Pods_JWTTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE8198B6E30BA6B8F8125FA7 /* Pods_JWTTests.framework */; };
19
19
/* End PBXBuildFile section */
20
20
21
21
/* Begin PBXContainerItemProxy section */
Original file line number Diff line number Diff line change @@ -55,7 +55,12 @@ public enum Algorithm : CustomStringConvertible {
55
55
let keyData = key. dataUsingEncoding ( NSUTF8StringEncoding, allowLossyConversion: false ) !
56
56
let messageData = message. dataUsingEncoding ( NSUTF8StringEncoding, allowLossyConversion: false ) !
57
57
let mac = Authenticator . HMAC ( key: keyData. arrayOfBytes ( ) , variant: variant)
58
- let result = mac. authenticate ( messageData. arrayOfBytes ( ) ) !
58
+ let result : [ UInt8 ]
59
+ do {
60
+ result = try mac. authenticate ( messageData. arrayOfBytes ( ) )
61
+ } catch {
62
+ result = [ ]
63
+ }
59
64
return base64encode ( NSData . withBytes ( result) )
60
65
}
61
66
Original file line number Diff line number Diff line change 1
1
PODS:
2
- - CryptoSwift (0.0.14 )
2
+ - CryptoSwift (0.1.1 )
3
3
4
4
DEPENDENCIES:
5
- - CryptoSwift (= 0.0.14 )
5
+ - CryptoSwift (= 0.1.1 )
6
6
7
7
SPEC CHECKSUMS:
8
- CryptoSwift: 5a6b725e2ad65a789f5f435dd434d38eb2c40b46
8
+ CryptoSwift: c11640d3d66107efc8333e4131a5173f072b1d61
9
9
10
- COCOAPODS: 0.39.0.beta.4
10
+ COCOAPODS: 0.39.0
You can’t perform that action at this time.
0 commit comments