| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "token_binding.h" | 5 #include "token_binding.h" |
| 6 | 6 |
| 7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| 11 bool IsTokenBindingSupported() { | 11 bool IsTokenBindingSupported() { |
| 12 return false; | 12 return false; |
| 13 } | 13 } |
| 14 | 14 |
| 15 bool SignTokenBindingEkm(base::StringPiece ekm, | 15 bool SignTokenBindingEkm(base::StringPiece ekm, |
| 16 crypto::ECPrivateKey* key, | 16 crypto::ECPrivateKey* key, |
| 17 std::vector<uint8_t>* out) { | 17 std::vector<uint8_t>* out) { |
| 18 return false; | 18 return false; |
| 19 } | 19 } |
| 20 | 20 |
| 21 Error BuildTokenBindingMessageFromTokenBindings( | 21 Error BuildTokenBindingMessageFromTokenBindings( |
| 22 const std::vector<base::StringPiece>& token_bindings, | 22 const std::vector<base::StringPiece>& token_bindings, |
| 23 std::string* out) { | 23 std::string* out) { |
| 24 NOTREACHED(); | 24 NOTREACHED(); |
| 25 return ERR_NOT_IMPLEMENTED; | 25 return ERR_NOT_IMPLEMENTED; |
| 26 } | 26 } |
| 27 | 27 |
| 28 Error BuildProvidedTokenBinding(crypto::ECPrivateKey* key, | 28 Error BuildTokenBinding(TokenBindingType type, |
| 29 const std::vector<uint8_t>& ekm, | 29 crypto::ECPrivateKey* key, |
| 30 std::string* out) { | 30 const std::vector<uint8_t>& ekm, |
| 31 std::string* out) { |
| 31 NOTREACHED(); | 32 NOTREACHED(); |
| 32 return ERR_NOT_IMPLEMENTED; | 33 return ERR_NOT_IMPLEMENTED; |
| 33 } | 34 } |
| 34 | 35 |
| 36 TokenBinding::TokenBinding() {} |
| 37 |
| 35 bool ParseTokenBindingMessage(base::StringPiece token_binding_message, | 38 bool ParseTokenBindingMessage(base::StringPiece token_binding_message, |
| 36 base::StringPiece* ec_point, | 39 std::vector<TokenBinding>* token_bindings) { |
| 37 base::StringPiece* signature) { | |
| 38 NOTREACHED(); | 40 NOTREACHED(); |
| 39 return false; | 41 return false; |
| 40 } | 42 } |
| 41 | 43 |
| 42 bool VerifyEKMSignature(base::StringPiece ec_point, | 44 bool VerifyEKMSignature(base::StringPiece ec_point, |
| 43 base::StringPiece signature, | 45 base::StringPiece signature, |
| 44 base::StringPiece ekm) { | 46 base::StringPiece ekm) { |
| 45 NOTREACHED(); | 47 NOTREACHED(); |
| 46 return false; | 48 return false; |
| 47 } | 49 } |
| 48 | 50 |
| 49 } // namespace net | 51 } // namespace net |
| OLD | NEW |