summaryrefslogtreecommitdiff
path: root/internal/store/store.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-22 09:41:45 +0200
committerPaul Buetow <paul@buetow.org>2026-02-22 09:41:45 +0200
commit830b314656b0353e6a52652b650b686edfefa97a (patch)
tree6eb0330566e9b785c697a3348d7e5e1f3824c140 /internal/store/store.go
parentf78a185364ee24bc8c46d4aa6cc96d705faab326 (diff)
Implement crypto package with AES-256-CBC and golden tests (task 354)
Add internal/crypto/crypto.go with byte-identical AES-256-CBC encryption and decryption matching the Ruby OpenSSL reference in geheim.rb, including key doubling (enforceKeyLength), IV derivation (buildIV), PKCS7 pad/unpad, and NewCipher/Encrypt/Decrypt. Add internal/crypto/crypto_test.go with table-driven golden tests (6 vectors from Ruby), roundtrip tests (8 cases), enforceKeyLength/buildIV/PKCS7 unit tests, and error-path coverage (22 total). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/store/store.go')
0 files changed, 0 insertions, 0 deletions