Getting started with Docker
alyyousuf7/ngrok-custom-domain 5
Attach subdomains to ngrok tunnels
Lambda service to notify me about daily lunch at office
OpenSSL FIPS Example
A plugin for Oh My Fish to output the current working directory relative to environment variables.
alyyousuf7/attendance-lambda 0
Marks attendance every working day automatically while WFH
simple I/O library for Beaglebone Black , include some demo
The repository for high quality TypeScript type definitions.
alyyousuf7/docker-fish-completion 0
docker command completion for the fish shell
push eventalyyousuf7/imei-go
commit sha c3646a11f054238a0d04f01c1175214b1e8bfac6
Fix 18 digit parse issue Signed-off-by: Ali Yousuf <[email protected]>
push time in 9 hours
push eventalyyousuf7/imei-go
commit sha fe86dd89d9cad281b830a0313415091e6e61f658
Fix 18 digit parse issue Signed-off-by: Ali Yousuf <[email protected]>
push time in 9 hours
push eventalyyousuf7/imei-go
commit sha 303e9c73215f669ea2ed19d008315a2275451fab
Add generic function to parse any supported IMEI format Signed-off-by: Ali Yousuf <[email protected]>
push time in 9 hours
push eventalyyousuf7/imei-go
commit sha 570dea100990d96d0b8961f87bd978aa580f0aed
Add generic function to parse any supported IMEI format Signed-off-by: Ali Yousuf <[email protected]>
push time in 4 days
startedraspberrypisig/pizero-usb-hid-keyboard
started time in 7 days
push eventalyyousuf7/imei-go
commit sha 28526cae839630278d71c14d27dd94ed19fe7fb7
Add feature to autofix the checksum Signed-off-by: Ali Yousuf <[email protected]>
push time in 8 days
push eventalyyousuf7/imei-go
commit sha 5a1fe78ef0f314a2a2fce112e97c2f1813029ea5
Add feature to autofix the checksum Signed-off-by: Ali Yousuf <[email protected]>
push time in 8 days
push eventalyyousuf7/imei-go
commit sha 09d76af18ed626278e01984f9008ddaa29f1b5d2
Initial commit
push time in 12 days
push eventalyyousuf7/imei-go
commit sha 8cd51c636aeb0a3810b36e70d3493eb7874058fc
Initial commit
push time in 13 days
push eventalyyousuf7/imei-go
commit sha 58c8829c979e14474e54e4e51db71b8200000b23
Initial commit
push time in 13 days
push eventalyyousuf7/imei-go
commit sha b7758a30ab9455aa0f8053707826d4fd193f976a
Initial commit
push time in 13 days
push eventalyyousuf7/imei-go
commit sha c583d44c09a3a6c951a6c5bc183e7550e9edf1b0
Initial commit
push time in 13 days
issue commentalyyousuf7/Weaver
Once you've got the draw_color value corrected, you can generate new results with correct number of threads.
comment created time in 19 days
issue commentalyyousuf7/Weaver
No, change it to higher than your current value until the simulation matches your actual result.
comment created time in 19 days
issue commentalyyousuf7/Weaver
@Oqilkhon, I think the issue is not with the cropped_size variable but with the wrong simulation of thread thickness you've used.
There is a way to better simulate the thread you have used. I'm assuming that you've used the example01 to generate the result. Please try to change the last parameter (which is set to 25 currently) of the following line to a higher value:
WeaveConfig config = new WeaveConfig(3000, 0, 35, color(color(0, 0, 0), 25));
This value is called the draw_color value. This is responsible to draw the thread on the simulation with a particular intensity. Higher the value, higher the intensity. The maximum value for draw_color can be 255.
High intensity of this value will simulate the thickness of the thread used.
Once your simulation and the actual result matches, you can use the same draw_color value to generate new results.
comment created time in 19 days
issue closedalyyousuf7/Weaver
When Running it appears cannot find a class or type named "Frame"
closed time in 19 days
juanca003210issue commentalyyousuf7/Weaver
Can you share a picture of the simulated version and the real version?
comment created time in 19 days
issue commentalyyousuf7/Weaver
@juanca003210, make sure that the directory name is exactly "Weaver".
comment created time in 22 days
issue commentlocalstack/localstack
Using S3 Localstack with docker-compose
Can you share your docker-compose.yml file?
comment created time in 22 days
issue commentalyyousuf7/Weaver
Can you create a new ticket for that please?
comment created time in a month
issue commentalyyousuf7/Weaver
@khuongtrung936, please choose the input image with higher resolution.
comment created time in a month
issue closedopenssl/openssl
Cross-compiling openssl with FIPS for mingw64
I'm trying to cross-compile OpenSSL 1.0.2k with OpenSSL FIPS 2.0.14 with mingw64 on Linux (specifically jessie).
Everything runs under a docker container to reproduce everything exactly.
OpenSSL FIPS 2.0.14 compiles successfully with:
$ cd /openssl-fips-2.0.14
$ ./Configure mingw64 --cross-compile-prefix=x86_64-w64-mingw32- && make && make install
Everything is fine till here but when compiling OpenSSL 1.0.2k, I run into issues when openssl.exe is built. I used 3 different ways of which one was successful (Approach 3) but that doesn't seem right to me.
Approach 1
This approach uses no weird stuff but it fails:
$ export PERL5LIB="/openssl-fips-2.0.14/util" # For some reason, 'fips_standalone_sha1' cannot find hmac_sha1.pl when cross-compiling. So I have to set this.
$ cd /openssl-1.0.2k
$ ./Configure mingw64 fips --cross-compile-prefix=x86_64-w64-mingw32-
$ make depend
$ make # This fails
I get the following error which seems like linux could run a win32 binary openssl.exe :
make[2]: Entering directory '/openssl-1.0.2k/apps'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto -lws2_32 -lgdi32 -lcrypt32}"; LDCMD="${LDCMD:-/usr/local/ssl/fips-2.0/bin/fipsld}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -I/usr/local/ssl/fips-2.0/include -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=openssl.exe} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o ${LIBDEPS} )
./openssl.exe: 1: ./openssl.exe: MZ����@���: not found
./openssl.exe: 5: ./openssl.exe: Syntax error: word unexpected (expecting ")")
make[2]: *** [link_app.] Error 2
make[1]: *** [openssl.exe] Error 2
make: *** [build_apps] Error 1
../Makefile.shared:164: recipe for target 'link_app.' failed
make[2]: Leaving directory '/openssl-1.0.2k/apps'
Makefile:156: recipe for target 'openssl.exe' failed
make[1]: Leaving directory '/openssl-1.0.2k/apps'
Makefile:294: recipe for target 'build_apps' failed
The command '/bin/sh -c cd /openssl-1.0.2k && ./Configure mingw64 fips --cross-compile-prefix=x86_64-w64-mingw32- && make depend && make && make install' returned a non-zero code: 2
Makefile:2: recipe for target 'fipscross' failed
make: *** [fipscross] Error 2
Approach 2
Here I tried using incore to see if that works out:
$ export PERL5LIB="/openssl-fips-2.0.14/util" # For some reason, 'fips_standalone_sha1' cannot find hmac_sha1.pl when cross-compiling. So I have to set this.
$ export FIPSLD_CC="x86_64-w64-mingw32-gcc"
$ export FIPS_SIG="/openssl-fips-2.0.14/util/incore"
$ cd /openssl-1.0.2k
$ ./Configure mingw64 fips --cross-compile-prefix=x86_64-w64-mingw32-
$ make depend
$ make # This fails
But I get this error saying not ELF file at /openssl-fips-2.0.14/util/incore line 38:
make[2]: Entering directory '/openssl-1.0.2k/apps'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto -lws2_32 -lgdi32 -lcrypt32}"; LDCMD="${LDCMD:-/usr/local/ssl/fips-2.0/bin/fipsld}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -I/usr/local/ssl/fips-2.0/include -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=openssl.exe} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o ${LIBDEPS} )
not ELF file at /openssl-fips-2.0.14/util/incore line 38.
../Makefile.shared:164: recipe for target 'link_app.' failed
make[2]: Leaving directory '/openssl-1.0.2k/apps'
make[2]: *** [link_app.] Error 42
make[1]: *** [openssl.exe] Error 2
Makefile:156: recipe for target 'openssl.exe' failed
make[1]: Leaving directory '/openssl-1.0.2k/apps'
make: *** [build_apps] Error 1
Makefile:294: recipe for target 'build_apps' failed
The command '/bin/sh -c cd /openssl-1.0.2k && ./Configure mingw64 fips --cross-compile-prefix=x86_64-w64-mingw32- && make depend && make && make install' returned a non-zero code: 2
Makefile:2: recipe for target 'fipscross' failed
make: *** [fipscross] Error 2
Approach 3
Due to the kind of error in Approach 1, I tried another approach where I modified /usr/local/ssl/fips-2.0/bin/fipsld to use wine to execute the win32 binary to generate the signature and leave FIPS_SIG and FIPSLD_CC unset :
$ export PERL5LIB="/openssl-fips-2.0.14/util" # For some reason, 'fips_standalone_sha1' cannot find hmac_sha1.pl when cross-compiling. So I have to set this.
$ sed -i 's/SIG=`"\${TARGET}"`/SIG=`wine \${TARGET} | tail -n 1 | sed \'\''s\/\\r\$\/\/\'\''`/' /usr/local/ssl/fips-2.0/bin/fipsld
$ cd /openssl-1.0.2k
$ ./Configure mingw64 fips --cross-compile-prefix=x86_64-w64-mingw32-
$ make depend
$ make # This runs successfully now
$ make install
The sed command opens up /usr/local/ssl/fips-2.0/bin/fipsld replaces
SIG=`"${TARGET}"`
with
SIG=`wine ${TARGET} | tail -n 1 | sed 's/\r$//'`
It doesn't seem right to modify fipsld and secondly to use wine in it. Is it alright to do it this way?
Approach 2 looks like the correct way but I'm doing something wrong there. Any help would be appreciated!
closed time in 2 months
alyyousuf7issue commentopenssl/openssl
Cross-compiling openssl with FIPS for mingw64
Well, I think you forgot to close 😉
Thanks!
comment created time in 2 months