Document genericName method
This commit is contained in:
parent
5b638ea5f6
commit
1fbfe5b844
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user