};if(!(bnScanSecret =BN_bin2bn(&scanSecret.e[0], ec_secret_size, BN_new())) {printf("StealthSecretSpend(): bnScanSecretBN_bin2bnfailed.\n"); rv =1;gotoEnd; };if(!(bnP =BN_bin2bn(&ephemPubkey[0], ephemPubkey.size(), BN_new())) {printf("StealthSecretSpend(): bnPBN_b...
BN_bn2bin不会创建可打印的字符串 - 相反,它会创建一个真正的二进制表示(即一个位序列)。更具体...
ensure (BN_mod_exp (r, g, a, p, TLS->BN_ctx)); BN_clear_free (a);staticcharg_a[256];memset(g_a,0,256);BN_bn2bin(r, (void*)(g_a + (256- BN_num_bytes (r)));intt = lrand48 ();while(tgl_peer_get (TLS, TGL_MK_ENCR_CHAT (t))) { t = lrand48 (); }//bl_...