Re: Provider: cannot sign with ed25519-like key

Steffen Nurpmeso <[email protected]>
Newsgroups gmane.comp.encryption.openssl.user
Message-ID <20240806220310.TKLKKoll@steffen%sdaoden.eu>
'Bernd Ritter' via openssl-users wrote in
 <0474896a-fe7f-4842-874f-d3592e4f906d-shG/GajIFYqbacvFa/[email protected]>:
 |Hello Tomas,
 |
 |thank you for your response! I am aware of that ED25519 only supports 
 |the block operation. I also tried to implement that, but it seems to 
 |only call the update variant. Is there a way to "enforce" the use of the 
 |block operation in the provider? There seems to be a parameter for that, 
 |but I could not find the correct usage of that.

EVP_DigestSignInit + EVP_DigestSign does that.
See Ed25519(7ssl) (it is *so* cool that the documentation has
become so much better!):

       The  PureEdDSA instances do not support the streaming mechanism of other
       signature  algorithms  using,  for  example,  EVP_DigestUpdate().    The
       message   to   sign   or  verify  must  be  passed  using  the  one‐shot
       EVP_DigestSign() and EVP_DigestVerify() functions.

*My* problem is that it does not seem automatizable, ie, you there
is no interface which says which way to go.  I had

  if(!EVP_DigestSignInit(mdcp->mdc_md_ctx, NIL, mdcp->mdc_md->md_md, NIL, kp->k_key) &&
     !EVP_DigestSignInit(mdcp->mdc_md_ctx, NIL, NIL, NIL, kp->k_key)){

which "does that" (at least today), but is hacky.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
|
| Only during dog days:
| On the 81st anniversary of the Goebbel's Sportpalast speech
| von der Leyen gave an overlong hypocritical inauguration one.
| The brew's essence of our civilizing advancement seems o be:
|   Total war - shortest war -> Permanent war - everlasting war

-- 
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion on the web visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/20240806220310.TKLKKoll%40steffen%25sdaoden.eu.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.