Polish SecureBox implementation
SecureBoxKeyPair::CreateByPrivateKeyImport() now accepts span<const uint8_t> instead of span<uint8_t> to allow passing const containers. SecureBoxPrivateKey::CreateByImport() now reuses ImportECPrivateKey(), that used to duplicate its logic. This CL is a pure refactoring. Bug: 1101813 Change-Id: Id99edd3f069a7742474a17b73cb5fe69d528eb78 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2340971 Auto-Submit: Maksim Moskvitin <mmoskvitin@google.com> Commit-Queue: Mikel Astiz <mastiz@chromium.org> Reviewed-by:Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#795837}
Showing
Please register or sign in to comment