加密庫,libsodium 1.0.4 發布

jopen 9年前發布 | 8K 次閱讀 libsodium

libsodium 是一個先進而且易用的加密庫。主要用于加密、解密、簽名和生成密碼哈希等等。這是一個可移植的、跨編譯器支持、可安裝的,基于 NaCI 開發,提供一個兼容 API。

libsodium 1.0.4 發布,此版本更新內容如下:

  • Support for AES256-GCM has been added. This requires a CPU with the aesni and pclmul extensions, and is accessible via the crypto_aead_aes256gcm_*() functions.

  • The Javascript target doesn't use eval() any more, so that the library can be used in Chrome packaged applications.

  • QNX and CloudABI are now supported.

  • Support for NaCl has finally been added.

  • ChaCha20 with an extended (96 bit) nonce and a 32-bit counter has been implemented as crypto_stream_chacha20_ietf(), crypto_stream_chacha20_ietf_xor() and crypto_stream_chacha20_ietf_xor_ic(). An IETF-compatible version of ChaCha20Poly1305 is available as crypto_aead_chacha20poly1305_ietf_npubbytes(), crypto_aead_chacha20poly1305_ietf_encrypt() and crypto_aead_chacha20poly1305_ietf_decrypt().

  • The sodium_increment() helper function has been added, to increment an arbitrary large number (such as a nonce).

  • The sodium_compare() helper function has been added, to compare arbitrary large numbers (such as nonces, in order to prevent replay attacks).

下載:libsodium-1.0.4.tar.gz


 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!