tbslen parameter in EVP_PKEY_sign() and EVP_PKEY_verify()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Esteemed cryptologists,

Question regarding the "tbslen" parameter to the sign and verify
functions. The documentation says --

"The verified data (i.e. the data believed originally signed) is
specified using the tbs and tbslen parameters."

Which might indicate that tbslen is the length of the payload. However
I found that I had to set this to the length of the *signature* to get
these calls to work. The sign() operation fails at rsa_pmeth.c line
134, and the debugger does indeed tell me that it's expecting 32
there, rather than the payload length which is 1024.

Is this correct? Anything I'm missing, here?

thanks for any clarity here
Jason@Spatial



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux