Pieter Wuille
843c560003
Avoid unaligned access in crypto i/o
8 years ago
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
8 years ago
Pieter Wuille
760765d5a9
Update ctaes
8 years ago
fsb4000
15fa95d7e5
Fix some typos
8 years ago
Cory Fields
27a212dcb4
crypto: add AES 128/256 CBC classes
...
The output should always match openssl's, even for failed operations. Even for
a decrypt with broken padding, the output is always deterministic (and attemtps
to be constant-time).
9 years ago
Pieter Wuille
6bec172eb9
Add ctaes-based constant time AES implementation
9 years ago
Pieter Wuille
cd2be4419e
Merge commit 'a545127fbccef4ee674d18d43732ce00ba97f782' as 'src/crypto/ctaes'
9 years ago
Wladimir J. van der Laan
9ad1a51857
crypto: bytes counts are 64 bit
...
Byte counts for SHA256, SHA512, SHA1 and RIPEMD160 must be 64 bits.
`size_t` has a different size per platform, causing divergent results
when hashing more than 4GB of data.
9 years ago
Wladimir J. van der Laan
4414f5ffe1
build: Endian compatibility
...
- Detect endian instead of stopping configure on big-endian
- Add `byteswap.h` and `endian.h` header for compatibility with
Windows and other operating systems that don't come with them
- Update `crypto/common.h` functions to use compat
endian header
10 years ago
Pieter Wuille
1a9576de9d
Use libsecp256k1's RFC6979 implementation
10 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9
10 years ago
Pieter Wuille
9d8604f36a
Header define style cleanups
10 years ago
Pieter Wuille
3060e36098
Add the RFC6979 PRNG
10 years ago
Pieter Wuille
a8f5087e53
Add HMAC-SHA256
10 years ago
Pieter Wuille
36fa4a78ac
Split up crypto/sha2
10 years ago
Pavel Janík
84738627ce
Fix all header defines
10 years ago
Philip Kaufmann
0db65d8798
update license of compat and crypto
...
- change license to be just MIT for all files in compat and crypto
- also add missing header end comments
- ensure default header include style
10 years ago
Pieter Wuille
cf42c36e99
Apply clang-format on crypto/* and compat/*
10 years ago
Philip Kaufmann
611116d4e3
header include cleanup
...
- ensures alphabetical ordering for includes etc. in source file headers
10 years ago
Pieter Wuille
a0495bb68c
Add <Hasher>::OUTPUT_SIZE
11 years ago
Cory Fields
f2647cc0e9
crypto: explicitly check for byte read/write functions
...
Don't depend on hard-coded platform lists
11 years ago
Pieter Wuille
7ecd9739d9
Move {Read,Write}{LE,BE}{32,64} to common.h and use builtins if possible
11 years ago
Pieter Wuille
a5bc9c0917
Add built-in RIPEMD-160 implementation
11 years ago
Pieter Wuille
13b5dfef64
Move crypto implementations to src/crypto/
11 years ago