]> git.saurik.com Git - apple/security.git/blob - sec/Security/SecOTRErrors.h
Security-55471.14.4.tar.gz
[apple/security.git] / sec / Security / SecOTRErrors.h
1 //
2 // SecOTRErrors.h
3 // libsecurity_libSecOTR
4 //
5 // Created by Keith Henrickson on 4/30/12.
6 //
7 //
8
9 #ifndef messsageProtection_SecMessageProtectionErrors_h
10 #define messsageProtection_SecMessageProtectionErrors_h
11
12 static const CFIndex kSecOTRErrorFailedToEncrypt = -1;
13 static const CFIndex kSecOTRErrorFailedToDecrypt = -2;
14 static const CFIndex kSecOTRErrorFailedToVerify = -3;
15 static const CFIndex kSecOTRErrorFailedToSign = -4;
16 static const CFIndex kSecOTRErrorSignatureDidNotMatch = -5;
17 static const CFIndex kSecOTRErrorFailedSelfTest = -6;
18 static const CFIndex kSecOTRErrorParameterError = -7;
19 static const CFIndex kSecOTRErrorUnknownFormat = -8;
20 static const CFIndex kSecOTRErrorCreatePublicIdentity = -9;
21 static const CFIndex kSecOTRErrorCreatePublicBytes = -10;
22
23 // Errors 100-199 reserved for errors being genrated by workarounds/known issues failing
24 static const CFIndex kSecOTRErrorSignatureTooLarge = -100;
25 static const CFIndex kSecOTRErrorSignatureDidNotRecreate = -101;
26
27 #endif