11use std:: fmt:: Debug ;
22
3- use bitwarden_encoding:: NotB64Encoded ;
3+ use bitwarden_encoding:: NotB64EncodedError ;
44use bitwarden_error:: bitwarden_error;
55use thiserror:: Error ;
66use uuid:: Uuid ;
@@ -45,13 +45,13 @@ pub enum CryptoError {
4545 Fingerprint ( #[ from] FingerprintError ) ,
4646
4747 #[ error( "Argon2 error, {0}" ) ]
48- ArgonError ( #[ from] argon2:: Error ) ,
48+ Argon ( #[ from] argon2:: Error ) ,
4949
5050 #[ error( "Number is zero" ) ]
5151 ZeroNumber ,
5252
5353 #[ error( "Unsupported operation, {0}" ) ]
54- OperationNotSupported ( UnsupportedOperation ) ,
54+ OperationNotSupported ( UnsupportedOperationError ) ,
5555
5656 #[ error( "Key algorithm does not match encrypted data type" ) ]
5757 WrongKeyType ,
@@ -73,7 +73,7 @@ pub enum CryptoError {
7373}
7474
7575#[ derive( Debug , Error ) ]
76- pub enum UnsupportedOperation {
76+ pub enum UnsupportedOperationError {
7777 #[ error( "Encryption is not implemented for key" ) ]
7878 EncryptionNotImplementedForKey ,
7979}
@@ -87,7 +87,7 @@ pub enum EncStringParseError {
8787 #[ error( "Invalid asymmetric type, got type {enc_type} with {parts} parts" ) ]
8888 InvalidTypeAsymm { enc_type : String , parts : usize } ,
8989 #[ error( "Error decoding base64: {0}" ) ]
90- InvalidBase64 ( #[ from] NotB64Encoded ) ,
90+ InvalidBase64 ( #[ from] NotB64EncodedError ) ,
9191 #[ error( "Invalid length: expected {expected}, got {got}" ) ]
9292 InvalidLength { expected : usize , got : usize } ,
9393 #[ error( "Invalid encoding {0}" ) ]
0 commit comments