mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
57 lines
2.3 KiB
Plaintext
57 lines
2.3 KiB
Plaintext
key++: normalize id and lc()
|
|
|
|
allow signing using an alternate secret key, like in pcpdecrypt()
|
|
|
|
malloc() new pointers in functions only if not NULL, e.g. pcp_gennonce()
|
|
|
|
check pub key count in pcp.c before calling verify signature, croak if count==0
|
|
|
|
Update pod key format spec.
|
|
|
|
-l show keysig, if any
|
|
|
|
vault checksum: add keysigs as well
|
|
|
|
enable formats for secret key exports as well
|
|
|
|
Add newlines to headers in define.h, so strlen() later catches the whole length.
|
|
|
|
Check is_utf8 license.
|
|
also found in https://gd.meizo.com/_files/lpc/ext/utf8.c
|
|
|
|
Vault checksum with global vault
|
|
|
|
Symmetric decrypt mode tries to open vault
|
|
|
|
pcp_find_primary_secret() makes a copy ???
|
|
|
|
c++ destructor double free mess
|
|
|
|
size_t 32bit/64bit:
|
|
buffer.c: In function 'buffer_info':
|
|
buffer.c:268:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Werror=format]
|
|
buffer.c:268:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Werror=format]
|
|
buffer.c:269:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Werror=format]
|
|
buffer.c:269:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Werror=format]
|
|
buffer.c:270:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Werror=format]
|
|
buffer.c:270:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Werror=format]
|
|
buffer.c:271:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Werror=format]
|
|
buffer.c:271:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Werror=format]
|
|
http://stackoverflow.com/questions/2426113/i-have-having-following-warning-in-gcc-compilation-in-32-bit-architecture-but-no
|
|
|
|
Python binding, e.g.:
|
|
py % cdll.LoadLibrary("libsodium.so.8")
|
|
<CDLL 'libsodium.so.8', handle 800776c00 at 80192a3d0>
|
|
py % nacl = CDLL("libsodium.so.8")
|
|
py % hash = create_string_buffer('\000' * 64)
|
|
py % hash
|
|
<ctypes.c_char_Array_65 object at 0x80182c560>
|
|
py % hash.raw
|
|
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x...
|
|
py % key = create_string_buffer('a' * 32)
|
|
py % nacl.crypto_hash_sha256(pointer(hash), pointer(key), 32)
|
|
0
|
|
py % hash.raw
|
|
';\xa3\xf5\xf4;\x92`&\x83\xc1\x9a\xeeb\xa2\x03B\xb0\x84\...
|
|
py %
|