Issue 17958 - Crypto interface in phobos
Summary: Crypto interface in phobos
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
: 16510 (view as issue list)
Depends on:
Blocks:
 
Reported: 2017-11-01 15:23 UTC by Andre
Modified: 2024-12-01 16:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andre 2017-11-01 15:23:06 UTC
In discussion https://forum.dlang.org/thread/osnema$d5s$1@digitalmars.com it became clear, including crypto logic into phobos might be a pandora box and should be avoided.
An alternative is to provide a crypto interface within phobos with implementations for SChannel (windows api), mbedtls, openssl, ...

As a starting point, I am interested in RSA Digital Signature Validation but The crypto interface should be open for any algorithm.
Comment 1 Andre 2017-11-01 15:23:49 UTC
*** Issue 16510 has been marked as a duplicate of this issue. ***
Comment 2 Seb 2018-02-09 11:56:50 UTC
Hmm, not sure if this wouldn't be a huge effort for Phobos + given that crypto needs to be able to be patched within hours, I'm inclined to make this a WONTFIX too.

The best library solution I know is this https://github.com/LightBender/SecureD
Comment 3 Andre 2018-02-14 21:04:33 UTC
(In reply to Seb from comment #2)
> Hmm, not sure if this wouldn't be a huge effort for Phobos + given that
> crypto needs to be able to be patched within hours, I'm inclined to make
> this a WONTFIX too.
> 
> The best library solution I know is this
> https://github.com/LightBender/SecureD

If in Phobos crypto functionality isn't directly implemented but a nice wrapper is available around operation system crypto libraries (on windows SChannel) / OpenSSL /... then neither Phobos needs to be patched nor the application developer needs to ship a new version of his application.

The crypto fix will be provided by the operation system (windows update in case of windows...)
(Delphi is using this approach)

What I suggest is a crypto interface in Phobos with implementations for SChannel / OpenSSL / ...
Comment 4 dlangBugzillaToGithub 2024-12-01 16:31:04 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10269

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB