Переглянути джерело

Update headers. Add PR templates and CONTRIBUTION.md

Marcin Krzyżanowski 7 роки тому
батько
коміт
a0c196580c
84 змінених файлів з 231 додано та 115 видалено
  1. 1 1
      .github/ISSUE_TEMPLATE.md
  2. 12 0
      .github/PULL_REQUEST_TEMPLATE.md
  3. 28 0
      CONTRIBUTING.md
  4. 1 0
      CryptoSwift.xcodeproj/xcshareddata/IDETemplateMacros.plist
  5. 27 0
      IDETemplateMacros.plist
  6. 0 1
      Sources/CryptoSwift/AES.Cryptors.swift
  7. 3 4
      Sources/CryptoSwift/AES.swift
  8. 0 1
      Sources/CryptoSwift/Array+Extension.swift
  9. 0 1
      Sources/CryptoSwift/Array+Extensions.swift
  10. 0 1
      Sources/CryptoSwift/Authenticator.swift
  11. 0 1
      Sources/CryptoSwift/BatchedCollection.swift
  12. 0 1
      Sources/CryptoSwift/Bit.swift
  13. 0 1
      Sources/CryptoSwift/BlockCipher.swift
  14. 0 1
      Sources/CryptoSwift/BlockMode/BlockMode.swift
  15. 0 1
      Sources/CryptoSwift/BlockMode/BlockModeOptions.swift
  16. 0 1
      Sources/CryptoSwift/BlockMode/BlockModeWorker.swift
  17. 0 1
      Sources/CryptoSwift/BlockMode/CBC.swift
  18. 0 1
      Sources/CryptoSwift/BlockMode/CFB.swift
  19. 0 1
      Sources/CryptoSwift/BlockMode/CTR.swift
  20. 0 1
      Sources/CryptoSwift/BlockMode/ECB.swift
  21. 0 1
      Sources/CryptoSwift/BlockMode/OFB.swift
  22. 0 1
      Sources/CryptoSwift/BlockMode/PCBC.swift
  23. 0 1
      Sources/CryptoSwift/BlockMode/RandomAccessBlockModeWorker.swift
  24. 0 1
      Sources/CryptoSwift/Blowfish.swift
  25. 0 1
      Sources/CryptoSwift/ChaCha20.swift
  26. 0 1
      Sources/CryptoSwift/Checksum.swift
  27. 0 1
      Sources/CryptoSwift/Cipher.swift
  28. 0 1
      Sources/CryptoSwift/Collection+Extension.swift
  29. 0 1
      Sources/CryptoSwift/Cryptors.swift
  30. 0 1
      Sources/CryptoSwift/Digest.swift
  31. 0 1
      Sources/CryptoSwift/DigestType.swift
  32. 0 1
      Sources/CryptoSwift/Foundation/AES+Foundation.swift
  33. 0 1
      Sources/CryptoSwift/Foundation/Array+Foundation.swift
  34. 0 1
      Sources/CryptoSwift/Foundation/Blowfish+Foundation.swift
  35. 0 1
      Sources/CryptoSwift/Foundation/ChaCha20+Foundation.swift
  36. 0 1
      Sources/CryptoSwift/Foundation/Data+Extension.swift
  37. 0 1
      Sources/CryptoSwift/Foundation/HMAC+Foundation.swift
  38. 0 1
      Sources/CryptoSwift/Foundation/Rabbit+Foundation.swift
  39. 0 1
      Sources/CryptoSwift/Foundation/String+FoundationExtension.swift
  40. 0 1
      Sources/CryptoSwift/Foundation/Utils+Foundation.swift
  41. 0 1
      Sources/CryptoSwift/Generics.swift
  42. 0 1
      Sources/CryptoSwift/HKDF.swift
  43. 0 1
      Sources/CryptoSwift/HMAC.swift
  44. 0 1
      Sources/CryptoSwift/Int+Extension.swift
  45. 0 1
      Sources/CryptoSwift/MD5.swift
  46. 0 1
      Sources/CryptoSwift/NoPadding.swift
  47. 0 1
      Sources/CryptoSwift/Operators.swift
  48. 0 1
      Sources/CryptoSwift/PKCS/PBKDF1.swift
  49. 0 1
      Sources/CryptoSwift/PKCS/PBKDF2.swift
  50. 0 1
      Sources/CryptoSwift/PKCS/PKCS5.swift
  51. 0 1
      Sources/CryptoSwift/PKCS/PKCS7.swift
  52. 0 1
      Sources/CryptoSwift/PKCS/PKCS7Padding.swift
  53. 0 1
      Sources/CryptoSwift/Padding.swift
  54. 0 1
      Sources/CryptoSwift/Poly1305.swift
  55. 0 1
      Sources/CryptoSwift/Rabbit.swift
  56. 0 1
      Sources/CryptoSwift/RandomAccessCryptor.swift
  57. 0 1
      Sources/CryptoSwift/RandomBytesSequence.swift
  58. 0 1
      Sources/CryptoSwift/SHA1.swift
  59. 0 1
      Sources/CryptoSwift/SHA2.swift
  60. 0 1
      Sources/CryptoSwift/SHA3.swift
  61. 0 1
      Sources/CryptoSwift/SecureBytes.swift
  62. 0 1
      Sources/CryptoSwift/String+Extension.swift
  63. 0 1
      Sources/CryptoSwift/UInt16+Extension.swift
  64. 0 1
      Sources/CryptoSwift/UInt32+Extension.swift
  65. 0 1
      Sources/CryptoSwift/UInt64+Extension.swift
  66. 0 1
      Sources/CryptoSwift/UInt8+Extension.swift
  67. 0 1
      Sources/CryptoSwift/Updatable.swift
  68. 0 1
      Sources/CryptoSwift/Utils.swift
  69. 0 1
      Sources/CryptoSwift/ZeroPadding.swift
  70. 11 3
      Tests/CryptoSwiftTests/AESTests.swift
  71. 10 3
      Tests/CryptoSwiftTests/Access.swift
  72. 11 4
      Tests/CryptoSwiftTests/BlowfishTests.swift
  73. 10 3
      Tests/CryptoSwiftTests/Bridging.h
  74. 11 3
      Tests/CryptoSwiftTests/ChaCha20Tests.swift
  75. 12 4
      Tests/CryptoSwiftTests/DigestTests.swift
  76. 10 3
      Tests/CryptoSwiftTests/Error+Extension.swift
  77. 11 3
      Tests/CryptoSwiftTests/ExtensionsTest.swift
  78. 10 3
      Tests/CryptoSwiftTests/HKDFTests.swift
  79. 11 3
      Tests/CryptoSwiftTests/HMACTests.swift
  80. 10 3
      Tests/CryptoSwiftTests/PBKDF.swift
  81. 11 3
      Tests/CryptoSwiftTests/PaddingTests.swift
  82. 11 3
      Tests/CryptoSwiftTests/Poly1305Tests.swift
  83. 10 3
      Tests/CryptoSwiftTests/RabbitTests.swift
  84. 10 3
      Tests/CryptoSwiftTests/RandomBytesSequenceTests.swift

