Lines Matching refs:reason
34 static keymaster_error_t TranslateEvpError(int reason);
36 static keymaster_error_t TranslateASN1Error(int reason);
37 static keymaster_error_t TranslateCipherError(int reason);
38 static keymaster_error_t TranslatePKCS8Error(int reason);
39 static keymaster_error_t TranslateX509v3Error(int reason);
40 static keymaster_error_t TranslateRsaError(int reason);
50 int reason = ERR_GET_REASON(error); in TranslateLastOpenSslError() local
54 return TranslateEvpError(reason); in TranslateLastOpenSslError()
57 return TranslateASN1Error(reason); in TranslateLastOpenSslError()
59 return TranslateCipherError(reason); in TranslateLastOpenSslError()
61 return TranslatePKCS8Error(reason); in TranslateLastOpenSslError()
63 return TranslateX509v3Error(reason); in TranslateLastOpenSslError()
65 return TranslateRsaError(reason); in TranslateLastOpenSslError()
68 LOG_E("ASN.1 parsing error %d", reason); in TranslateLastOpenSslError()
73 LOG_E("Openssl error %d, %d", ERR_GET_LIB(error), reason); in TranslateLastOpenSslError()
79 keymaster_error_t TranslatePKCS8Error(int reason) { in TranslatePKCS8Error() argument
80 switch (reason) { in TranslatePKCS8Error()
97 keymaster_error_t TranslateCipherError(int reason) { in TranslateCipherError() argument
98 switch (reason) { in TranslateCipherError()
118 keymaster_error_t TranslateASN1Error(int reason) { in TranslateASN1Error() argument
119 switch (reason) { in TranslateASN1Error()
136 keymaster_error_t TranslateX509v3Error(int reason) { in TranslateX509v3Error() argument
137 switch (reason) { in TranslateX509v3Error()
146 keymaster_error_t TranslateRsaError(int reason) { in TranslateRsaError() argument
147 switch (reason) { in TranslateRsaError()
163 keymaster_error_t TranslateEvpError(int reason) { in TranslateEvpError() argument
164 switch (reason) { in TranslateEvpError()