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 Jan 3, 2024
1 parent ca5ecda commit 235c5ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/src/packet/signature/preferred_aead_algorithms.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PreferredAeadAlgorithms extends SignatureSubpacket {
super.critical,
super.isLong,
}) : super(
SignatureSubpacketType.preferredCompressionAlgorithms,
SignatureSubpacketType.preferredAeadAlgorithms,
data,
);

Expand Down
4 changes: 2 additions & 2 deletions lib/src/type/subkey.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Subkey {
if (mainKey != null) {
for (final signature in bindingSignatures) {
if (!await signature.verify(
await mainKey!.toPublic.getVerificationKeyPacket(),
mainKey!.keyPacket,
Uint8List.fromList([
...mainKey!.keyPacket.writeForSign(),
...keyPacket.writeForSign(),
Expand All @@ -106,7 +106,7 @@ class Subkey {
for (var revocation in revocationSignatures) {
if (signature == null || revocation.issuerKeyID.id == signature.issuerKeyID.id) {
if (await revocation.verify(
await mainKey!.toPublic.getVerificationKeyPacket(),
mainKey!.keyPacket,
Uint8List.fromList([
...mainKey!.keyPacket.writeForSign(),
...keyPacket.writeForSign(),
Expand Down
4 changes: 2 additions & 2 deletions lib/src/type/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class User {
for (var revocation in revocationSignatures) {
if (signature == null || revocation.issuerKeyID.id == signature.issuerKeyID.id) {
if (await revocation.verifyUserCertification(
await mainKey!.toPublic.getVerificationKeyPacket(),
mainKey!.keyPacket,
userID: userID,
userAttribute: userAttribute,
date: date,
Expand All @@ -63,7 +63,7 @@ class User {
if (mainKey != null) {
for (final signature in selfCertifications) {
if (!await signature.verifyUserCertification(
await mainKey!.toPublic.getVerificationKeyPacket(),
mainKey!.keyPacket,
userID: userID,
userAttribute: userAttribute,
date: date,
Expand Down

0 comments on commit 235c5ef

Please sign in to comment.