Enchantrix/pkg/crypt/std/rsa
google-labs-jules[bot] e7aeb3c8b8 Refactor(crypt): Improve RSA safety and flexibility
This commit introduces several improvements to the RSA implementation:

- Preserves zero-value service safety by lazily initializing the RSA service in `pkg/crypt/crypt.go`.
- Enforces a minimum RSA key size of 2048 bits in `pkg/crypt/std/rsa/rsa.go` to prevent the generation of insecure keys.
- Exposes the OAEP label parameter in `Encrypt` and `Decrypt` functions, allowing for more advanced use cases.
- Adds a test case to verify that `GenerateKeyPair` correctly rejects key sizes below the new minimum.
2025-11-02 03:06:04 +00:00
..
rsa.go Refactor(crypt): Improve RSA safety and flexibility 2025-11-02 03:06:04 +00:00
rsa_test.go Refactor(crypt): Improve RSA safety and flexibility 2025-11-02 03:06:04 +00:00