• Home
  • Raw
  • Download

Lines Matching refs:cleanup

112                    "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg);  in iesys_cryptbssl_hash_start()
117 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptbssl_hash_start()
121 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Error EVP_MD_CTX_create", cleanup); in iesys_cryptbssl_hash_start()
127 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Errror EVP_DigestInit_ex", cleanup); in iesys_cryptbssl_hash_start()
134 cleanup: in iesys_cryptbssl_hash_start()
306 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptbssl_hmac_start()
311 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptbssl_hmac_start()
316 "Error HMAC_CTX_new", cleanup); in iesys_cryptbssl_hmac_start()
322 "HMAC_Init_ex", cleanup); in iesys_cryptbssl_hmac_start()
331 cleanup: in iesys_cryptbssl_hmac_start()
427 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "DigestSignFinal", cleanup); in iesys_cryptbssl_hmac_finish()
433 cleanup: in iesys_cryptbssl_hmac_finish()
564 "Could not allocate Big Number", cleanup); in iesys_cryptbssl_pk_encrypt()
578 goto_error(r, TSS2_ESYS_RC_BAD_VALUE, "Illegal RSA scheme", cleanup); in iesys_cryptbssl_pk_encrypt()
588 "Could not set exponent.", cleanup); in iesys_cryptbssl_pk_encrypt()
593 "Could not allocate RSA key", cleanup); in iesys_cryptbssl_pk_encrypt()
600 cleanup); in iesys_cryptbssl_pk_encrypt()
605 "Could not create evp key.", cleanup); in iesys_cryptbssl_pk_encrypt()
612 "Could not create rsa n.", cleanup); in iesys_cryptbssl_pk_encrypt()
620 "Could not create rsa n.", cleanup); in iesys_cryptbssl_pk_encrypt()
625 "Could not set rsa n.", cleanup); in iesys_cryptbssl_pk_encrypt()
631 "Could not set rsa key.", cleanup); in iesys_cryptbssl_pk_encrypt()
636 "Could not create evp context.", cleanup); in iesys_cryptbssl_pk_encrypt()
641 "Could not init encrypt context.", cleanup); in iesys_cryptbssl_pk_encrypt()
646 "Could not set RSA passing.", cleanup); in iesys_cryptbssl_pk_encrypt()
652 "Could not duplicate OAEP label", cleanup); in iesys_cryptbssl_pk_encrypt()
658 "Could not set RSA label.", cleanup); in iesys_cryptbssl_pk_encrypt()
663 "Could not set hash algorithm.", cleanup); in iesys_cryptbssl_pk_encrypt()
669 "Could not determine ciper size.", cleanup); in iesys_cryptbssl_pk_encrypt()
674 "Encrypted data too big", cleanup); in iesys_cryptbssl_pk_encrypt()
680 "Could not encrypt data.", cleanup); in iesys_cryptbssl_pk_encrypt()
685 cleanup: in iesys_cryptbssl_pk_encrypt()
715 "Create big num from byte buffer.", cleanup); in tpm_pub_to_ossl_pub()
722 "Create big num from byte buffer.", cleanup); in tpm_pub_to_ossl_pub()
728 "Create point.", cleanup); in tpm_pub_to_ossl_pub()
736 "Set affine coordinates", cleanup); in tpm_pub_to_ossl_pub()
741 "The TPM point is not on the curve", cleanup); in tpm_pub_to_ossl_pub()
744 cleanup: in tpm_pub_to_ossl_pub()
817 "Create group for curve", cleanup); in iesys_cryptbssl_get_ecdh_point()
823 "Create ec key", cleanup); in iesys_cryptbssl_get_ecdh_point()
827 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Set group", cleanup); in iesys_cryptbssl_get_ecdh_point()
831 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Generate ec key", cleanup); in iesys_cryptbssl_get_ecdh_point()
835 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Get public key", cleanup); in iesys_cryptbssl_get_ecdh_point()
840 "Ephemeral public key is on curve",cleanup); in iesys_cryptbssl_get_ecdh_point()
845 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Create bignum", cleanup); in iesys_cryptbssl_get_ecdh_point()
849 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Create bignum", cleanup); in iesys_cryptbssl_get_ecdh_point()
855 "Get affine x coordinate", cleanup); in iesys_cryptbssl_get_ecdh_point()
860 "Write big num byte buffer", cleanup); in iesys_cryptbssl_get_ecdh_point()
865 "Write big num byte buffer", cleanup); in iesys_cryptbssl_get_ecdh_point()
873 goto_if_error(r, "Convert TPM pub point to ossl pub point", cleanup); in iesys_cryptbssl_get_ecdh_point()
879 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Create point.", cleanup); in iesys_cryptbssl_get_ecdh_point()
885 "ec point multiplication", cleanup); in iesys_cryptbssl_get_ecdh_point()
892 "Get affine x coordinate", cleanup); in iesys_cryptbssl_get_ecdh_point()
897 "Write big num byte buffer", cleanup); in iesys_cryptbssl_get_ecdh_point()
905 goto_if_error(r, "Error marshaling", cleanup); in iesys_cryptbssl_get_ecdh_point()
908 cleanup: in iesys_cryptbssl_get_ecdh_point()
966 cleanup); in iesys_cryptbssl_sym_aes_encrypt()
970 "AES encrypt called with wrong algorithm.", cleanup); in iesys_cryptbssl_sym_aes_encrypt()
976 "Initialize cipher context", cleanup); in iesys_cryptbssl_sym_aes_encrypt()
981 "Initialize cipher operation", cleanup); in iesys_cryptbssl_sym_aes_encrypt()
984 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Set key and iv", cleanup); in iesys_cryptbssl_sym_aes_encrypt()
989 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Encrypt update", cleanup); in iesys_cryptbssl_sym_aes_encrypt()
993 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Encrypt final", cleanup); in iesys_cryptbssl_sym_aes_encrypt()
997 cleanup: in iesys_cryptbssl_sym_aes_encrypt()
1044 "AES encrypt called with wrong algorithm.", cleanup); in iesys_cryptbssl_sym_aes_decrypt()
1053 "AES algorithm not implemented.", cleanup); in iesys_cryptbssl_sym_aes_decrypt()
1058 "Initialize cipher context", cleanup); in iesys_cryptbssl_sym_aes_decrypt()
1065 "Initialize cipher operation", cleanup); in iesys_cryptbssl_sym_aes_decrypt()
1069 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Set key and iv", cleanup); in iesys_cryptbssl_sym_aes_decrypt()
1074 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Encrypt update", cleanup); in iesys_cryptbssl_sym_aes_decrypt()
1078 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Encrypt final", cleanup); in iesys_cryptbssl_sym_aes_decrypt()
1082 cleanup: in iesys_cryptbssl_sym_aes_decrypt()