Use different genericName for CBC/GCM

This commit is contained in:
Davide De Rosa 2018-09-06 11:13:10 +02:00
parent 0b28eacf0d
commit 5b638ea5f6
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ extension SessionProxy {
}
public var genericName: String {
return "AES"
return rawValue.hasSuffix("-GCM") ? "AES-GCM" : "AES-CBC"
}
/// :nodoc: