Lines Matching defs: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);
53 return static_cast<keymaster_error_t>(reason);
55 return TranslateEvpError(reason);
58 return TranslateASN1Error(reason);
60 return TranslateCipherError(reason);
62 return TranslatePKCS8Error(reason);
64 return TranslateX509v3Error(reason);
66 return TranslateRsaError(reason);
69 LOG_E("ASN.1 parsing error %d", reason);
74 LOG_E("Openssl error %d, %d", ERR_GET_LIB(error), reason);
80 keymaster_error_t TranslatePKCS8Error(int reason) {
81 switch (reason) {
98 keymaster_error_t TranslateCipherError(int reason) {
99 switch (reason) {
119 keymaster_error_t TranslateASN1Error(int reason) {
120 switch (reason) {
137 keymaster_error_t TranslateX509v3Error(int reason) {
138 switch (reason) {
147 keymaster_error_t TranslateRsaError(int reason) {
148 switch (reason) {
164 keymaster_error_t TranslateEvpError(int reason) {
165 switch (reason) {