On Thursday 09 October 2003 15:28, Frank wrote: > Want to understand why (or is this wrong). When I call > EC_POINT_point2oct() given a curve of size say 192 or 384. It always > returns a size 1 greater then one would think. i.e. 192 yields 25 and > 384 yields 49. Should it not be 24 bytes and 48 bytes? i.e. 384 > bits/8 bits-byte = 48. > > Is there some extra stuff here?
Yes, the first byte contains information about the point conversion form used (and in case of a compressed representation: 1 bit to identify the other point) as defined in X9.62 (or for example sec1). Nils ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]