Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Van Nguyen <[email protected]>
  • Loading branch information
nguyennv committed Dec 10, 2024
1 parent 7083de7 commit cbab62f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/key/base_key.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ abstract class BaseKey implements KeyInterface {
]) {
for (final signature in directSignatures) {
final subpacket = signature.getSubpacket<PreferredAeadCiphers>();
if (subpacket?.isPreferred(symmetric, aead) ?? false) {
return true;
if (subpacket != null && !subpacket.isPreferred(symmetric, aead)) {
return false;
}
}
return false;
return true;
}

@override
Expand Down

0 comments on commit cbab62f

Please sign in to comment.