wrhsan
wrhsan
openssl 1.1.0e,I think the BN file may produce the problem. in bn_lcl.h ``` # ifdef SIXTY_FOUR_BIT_LONG # define BN_ULLONG unsigned long long # define BN_BITS4 32 # define BN_MASK2 (0xffffffffffffffffL)...
I think elliptic curve in 32bit and 64bit cpu different, but I found 32bit encrypt string and 64bit decrypt the cipher,the string is messy code.
Excuse, my english is poor, yeah, is bytestrings. I used a project named gmssl that based on openssl. The gmssl asymmetric encryption used ecc implementation. Maybe I should raise the...
对于java不太了解,直接用C的话,应该如下: ``` EC_KEY *ec_key = EC_KEY_new(); ec_key = EC_KEY_new_by_curve_name(NID_sm2p256v1); EC_KEY_generate_key(ec_key); const EC_POINT *point = EC_KEY_get0_public_key(ec_key); char *publicChar = EC_POINT_point2hex(EC_KEY_get0_group(ec_key), point, POINT_CONVERSION_UNCOMPRESSED, BN_CTX_new()); const BIGNUM *privateKey = EC_KEY_get0_private_key(ec_key); char *privateChar =...
@zhao1zhihui openssl 文档较多,这段代码是查 openssl 写的。
hexString 16进制字符串
在armv7 32位处理器上产生的密文,本身解密没问题,但x86_64解密出的字符串是错误的。