Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Item 67 - execution error #125

Open
Open
@xyang2013

Description

I experienced warnings and errors when executing the sample code:

code:

for proc in procs:
 out, _ = proc.communicate()
 print(out[-10:])

issues:

b'\x9f\x81\xdd\xbe\x99\x0e\x8ck|a'
b'P\x8a\x8d\xc5\xc4\xf4\x0c\xd3\x9e\x03'
b'\xe6\xb8?\xef\xf4\x10\x10\xe4\xd6\xf8'
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.

code:

encrypt_procs = []
hash_procs = []
for _ in range(3):
 data = os.urandom(100)
 encrypt_proc = run_encrypt(data)
 encrypt_procs.append(encrypt_proc)
 hash_proc = run_hash(encrypt_proc.stdout)
 hash_procs.append(hash_proc)
 # Ensure that the child consumes the input stream and 
 # the communicate() method doesn't inadvertently steal
 # input from the child. Also lets SIGPIPE propagate to 
 # upstream process if the downstream process dies.
 encrypt_proc.stdout.close()
 encrypt_proc.stdout = None

issues:

Error setting digest
40C7F45E9C770000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:386:Global default library context, Algorithm (whirlpool : 99), Properties ()
40C7F45E9C770000:error:03000086:digital envelope routines:evp_md_init_internal:initialization error:crypto/evp/digest.c:254:
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
Error setting digest
40172D4FD8790000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:386:Global default library context, Algorithm (whirlpool : 99), Properties ()
40172D4FD8790000:error:03000086:digital envelope routines:evp_md_init_internal:initialization error:crypto/evp/digest.c:254:
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
Error setting digest
406722E210710000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:386:Global default library context, Algorithm (whirlpool : 99), Properties ()
406722E210710000:error:03000086:digital envelope routines:evp_md_init_internal:initialization error:crypto/evp/digest.c:254:

code:

for proc in encrypt_procs:
 proc.communicate()
 assert proc.returncode == 0
for proc in hash_procs:
 out, _ = proc.communicate()
 print(out[-10:])
 assert proc.returncode == 0

issues:

bad encrypt
4067717390700000:error:80000020:system library:file_ctrl:Broken pipe:crypto/bio/bss_file.c:326:calling fflush()
4067717390700000:error:10080002:BIO routines:file_ctrl:system lib:crypto/bio/bss_file.c:328:
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
Cell In[12], line 3
 1 for proc in encrypt_procs:
 2 proc.communicate()
----> 3 assert proc.returncode == 0
 5 for proc in hash_procs:
 6 out, _ = proc.communicate()
AssertionError: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /