Skip to content

Commit

Permalink
fix: bug with header and footer of ed25519 and x25519 pem keys
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-frade-iohk committed Dec 19, 2023
1 parent dbd724b commit 8ec220f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
extension Ed25519PrivateKey: ExportableKey {
var pem: String {
PEMKey(
keyType: "EC PRIVATE KEY",
keyType: "PRIVATE KEY",
keyData: raw
).pemEncoded()
}
Expand Down Expand Up @@ -32,7 +32,7 @@ extension Ed25519PrivateKey: ExportableKey {
extension Ed25519PublicKey: ExportableKey {
var pem: String {
PEMKey(
keyType: "EC PRIVATE KEY",
keyType: "PRIVATE KEY",
keyData: raw
).pemEncoded()
}
Expand Down
4 changes: 2 additions & 2 deletions AtalaPrismSDK/Apollo/Sources/Model/X25519Key+Exportable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
extension X25519PrivateKey: ExportableKey {
var pem: String {
PEMKey(
keyType: "EC PRIVATE KEY",
keyType: "PRIVATE KEY",
keyData: raw
).pemEncoded()
}
Expand Down Expand Up @@ -32,7 +32,7 @@ extension X25519PrivateKey: ExportableKey {
extension X25519PublicKey: ExportableKey {
var pem: String {
PEMKey(
keyType: "EC PRIVATE KEY",
keyType: "PRIVATE KEY",
keyData: raw
).pemEncoded()
}
Expand Down

0 comments on commit 8ec220f

Please sign in to comment.