| ... | @@ -2392,6 +2392,7 @@ pub const Signature = union(enum) { | ... | @@ -2392,6 +2392,7 @@ pub const Signature = union(enum) { |
| 2392 | // https://datatracker.ietf.org/doc/html/rfc9580#section-4 | 2392 | // https://datatracker.ietf.org/doc/html/rfc9580#section-4 |
| 2393 | // https://datatracker.ietf.org/doc/html/rfc9580#signature-packet | 2393 | // https://datatracker.ietf.org/doc/html/rfc9580#signature-packet |
| 2394 | // https://datatracker.ietf.org/doc/html/rfc5656 | 2394 | // https://datatracker.ietf.org/doc/html/rfc5656 |
| | 2395 | // https://datatracker.ietf.org/doc/html/rfc4253 |
| 2395 | pub fn fromReader(kind: NonVoidUnionFieldEnum(Signature), allocator: std.mem.Allocator, b64r: anytype, message: []const u8) !Signature { | 2396 | pub fn fromReader(kind: NonVoidUnionFieldEnum(Signature), allocator: std.mem.Allocator, b64r: anytype, message: []const u8) !Signature { |
| 2396 | if (kind == .pgp) { | 2397 | if (kind == .pgp) { |
| 2397 | var signed_data: nio.AllocatingWriter = .init(allocator); | 2398 | var signed_data: nio.AllocatingWriter = .init(allocator); |
| ... | @@ -2559,7 +2560,7 @@ pub const Signature = union(enum) { | ... | @@ -2559,7 +2560,7 @@ pub const Signature = union(enum) { |
| 2559 | _ = pkformat; | 2560 | _ = pkformat; |
| 2560 | | 2561 | |
| 2561 | if (std.mem.eql(u8, sigformat, "ssh-rsa")) { | 2562 | if (std.mem.eql(u8, sigformat, "ssh-rsa")) { |
| 2562 | // intentionally skipped | 2563 | // intentionally skipped, rsa with sha1 |
| 2563 | } | 2564 | } |
| 2564 | if (std.mem.eql(u8, sigformat, "ssh-ed25519")) blk: { | 2565 | if (std.mem.eql(u8, sigformat, "ssh-ed25519")) blk: { |
| 2565 | const ed = std.crypto.sign.Ed25519; | 2566 | const ed = std.crypto.sign.Ed25519; |