Advertisement
deadman96385

Untitled

Feb 6th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2016 The CyanogenMod Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16.  
  17. #include <openssl/cipher.h>
  18. #include <openssl/rsa.h>
  19.  
  20. int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len) {
  21. return EVP_EncryptFinal_ex(ctx, out, out_len);
  22. }
  23.  
  24. int RSA_verify_PKCS1_PSS(RSA *rsa,
  25. const unsigned char *mHash,
  26. const EVP_MD *Hash,
  27. const unsigned char *EM,
  28. int sLen)
  29. {
  30. return RSA_verify_PKCS1_PSS_mgf1(rsa, mHash, Hash, NULL, EM, sLen);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement