From 471fadd152fb3bc3ac005a4fbb0aba1058264977 Mon Sep 17 00:00:00 2001 From: Kcat Date: Sat, 30 Dec 2017 17:44:04 +0800 Subject: [PATCH] Add documents --- Sources/Cryptos/Argon.swift | 1 + Sources/Cryptos/MessageDigest.swift | 8 ++++---- Sources/Cryptos/SHA.swift | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Sources/Cryptos/Argon.swift b/Sources/Cryptos/Argon.swift index 0c45188..3a23e92 100644 --- a/Sources/Cryptos/Argon.swift +++ b/Sources/Cryptos/Argon.swift @@ -111,6 +111,7 @@ public struct CatArgon2Context { } } + /// Initialize the context. public init() {} } diff --git a/Sources/Cryptos/MessageDigest.swift b/Sources/Cryptos/MessageDigest.swift index f74eebc..bcfb365 100644 --- a/Sources/Cryptos/MessageDigest.swift +++ b/Sources/Cryptos/MessageDigest.swift @@ -79,14 +79,14 @@ public enum CatMD6HashLength: CInt { case bit512 = 512 } -public class CatMD6Context: CatCryptoContext { +/// Context for MD6 crypto. +public struct CatMD6Context { /// Desired bit-length of the hash function output. public var hashLength: CatMD6HashLength = .bit512 - public override init() { - super.init() - } + /// Initialize the context. + public init() {} } diff --git a/Sources/Cryptos/SHA.swift b/Sources/Cryptos/SHA.swift index 0bc7450..61ed680 100644 --- a/Sources/Cryptos/SHA.swift +++ b/Sources/Cryptos/SHA.swift @@ -62,7 +62,7 @@ public struct CatSHA2Context { /// Desired bit-length of the hash function output. public var hashLength: CatSHA2HashLength = .bit512 - /// Initialize context. + /// Initialize the context. public init() {} }