Commit dec79e0
committed
Update SharedSecret byte access and deprecate old methods
Modify SharedSecret::as_secret_bytes() to return &[u8; SHARED_SECRET_SIZE]
instead of [u8; SHARED_SECRET_SIZE] to avoid unnecessary copying
of the underlying secret.
Deprecates the following methods in favor of the newly standardized
`secret_bytes` naming convention:
- `to_secret_bytes` (use `as_secret_bytes`)
- `from_bytes` (use `from_secret_bytes`)
This completes the transition to the standardized byte conversion API
while maintaining backward compatibility.1 parent 2cb8058 commit dec79e0
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
0 commit comments