hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

README (1062B)


      1 This module provides RSA signature and encryption schemes defined in PKCS #1.
      2 The implementation only supports RSA keys with two prime factors. Most of the
      3 RSA operations in this module require buffers to perform. Buffer sizes are
      4 provided for keys of a default maximum size of 4096-bits. [[BITSZ]]
      5 may be changed with compiler flags to support bigger keys. [[MINBITSZ]]
      6 defines the minimum size accordingly.
      7 
      8 Public and private keys are stored in byte slices. [[pubkey_init]] is used
      9 to initialize a public key. [[privkey_init]] or [[privkey_initd]] is used
     10 to initialize a private key, depending on which parameters are available.
     11 
     12 This is a low-level module which implements cryptographic primitives. Direct
     13 use of cryptographic primitives is not recommended for non-experts, as
     14 incorrect use of these primitives can easily lead to the introduction of
     15 security vulnerabilities. Non-experts are advised to use the high-level
     16 operations available in the top-level [[crypto::]] module.
     17 
     18 Be advised that Hare's cryptography implementations have not been audited.