Update to Swift 4.2.1 by iosdevzone · Pull Request #90 · iosdevzone/IDZSwiftCommonCrypto · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .travis.yml
6 changes: 5 additions & 1 deletion DemoPlayground.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ for (password, salt, rounds, dkLen, expected) in tests
{
let key0 = PBKDF.deriveKey(password: password, salt: salt, prf: .sha1, rounds: uint(rounds), derivedKeyLength: UInt(dkLen))
let keyString0 = hexString(fromArray: key0)
expected
keyString0
let key1 = PBKDF.deriveKey(password: password, salt: arrayFrom(string: salt), prf: .sha1, rounds: uint(rounds), derivedKeyLength: UInt(dkLen))
let keyString1 = hexString(fromArray: key1)
expected
keyString1
}

// MARK: - Random Demo
Expand Down Expand Up @@ -123,7 +127,7 @@ test_Cryptor_AES_ECB_2()
func test_Cryptor_AES_ECB_Short() {
let key = arrayFrom(hexString:"2b7e151628aed2a6abf7158809cf4f3c")
let plainText = arrayFrom(hexString: "6bc1bee22e409f96e93d7e11739317")
let expectedCipherText = arrayFrom(hexString: "3ad77bb40d7a3660a89ecaf32466ef97")
//let expectedCipherText = arrayFrom(hexString: "3ad77bb40d7a3660a89ecaf32466ef97")

let cryptor = Cryptor(operation:.encrypt, algorithm:.aes, options:.ECBMode, key:key, iv:Array<UInt8>())
let cipherText = cryptor.update(byteArray: plainText)?.final()
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Gemfile
source 'https://rubygems.org'
gem 'slather', :git => "https://github.com/mattdelves/slather.git", :branch => "feature-profdata"
gem 'slather'
59 changes: 30 additions & 29 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
GIT
remote: https://github.com/mattdelves/slather.git
revision: d09ce4f5d5928bebdd121f621f530f1751a6c2c9
branch: feature-profdata
specs:
slather (1.8.1)
clamp (~> 0.6)
nokogiri (~> 1.6.3)
xcodeproj (~> 0.27.2)

GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.4)
CFPropertyList (3.0.0)
activesupport (4.2.11.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (0.9.1)
clamp (0.6.5)
colored (1.2)
i18n (0.7.0)
json (1.8.3)
mini_portile (0.6.2)
minitest (5.8.2)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
thread_safe (0.3.5)
tzinfo (1.2.2)
atomos (0.1.3)
claide (1.0.2)
clamp (1.3.0)
colored2 (3.1.2)
concurrent-ruby (1.1.5)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
mini_portile2 (2.4.0)
minitest (5.11.3)
nanaimo (0.2.6)
nokogiri (1.10.1)
mini_portile2 (~> 2.4.0)
slather (2.4.7)
CFPropertyList (>= 2.2, < 4)
activesupport (>= 4.0.2, < 5)
clamp (~> 1.3)
nokogiri (~> 1.8)
xcodeproj (~> 1.7)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
xcodeproj (0.27.2)
activesupport (>= 3)
claide (~> 0.9.1)
colored (~> 1.2)
xcodeproj (1.8.1)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.6)

PLATFORMS
ruby

DEPENDENCIES
slather!
slather

BUNDLED WITH
1.10.6
2.0.1
64 changes: 0 additions & 64 deletions GenerateCommonCryptoModule

This file was deleted.

126 changes: 0 additions & 126 deletions GenerateCommonCryptoModule.swift

This file was deleted.

6 changes: 3 additions & 3 deletions IDZSwiftCommonCrypto.podspec
Loading