Home | History | Annotate | Download | only in keymaster

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 switch (reason) {
67 return static_cast<keymaster_error_t>(reason);
69 return TranslateEvpError(reason);
72 return TranslateASN1Error(reason);
74 return TranslateCipherError(reason);
76 return TranslatePKCS8Error(reason);
78 return TranslateX509v3Error(reason);
80 return TranslateRsaError(reason);
83 LOG_E("ASN.1 parsing error %d", reason);
88 LOG_E("Openssl error %d, %d", ERR_GET_LIB(error), reason);
94 keymaster_error_t TranslatePKCS8Error(int reason) {
95 switch (reason) {
112 keymaster_error_t TranslateCipherError(int reason) {
113 switch (reason) {
133 keymaster_error_t TranslateASN1Error(int reason) {
134 switch (reason) {
151 keymaster_error_t TranslateX509v3Error(int reason) {
152 switch (reason) {
161 keymaster_error_t TranslateRsaError(int reason) {
162 switch (reason) {
178 keymaster_error_t TranslateEvpError(int reason) {
179 switch (reason) {