[Issue 13804] New: BigInt have no binary interface to be used in crypto
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Dec 1 08:33:08 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13804
Issue ID: 13804
Summary: BigInt have no binary interface to be used in crypto
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: golovanov_alexey at mail.ru
We have no properties and methods in BigInt to work with binary data to use
BigInt in crypto (for example in RSA).
BigInt have no constructor from binary data - ubyte[], uint[], etc.
To use BigInt in crypto, we need ability:
1 - create BigInt from bytes;
2 - make calculations;
3 - get bytes from result BigInt.
In step (2) we need access to underlying data BigDigit[] to implement absent
powMod method "(a pow b) mod c").
Programmers cant't use std.bigint and forced to reimplement biguintcore.d and
bigint.d .
For example https://github.com/apartridge/crypto/tree/master/crypto/asymmetric
.
--
More information about the Digitalmars-d-bugs
mailing list