Changeset View
Changeset View
Standalone View
Standalone View
agent/cvt-openpgp.c
Context not available. | |||||
{ | { | ||||
const char *format; | const char *format; | ||||
if (!strcmp (curve, "Ed25519")) | if (!strcmp (curve, "Ed25519") || !strcmp (curve, "Ed448")) | ||||
format = "(public-key(ecc(curve %s)(flags eddsa)(q%m)))"; | format = "(public-key(ecc(curve %s)(flags eddsa)(q%m)))"; | ||||
else if (!strcmp (curve, "Curve25519")) | else if (!strcmp (curve, "Curve25519")) | ||||
format = "(public-key(ecc(curve %s)(flags djb-tweak)(q%m)))"; | format = "(public-key(ecc(curve %s)(flags djb-tweak)(q%m)))"; | ||||
Context not available. | |||||
{ | { | ||||
const char *format; | const char *format; | ||||
if (!strcmp (curve, "Ed25519")) | if (!strcmp (curve, "Ed25519")||!strcmp (curve, "Ed448")) | ||||
/* Do not store the OID as name but the real name and the | /* Do not store the OID as name but the real name and the | ||||
EdDSA flag. */ | EdDSA flag. */ | ||||
format = "(private-key(ecc(curve %s)(flags eddsa)(q%m)(d%m)))"; | format = "(private-key(ecc(curve %s)(flags eddsa)(q%m)(d%m)))"; | ||||
Context not available. | |||||
{ | { | ||||
const char *format; | const char *format; | ||||
if (!strcmp (curve, "Ed25519")) | if (!strcmp (curve, "Ed25519")||!strcmp (curve, "Ed448")) | ||||
/* Do not store the OID as name but the real name and the | /* Do not store the OID as name but the real name and the | ||||
EdDSA flag. */ | EdDSA flag. */ | ||||
format = "(protected-private-key(ecc(curve %s)(flags eddsa)(q%m)" | format = "(protected-private-key(ecc(curve %s)(flags eddsa)(q%m)" | ||||
Context not available. |