mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 15:13:51 +02:00
vanitygen: remove package
no distfiles available
This commit is contained in:
parent
33c9b40ded
commit
2738c4054d
4 changed files with 2 additions and 1291 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'removed-packages'
|
# Template file for 'removed-packages'
|
||||||
pkgname=removed-packages
|
pkgname=removed-packages
|
||||||
version=0.1.20230129
|
version=0.1.20230130
|
||||||
revision=1
|
revision=1
|
||||||
build_style=meta
|
build_style=meta
|
||||||
short_desc="Uninstalls packages removed from repository"
|
short_desc="Uninstalls packages removed from repository"
|
||||||
|
@ -511,6 +511,7 @@ replaces="
|
||||||
urlmatch-git<=20141116_2
|
urlmatch-git<=20141116_2
|
||||||
uwsgi-python<=2.0.18_3
|
uwsgi-python<=2.0.18_3
|
||||||
v8<=3.24.35.33_4
|
v8<=3.24.35.33_4
|
||||||
|
vanitygen<=1.53_2
|
||||||
vapoursynth-mvtools<=23_2
|
vapoursynth-mvtools<=23_2
|
||||||
vkd3d<=1.3_1
|
vkd3d<=1.3_1
|
||||||
volnoti<=0.1_1
|
volnoti<=0.1_1
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,98 +0,0 @@
|
||||||
From 5f163e6fff7da52c4aecbd898d9df2e60a56f134 Mon Sep 17 00:00:00 2001
|
|
||||||
From: DesWurstes <DesWurstes@users.noreply.github.com>
|
|
||||||
Date: Sun, 3 Jun 2018 17:46:16 +0300
|
|
||||||
Subject: [PATCH] Privkey prefix OpenSSL 1.1 compatibility (#116)
|
|
||||||
|
|
||||||
Fixes #114
|
|
||||||
---
|
|
||||||
oclengine.c | 18 +++++++++++++-----
|
|
||||||
vanitygen.c | 12 ++++++++++--
|
|
||||||
2 files changed, 23 insertions(+), 7 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/oclengine.c b/oclengine.c
|
|
||||||
index 6585fc6..c69bd4b 100644
|
|
||||||
--- a/oclengine.c
|
|
||||||
+++ b/oclengine.c
|
|
||||||
@@ -5,7 +5,7 @@
|
|
||||||
* Vanitygen is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
- * any later version.
|
|
||||||
+ * any later version.
|
|
||||||
*
|
|
||||||
* Vanitygen is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
@@ -1058,7 +1058,7 @@ vg_ocl_kernel_arg_alloc(vg_ocl_context_t *vocp, int slot,
|
|
||||||
karg,
|
|
||||||
sizeof(clbuf),
|
|
||||||
&clbuf);
|
|
||||||
-
|
|
||||||
+
|
|
||||||
if (ret) {
|
|
||||||
fprintf(stderr,
|
|
||||||
"clSetKernelArg(%d,%d): ", knum, karg);
|
|
||||||
@@ -1090,7 +1090,7 @@ vg_ocl_copyout_arg(vg_ocl_context_t *vocp, int wslot, int arg,
|
|
||||||
buffer,
|
|
||||||
0, NULL,
|
|
||||||
NULL);
|
|
||||||
-
|
|
||||||
+
|
|
||||||
if (ret) {
|
|
||||||
fprintf(stderr, "clEnqueueWriteBuffer(%d): ", arg);
|
|
||||||
vg_ocl_error(vocp, ret, NULL);
|
|
||||||
@@ -2079,7 +2079,15 @@ vg_opencl_loop(vg_exec_context_t *arg)
|
|
||||||
npoints = 0;
|
|
||||||
if (vcp->vc_privkey_prefix_length > 0) {
|
|
||||||
BIGNUM *pkbn = BN_dup(EC_KEY_get0_private_key(pkey));
|
|
||||||
- memcpy((char *)pkbn->d + 32 - vcp->vc_privkey_prefix_length, vcp->vc_privkey_prefix, vcp->vc_privkey_prefix_length);
|
|
||||||
+ unsigned char pkey_arr[32];
|
|
||||||
+ assert(BN_bn2bin(pkbn, pkey_arr) < 33);
|
|
||||||
+ memcpy((char *) pkey_arr, vcp->vc_privkey_prefix, vcp->vc_privkey_prefix_length);
|
|
||||||
+ for (int i = 0; i < vcp->vc_privkey_prefix_length / 2; i++) {
|
|
||||||
+ int k = pkey_arr[i];
|
|
||||||
+ pkey_arr[i] = pkey_arr[vcp->vc_privkey_prefix_length - 1 - i];
|
|
||||||
+ pkey_arr[vcp->vc_privkey_prefix_length - 1 - i] = k;
|
|
||||||
+ }
|
|
||||||
+ BN_bin2bn(pkey_arr, 32, pkbn);
|
|
||||||
EC_KEY_set_private_key(pkey, pkbn);
|
|
||||||
|
|
||||||
EC_POINT *origin = EC_POINT_new(pgroup);
|
|
||||||
@@ -2240,7 +2248,7 @@ vg_opencl_loop(vg_exec_context_t *arg)
|
|
||||||
slot_busy = 1;
|
|
||||||
slot = (slot + 1) % nslots;
|
|
||||||
|
|
||||||
- } else {
|
|
||||||
+ } else {
|
|
||||||
if (slot_busy) {
|
|
||||||
pthread_mutex_lock(&vocp->voc_lock);
|
|
||||||
while (vocp->voc_ocl_slot != -1) {
|
|
||||||
diff --git a/vanitygen.c b/vanitygen.c
|
|
||||||
index 992e5d7..5e49df7 100644
|
|
||||||
--- a/vanitygen.c
|
|
||||||
+++ b/vanitygen.c
|
|
||||||
@@ -129,7 +129,15 @@ vg_thread_loop(void *arg)
|
|
||||||
EC_KEY_generate_key(pkey);
|
|
||||||
if (vcp->vc_privkey_prefix_length > 0) {
|
|
||||||
BIGNUM *pkbn = BN_dup(EC_KEY_get0_private_key(pkey));
|
|
||||||
- memcpy((char *)pkbn->d + 32 - vcp->vc_privkey_prefix_length, vcp->vc_privkey_prefix, vcp->vc_privkey_prefix_length);
|
|
||||||
+ unsigned char pkey_arr[32];
|
|
||||||
+ assert(BN_bn2bin(pkbn, pkey_arr) < 33);
|
|
||||||
+ memcpy((char *) pkey_arr, vcp->vc_privkey_prefix, vcp->vc_privkey_prefix_length);
|
|
||||||
+ for (int i = 0; i < vcp->vc_privkey_prefix_length / 2; i++) {
|
|
||||||
+ int k = pkey_arr[i];
|
|
||||||
+ pkey_arr[i] = pkey_arr[vcp->vc_privkey_prefix_length - 1 - i];
|
|
||||||
+ pkey_arr[vcp->vc_privkey_prefix_length - 1 - i] = k;
|
|
||||||
+ }
|
|
||||||
+ BN_bin2bn(pkey_arr, 32, pkbn);
|
|
||||||
EC_KEY_set_private_key(pkey, pkbn);
|
|
||||||
|
|
||||||
EC_POINT *origin = EC_POINT_new(pgroup);
|
|
||||||
@@ -1395,7 +1403,7 @@ main(int argc, char **argv)
|
|
||||||
addrtype = 60;
|
|
||||||
privtype = 128;
|
|
||||||
break;
|
|
||||||
- }
|
|
||||||
+ }
|
|
||||||
break;
|
|
||||||
|
|
||||||
/*END ALTCOIN GENERATOR*/
|
|
|
@ -1,21 +0,0 @@
|
||||||
# Template file for 'vanitygen'
|
|
||||||
pkgname=vanitygen
|
|
||||||
version=1.53
|
|
||||||
revision=2
|
|
||||||
makedepends="pcre-devel openssl-devel"
|
|
||||||
short_desc="Bitcoin vanity address generator"
|
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
||||||
license="AGPL-3.0-or-later"
|
|
||||||
homepage="https://github.com/exploitagency/vanitygen-plus"
|
|
||||||
changelog="https://raw.githubusercontent.com/exploitagency/vanitygen-plus/master/CHANGELOG"
|
|
||||||
distfiles="https://github.com/exploitagency/vanitygen-plus/archive/PLUS${version}.tar.gz"
|
|
||||||
checksum=976a9afe2a4470551a8b6b0da97101a3a2e6c54c5a26dc870ae755bb2d8c7041
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
make CC=$CC CFLAGS="$CFLAGS $LDFLAGS" ${makejobs}
|
|
||||||
}
|
|
||||||
do_install() {
|
|
||||||
vbin vanitygen
|
|
||||||
vbin keyconv
|
|
||||||
vlicense LICENSE
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue