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. |
||
|---|---|---|
| .. | ||
| rsa.go | ||
| rsa_test.go | ||