+ 1 - 1
.github/ISSUE_TEMPLATE.md

@@ -11,7 +11,7 @@
 	- [ ] Carthage
 	- [ ] Swift Package Manager
 	- [ ] Manual
-- [ ] [I'm a supporter](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=92Z6U3LBHF9J4)
+- [ ] [I'm a supporter](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=92Z6U3LBHF9J4).
 
 # Description
 

+ 12 - 0
.github/PULL_REQUEST_TEMPLATE.md

@@ -0,0 +1,12 @@
+Fixes #
+
+Checklist:
+- [ ] Pull request against a `develop` branch.
+- [ ] Correct file headers (see CONTRIBUTING.md).
+- [ ] Formatted with [SwiftFormat](https://github.com/nicklockwood/SwiftFormat).
+- [ ] Tests added.
+
+Changes proposed in this pull request:
+- 
+- 
+- 

+ 28 - 0
CONTRIBUTING.md

@@ -0,0 +1,28 @@
+By submitting a pull request, you represent that you have the right to license
+your contribution to Marcin Krzyżanowski and the community, and agree by submitting the patch
+that your contributions are licensed under the CryptoSwift project license.
+
+---
+
+Before submitting the pull request, please make sure you have tested your changes.
+
+---
+
+For new files, please use the correct file header:
+
+```
+//
+//  CryptoSwift
+//
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
+//
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
+//
+```

+ 1 - 0
CryptoSwift.xcodeproj/xcshareddata/IDETemplateMacros.plist

@@ -0,0 +1 @@
+../../IDETemplateMacros.plist

+ 27 - 0
IDETemplateMacros.plist

@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+<!--
+	This is a shared macro used in all internal Xcode projects.
+	This file is linked from <PROJECT>.xcodeproj/xcshareddata/IDETemplateMacros.plist.
+	Keep in mind that public Xcode projects have slightly different copyright notice, thus they might be using different template macros.
+-->
+	<key>FILEHEADER</key>
+	<string>
+//
+//  CryptoSwift
+//
+//  Copyright © ___YEAR___ Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
+//
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
+//</string>
+</dict>
+</plist>

+ 0 - 1
Sources/CryptoSwift/AES.Cryptors.swift

@@ -1,5 +1,4 @@
 //
-//  AES.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 3 - 4
Sources/CryptoSwift/AES.swift

@@ -1,5 +1,4 @@
 //
-//  AES.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
@@ -330,7 +329,7 @@ public final class AES: BlockCipher {
             UInt8(b1 & 0xff), UInt8((b1 >> 8) & 0xff), UInt8((b1 >> 16) & 0xff), UInt8((b1 >> 24) & 0xff),
             UInt8(b2 & 0xff), UInt8((b2 >> 8) & 0xff), UInt8((b2 >> 16) & 0xff), UInt8((b2 >> 24) & 0xff),
             UInt8(b3 & 0xff), UInt8((b3 >> 8) & 0xff), UInt8((b3 >> 16) & 0xff), UInt8((b3 >> 24) & 0xff),
-            ]
+        ]
         return result
     }
 }
