Skip to content

Commit 6072f84

Browse files
committed
Merge branch 'master' into develop
2 parents 58e1f6c + cf75e33 commit 6072f84

File tree

7 files changed

+68
-11
lines changed

7 files changed

+68
-11
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0
1+
4.0

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2014 Marcin Krzyżanowski <[email protected]>
1+
Copyright (C) 2014-2017 Marcin Krzyżanowski <[email protected]>
22
This software is provided 'as-is', without any express or implied warranty.
33

44
In no event will the authors be held liable for any damages arising from the use of this software.
@@ -7,4 +7,4 @@ Permission is granted to anyone to use this software for any purpose,including c
77

88
- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation is required.
99
- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
10-
- This notice may not be removed or altered from any source or binary distribution.
10+
- This notice may not be removed or altered from any source or binary distribution.

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1+
[![Platform](https://img.shields.io/badge/Platforms-ios%20%7C%20macos%20%7C%20watchos%20%7C%20tvos%20%7C%20linux-4E4E4E.svg?colorA=EF5138)](http://cocoadocs.org/docsets/CryptoSwift)
2+
[![Swift support](https://img.shields.io/badge/Swift-3.1%20%7C%203.2%20%7C%204.0-lightgrey.svg?colorA=EF5138&colorB=4E4E4E)](#swift-versions-support)
3+
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/CryptoSwift.svg?style=flat&label=CocoaPods)](https://cocoapods.org/pods/CryptoSwift)
4+
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg?style=flat&colorB=64A5DE)](https://github.com/apple/swift-package-manager)
5+
[![Swift Package Manager compatible](https://img.shields.io/badge/SPM-compatible-brightgreen.svg?style=flat&colorB=64A5DE)](https://github.com/apple/swift-package-manager)
6+
[![Twitter](https://img.shields.io/badge/[email protected]?style=flat&colorB=64A5DE&label=Twitter)](http://twitter.com/krzyzanowskim)
7+
18
# CryptoSwift
29

3-
Crypto related functions and helpers for [Swift](https://developer.apple.com/swift/) implemented in Swift. ([#PureSwift](https://twitter.com/hashtag/pureswift))
10+
Crypto related functions and helpers for [Swift](https://swift.org) implemented in Swift. ([#PureSwift](https://twitter.com/hashtag/pureswift))
411

512
# Table of Contents
613
- [Requirements](#requirements)
714
- [Features](#features)
815
- [Contribution](#contribution)
916
- [Installation](#installation)
17+
- [Swift versions](#swift-versions-support)
1018
- [Usage](#usage)
1119
- [Author](#author)
1220
- [License](#license)
@@ -96,11 +104,14 @@ Sometimes "embedded framework" option is not available. In that case, you have t
96104
In the project, you'll find [single scheme](http://promisekit.org/news/2016/08/Multiplatform-Single-Scheme-Xcode-Projects/) for all platforms:
97105
- CryptoSwift
98106

99-
#### Older Swift versions
107+
#### Swift versions support
100108

101109
- Swift 1.2: branch [swift12](https://github.com/krzyzanowskim/CryptoSwift/tree/swift12) version <= 0.0.13
102110
- Swift 2.1: branch [swift21](https://github.com/krzyzanowskim/CryptoSwift/tree/swift21) version <= 0.2.3
103111
- Swift 2.2, 2.3: branch [swift2](https://github.com/krzyzanowskim/CryptoSwift/tree/swift2) version <= 0.5.2
112+
- Swift 3.1, branch [master](https://github.com/krzyzanowskim/CryptoSwift/tree/master)
113+
- Swift 3.2, branch [develop](https://github.com/krzyzanowskim/CryptoSwift/tree/develop)
114+
- Swift 4.0, branch [swift4](https://github.com/krzyzanowskim/CryptoSwift/tree/swift4)
104115

105116
#### CocoaPods
106117

@@ -146,7 +157,7 @@ See: [Package.swift - manual](http://blog.krzyzanowskim.com/2016/08/09/package-s
146157

147158
* [Basics (data types, conversion, ...)](#basics)
148159
* [Digest (MD5, SHA...)](#calculate-digest)
149-
* [Message authenticators (HMAC...)](#message-authenticators)
160+
* [Message authenticators (HMAC...)](#message-authenticators-1)
150161
* [Password-Based Key Derivation Function (PBKDF2, ...)](#password-based-key-derivation-functions)
151162
* [Data Padding](#data-padding)
152163
* [ChaCha20](#chacha20)
@@ -378,7 +389,7 @@ You can follow me on Twitter at [@krzyzanowskim](http://twitter.com/krzyzanowski
378389

379390
## License
380391

381-
Copyright (C) 2014-2016 Marcin Krzyżanowski <[email protected]>
392+
Copyright (C) 2014-2017 Marcin Krzyżanowski <[email protected]>
382393
This software is provided 'as-is', without any express or implied warranty.
383394

384395
In no event will the authors be held liable for any damages arising from the use of this software.

Sources/CryptoSwift/Array+Extension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension Array {
2424
extension Array {
2525

2626
/** split in chunks with given chunk size */
27-
func chunks(size chunksize: Int) -> Array<Array<Element>> {
27+
public func chunks(size chunksize: Int) -> Array<Array<Element>> {
2828
var words = Array<Array<Element>>()
2929
words.reserveCapacity(self.count / chunksize)
3030
for idx in stride(from: chunksize, through: self.count, by: chunksize) {

Sources/CryptoSwift/Bit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// - This notice may not be removed or altered from any source or binary distribution.
1515
//
1616

17-
enum Bit: Int {
17+
public enum Bit: Int {
1818
case zero
1919
case one
2020
}

Sources/CryptoSwift/UInt8+Extension.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extension UInt8 {
5151
}
5252

5353
/** array of bits */
54-
func bits() -> [Bit] {
54+
public func bits() -> [Bit] {
5555
let totalBitsCount = MemoryLayout<UInt8>.size * 8
5656

5757
var bitsArray = [Bit](repeating: Bit.zero, count: totalBitsCount)
@@ -67,7 +67,7 @@ extension UInt8 {
6767
return bitsArray
6868
}
6969

70-
func bits() -> String {
70+
public func bits() -> String {
7171
var s = String()
7272
let arr: [Bit] = self.bits()
7373
for idx in arr.indices {

0 commit comments

Comments
 (0)