OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/cssmapi.h> |
| 6 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/cssmtype.h> |
| 7 #include <stdbool.h> |
| 8 #include <stdlib.h> |
| 9 #include <string.h> |
| 10 #include <vector> |
| 11 |
| 12 #include "base/basictypes.h" |
| 13 #include "base/crypto/cssm_init.h" |
| 14 #include "base/crypto/rsa_private_key.h" |
5 #include "base/crypto/signature_creator.h" | 15 #include "base/crypto/signature_creator.h" |
6 | |
7 #include <stdlib.h> | |
8 | |
9 #include "base/crypto/cssm_init.h" | |
10 #include "base/logging.h" | 16 #include "base/logging.h" |
11 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
12 | 18 |
13 namespace base { | 19 namespace base { |
14 | 20 |
15 // static | 21 // static |
16 SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key) { | 22 SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key) { |
17 scoped_ptr<SignatureCreator> result(new SignatureCreator); | 23 scoped_ptr<SignatureCreator> result(new SignatureCreator); |
18 result->key_ = key; | 24 result->key_ = key; |
19 | 25 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 75 } |
70 | 76 |
71 signature->assign(sig.Data, sig.Data + sig.Length); | 77 signature->assign(sig.Data, sig.Data + sig.Length); |
72 kCssmMemoryFunctions.free_func(sig.Data, NULL); // Release data alloc'd | 78 kCssmMemoryFunctions.free_func(sig.Data, NULL); // Release data alloc'd |
73 // by CSSM | 79 // by CSSM |
74 | 80 |
75 return true; | 81 return true; |
76 } | 82 } |
77 | 83 |
78 } // namespace base | 84 } // namespace base |
OLD | NEW |