Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing features from polyfill #95

Merged
merged 20 commits into from
Sep 11, 2019
Merged

Missing features from polyfill #95

merged 20 commits into from
Sep 11, 2019

Conversation

paragonie-scott
Copy link
Member

@paragonie-scott paragonie-scott commented Aug 22, 2019

Reported in #92

  • sodium_add()
  • sodium_base642bin()
  • sodium_bin2base64()
  • sodium_crypto_kdf_derive_from_key()
  • sodium_crypto_kdf_keygen()
  • sodium_crypto_kx_client_session_keys()
  • sodium_crypto_kx_keypair()
  • sodium_crypto_kx_publickey()
  • sodium_crypto_kx_secretkey()
  • sodium_crypto_kx_seed_keypair()
  • sodium_crypto_kx_server_session_keys()
  • sodium_crypto_pwhash_str_needs_rehash()
  • sodium_crypto_secretstream_xchacha20poly1305_keygen()
  • sodium_crypto_secretstream_xchacha20poly1305_init_push()
  • sodium_crypto_secretstream_xchacha20poly1305_push()
  • sodium_crypto_secretstream_xchacha20poly1305_init_pull()
  • sodium_crypto_secretstream_xchacha20poly1305_pull()
  • sodium_crypto_secretstream_xchacha20poly1305_rekey()
  • sodium_crypto_sign_keypair_from_secretkey_and_publickey()
  • sodium_pad()
  • sodium_unpad()

Strictly speaking, our polyfill is more forgiving than libsodium's,
which attempts to prevent homomorphic base64 (where two different
base64-encoded strings can decode to the same value), while ours does
not worry about this.

We might want to ensure our implementations line up before we merge it.

Another thing: Our PHP 5.2 support commitment is biting us hard. We
cannot use static::foo() in ParagonIE_Sodium_Core_Base64_Common (nor any
equivalent workarounds), so we have to duplicate code. It's ugly but it
works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants