1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-30 00:02:06 +01:00

Do not spaghetti

This commit is contained in:
Paul Schaub 2021-05-03 14:11:59 +02:00
parent 431a65517e
commit 99be722875
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -98,7 +98,7 @@ public interface KeyType {
* @return true if the key can encrypt for storage * @return true if the key can encrypt for storage
*/ */
default boolean canEncryptStorage() { default boolean canEncryptStorage() {
return canEncryptCommunication(); return getAlgorithm().isEncryptionCapable();
} }
static KeyType RSA(RsaLength length) { static KeyType RSA(RsaLength length) {