@@ -491,7 +490,7 @@ extension AES: Cipher {
     public func encrypt(_ bytes: ArraySlice<UInt8>) throws -> Array<UInt8> {
         let chunks = bytes.batched(by: AES.blockSize)
 
-        var oneTimeCryptor = try self.makeEncryptor()
+        var oneTimeCryptor = try makeEncryptor()
         var out = Array<UInt8>(reserveCapacity: bytes.count)
         for chunk in chunks {
             out += try oneTimeCryptor.update(withBytes: chunk, isLast: false)
@@ -511,7 +510,7 @@ extension AES: Cipher {
             throw Error.dataPaddingRequired
         }
 
-        var oneTimeCryptor = try self.makeDecryptor()
+        var oneTimeCryptor = try makeDecryptor()
         let chunks = bytes.batched(by: AES.blockSize)
         if chunks.isEmpty {
             throw Error.invalidData

+ 0 - 1
Sources/CryptoSwift/Array+Extension.swift

@@ -1,5 +1,4 @@
 //
-//  ArrayExtension.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Array+Extensions.swift

@@ -1,5 +1,4 @@
 //
-//  Array+Extensions.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Authenticator.swift

@@ -1,5 +1,4 @@
 //
-//  MAC.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BatchedCollection.swift

@@ -1,5 +1,4 @@
 //
-//  BatchedCollection.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Bit.swift

@@ -1,5 +1,4 @@
 //
-//  Bit.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockCipher.swift

@@ -1,5 +1,4 @@
 //
-//  BlockCipher.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/BlockMode.swift

@@ -1,5 +1,4 @@
 //
-//  BlockMode.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/BlockModeOptions.swift

@@ -1,5 +1,4 @@
 //
-//  BlockModeOptions.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/BlockModeWorker.swift

@@ -1,5 +1,4 @@
 //
-//  BlockModeWorker.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/CBC.swift

@@ -1,5 +1,4 @@
 //
-//  CBC.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/CFB.swift

@@ -1,5 +1,4 @@
 //
-//  CFB.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/CTR.swift

@@ -1,5 +1,4 @@
 //
-//  CTR.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/ECB.swift

@@ -1,5 +1,4 @@
 //
-//  BlockMode.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/OFB.swift

@@ -1,5 +1,4 @@
 //
-//  OFB.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/PCBC.swift

@@ -1,5 +1,4 @@
 //
-//  PCBM.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/BlockMode/RandomAccessBlockModeWorker.swift

@@ -1,5 +1,4 @@
 //
-//  RandomAccessBlockModeWorker.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Blowfish.swift

@@ -1,5 +1,4 @@
 //
-//  Blowfish.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/ChaCha20.swift

@@ -1,5 +1,4 @@
 //
-//  ChaCha20.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Checksum.swift

@@ -1,5 +1,4 @@
 //
-//  Checksum.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Cipher.swift

@@ -1,5 +1,4 @@
 //
-//  Cipher.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Collection+Extension.swift

@@ -1,5 +1,4 @@
 //
-//  Collection+Extension.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Cryptors.swift

@@ -1,5 +1,4 @@
 //
-//  Cryptors.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Digest.swift

@@ -1,5 +1,4 @@
 //
-//  Hash.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/DigestType.swift

@@ -1,5 +1,4 @@
 //
-//  Digest.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Foundation/AES+Foundation.swift

@@ -1,5 +1,4 @@
 //
-//  AES+Foundation.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Foundation/Array+Foundation.swift

@@ -1,5 +1,4 @@
 //
-//  Array+Foundation.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Foundation/Blowfish+Foundation.swift

@@ -1,5 +1,4 @@
 //
-//  Blowfish+Foundation.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Foundation/ChaCha20+Foundation.swift

@@ -1,5 +1,4 @@
 //
-//  ChaCha20+Foundation.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Foundation/Data+Extension.swift

@@ -1,5 +1,4 @@
 //
-//  PGPDataExtension.swift
 //  SwiftPGP
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Foundation/HMAC+Foundation.swift

@@ -1,5 +1,4 @@
 //
-//  HMAC+Foundation.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Foundation/Rabbit+Foundation.swift

@@ -1,5 +1,4 @@
 //
-//  Rabbit+Foundation.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Foundation/String+FoundationExtension.swift

@@ -1,5 +1,4 @@
 //
-//  String+Extension.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Foundation/Utils+Foundation.swift

@@ -1,5 +1,4 @@
 //
-//  Utils+Foundation.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Generics.swift

@@ -1,5 +1,4 @@
 //
-//  Generics.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/HKDF.swift

@@ -1,5 +1,4 @@
 //
-//  HKDF.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/HMAC.swift

@@ -1,5 +1,4 @@
 //
-//  HMAC.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Int+Extension.swift

@@ -1,5 +1,4 @@
 //
-//  IntExtension.swift
 //  CryptoSwift
 //
 //  Created by Marcin Krzyzanowski on 12/08/14.

+ 0 - 1
Sources/CryptoSwift/MD5.swift

@@ -1,5 +1,4 @@
 //
-//  MD5.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/NoPadding.swift

@@ -1,5 +1,4 @@
 //
-//  NoPadding.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Operators.swift

@@ -1,5 +1,4 @@
 //
-//  Operators.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/PKCS/PBKDF1.swift

@@ -1,5 +1,4 @@
 //
-//  PBKDF1.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/PKCS/PBKDF2.swift

@@ -1,5 +1,4 @@
 //
-//  PBKDF2.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/PKCS/PKCS5.swift

@@ -1,5 +1,4 @@
 //
-//  PKCS.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/PKCS/PKCS7.swift

@@ -1,5 +1,4 @@
 //
-//  PKCS7.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/PKCS/PKCS7Padding.swift

@@ -1,5 +1,4 @@
 //
-//  PKCS7PAdding.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Padding.swift

@@ -1,5 +1,4 @@
 //
-//  Padding.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Poly1305.swift

@@ -1,5 +1,4 @@
 //
-//  Poly1305.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Rabbit.swift

@@ -1,5 +1,4 @@
 //
-//  Rabbit.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/RandomAccessCryptor.swift

@@ -1,5 +1,4 @@
 //
-//  RandomAccessCryptor.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/RandomBytesSequence.swift

@@ -1,5 +1,4 @@
 //
-//  RandomBytesSequence.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/SHA1.swift

@@ -1,5 +1,4 @@
 //
-//  SHA1.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/SHA2.swift

@@ -1,5 +1,4 @@
 //
-//  SHA2.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/SHA3.swift

@@ -1,5 +1,4 @@
 //
-//  SHA3.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/SecureBytes.swift

@@ -1,5 +1,4 @@
 //
-//  SecureBytes.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/String+Extension.swift

@@ -1,5 +1,4 @@
 //
-//  StringExtension.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/UInt16+Extension.swift

@@ -1,5 +1,4 @@
 //
-//  UInt16+Extension.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/UInt32+Extension.swift

@@ -1,5 +1,4 @@
 //
-//  UInt32Extension.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/UInt64+Extension.swift

@@ -1,5 +1,4 @@
 //
-//  UInt64Extension.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/UInt8+Extension.swift

@@ -1,5 +1,4 @@
 //
-//  ByteExtension.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Updatable.swift

@@ -1,5 +1,4 @@
 //
-//  Updatable.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/Utils.swift

@@ -1,5 +1,4 @@
 //
-//  Utils.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 0 - 1
Sources/CryptoSwift/ZeroPadding.swift

@@ -1,5 +1,4 @@
 //
-//  ZeroPadding.swift
 //  CryptoSwift
 //
 //  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>

+ 11 - 3
Tests/CryptoSwiftTests/AESTests.swift

@@ -1,10 +1,18 @@
 //
-//  CipherAESTests.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 27/12/14.
-//  Copyright (C) 2014-2017 Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
 //
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
+//
+
 import XCTest
 import Foundation
 @testable import CryptoSwift

+ 10 - 3
Tests/CryptoSwiftTests/Access.swift

@@ -1,9 +1,16 @@
 //
-//  Access.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 06/08/16.
-//  Copyright © 2016 Marcin Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
+//
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
 //
 
 import XCTest

+ 11 - 4
Tests/CryptoSwiftTests/BlowfishTests.swift

@@ -1,13 +1,20 @@
 //
-//  BlowfishTests.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 26/10/16.
-//  Copyright © 2016 Marcin Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
 //
-// Test vector from http://www.schneier.com/code/vectors.txt
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
 //
 
+// Test vector from http://www.schneier.com/code/vectors.txt
+
 import XCTest
 @testable import CryptoSwift
 

+ 10 - 3
Tests/CryptoSwiftTests/Bridging.h

@@ -1,9 +1,16 @@
 //
-//  Bridging.h
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 04/02/15.
-//  Copyright (c) 2015 Marcin Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
+//
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
 //
 
 #ifndef CryptoSwift_Bridging_h

+ 11 - 3
Tests/CryptoSwiftTests/ChaCha20Tests.swift

@@ -1,10 +1,18 @@
 //
-//  CipherChaCha20Tests.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 27/12/14.
-//  Copyright (C) 2014-2017 Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
 //
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
+//
+
 import XCTest
 import Foundation
 @testable import CryptoSwift

+ 12 - 4
Tests/CryptoSwiftTests/DigestTests.swift

@@ -1,10 +1,18 @@
 //
-//  DigestTests.swift
-//  CryptoSwiftTests
+//  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 06/07/14.
-//  Copyright (C) 2014-2017 Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
 //
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
+//
+
 // http://www.di-mgt.com.au/sha_testvectors.html (http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA_All.pdf)
 //
 

+ 10 - 3
Tests/CryptoSwiftTests/Error+Extension.swift

@@ -1,9 +1,16 @@
 //
-//  Error+Extension.swift
 //  CryptoSwift
 //
-//  Created by Michael Ledin on 22.08.16.
-//  Copyright © 2016 Marcin Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
+//
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
 //
 
 import Foundation

+ 11 - 3
Tests/CryptoSwiftTests/ExtensionsTest.swift

@@ -1,10 +1,18 @@
 //
-//  ExtensionsTest.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 15/08/14.
-//  Copyright (C) 2014-2017 Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
 //
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
+//
+
 import XCTest
 import Foundation
 @testable import CryptoSwift

+ 10 - 3
Tests/CryptoSwiftTests/HKDFTests.swift

@@ -1,9 +1,16 @@
 //
-//  HKDFTests.swift
 //  CryptoSwift
 //
-//  Created by Alexey Komnin on 11/13/17.
-//  Copyright © 2017 Marcin Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
+//
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
 //
 
 import XCTest

+ 11 - 3
Tests/CryptoSwiftTests/HMACTests.swift

@@ -1,10 +1,18 @@
 //
-//  HMACTests.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 29/08/14.
-//  Copyright (c) 2015 Marcin Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
 //
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
+//
+
 import XCTest
 @testable import CryptoSwift
 

+ 10 - 3
Tests/CryptoSwiftTests/PBKDF.swift

@@ -1,9 +1,16 @@
 //
-//  PBKDF.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 04/04/16.
-//  Copyright © 2016 Marcin Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
+//
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
 //
 
 import XCTest

+ 11 - 3
Tests/CryptoSwiftTests/PaddingTests.swift

@@ -1,10 +1,18 @@
 //
-//  PaddingTests.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 27/12/14.
-//  Copyright (C) 2014-2017 Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
 //
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
+//
+
 import XCTest
 @testable import CryptoSwift
 

+ 11 - 3
Tests/CryptoSwiftTests/Poly1305Tests.swift

@@ -1,10 +1,18 @@
 //
-//  Poly1305Tests.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 29/08/14.
-//  Copyright (C) 2014-2017 Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
 //
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
+//
+
 import XCTest
 import Foundation
 @testable import CryptoSwift

+ 10 - 3
Tests/CryptoSwiftTests/RabbitTests.swift

@@ -1,9 +1,16 @@
 //
-//  RabbitTests.swift
 //  CryptoSwift
 //
-//  Created by Dima Kalachov on 13/11/15.
-//  Copyright © 2015 Marcin Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
+//
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
 //
 
 import XCTest

+ 10 - 3
Tests/CryptoSwiftTests/RandomBytesSequenceTests.swift

@@ -1,9 +1,16 @@
 //
-//  RandomBytesSequenceTests.swift
 //  CryptoSwift
 //
-//  Created by Marcin Krzyzanowski on 10/10/16.
-//  Copyright © 2016 Marcin Krzyzanowski. All rights reserved.
+//  Copyright (C) 2014-2017 Marcin Krzyżanowski <marcin@krzyzanowskim.com>
+//  This software is provided 'as-is', without any express or implied warranty.
+//
+//  In no event will the authors be held liable for any damages arising from the use of this software.
+//
+//  Permission is granted to anyone to use this software for any purpose,including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+//
+//  - 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.
+//  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+//  - This notice may not be removed or altered from any source or binary distribution.
 //
 
 import XCTest