Document genericName method

This commit is contained in:
Davide De Rosa 2018-09-06 11:14:04 +02:00
parent 5b638ea5f6
commit 1fbfe5b844

View File

@ -67,6 +67,7 @@ extension SessionProxy {
return rawValue.hasSuffix("-GCM")
}
/// Returns a generic name for this cipher.
public var genericName: String {
return rawValue.hasSuffix("-GCM") ? "AES-GCM" : "AES-CBC"
}
@ -97,6 +98,7 @@ extension SessionProxy {
/// SHA256 message digest.
case sha512 = "SHA512"
/// Returns a generic name for this digest.
public var genericName: String {
return "HMAC"
}