check the return value of BN_dup() in rsa_lib.c:1248