| Andreas Huber | ed3e3e0 | 2012-03-26 11:13:27 -0700 | [diff] [blame^] | 1 | /* | 
|  | 2 | * Copyright (C) 2012 The Android Open Source Project | 
|  | 3 | * | 
|  | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 
|  | 5 | * you may not use this file except in compliance with the License. | 
|  | 6 | * You may obtain a copy of the License at | 
|  | 7 | * | 
|  | 8 | *      http://www.apache.org/licenses/LICENSE-2.0 | 
|  | 9 | * | 
|  | 10 | * Unless required by applicable law or agreed to in writing, software | 
|  | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 
|  | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | 13 | * See the License for the specific language governing permissions and | 
|  | 14 | * limitations under the License. | 
|  | 15 | */ | 
|  | 16 |  | 
|  | 17 | //#define LOG_NDEBUG 0 | 
|  | 18 | #define LOG_TAG "Crypto" | 
|  | 19 | #include <utils/Log.h> | 
|  | 20 |  | 
|  | 21 | #include "Crypto.h" | 
|  | 22 |  | 
|  | 23 | #include <media/stagefright/MediaErrors.h> | 
|  | 24 |  | 
|  | 25 | namespace android { | 
|  | 26 |  | 
|  | 27 | Crypto::Crypto() { | 
|  | 28 | } | 
|  | 29 |  | 
|  | 30 | Crypto::~Crypto() { | 
|  | 31 | } | 
|  | 32 |  | 
|  | 33 | status_t Crypto::initialize() { | 
|  | 34 | return ERROR_UNSUPPORTED; | 
|  | 35 | } | 
|  | 36 |  | 
|  | 37 | status_t Crypto::terminate() { | 
|  | 38 | return ERROR_UNSUPPORTED; | 
|  | 39 | } | 
|  | 40 |  | 
|  | 41 | status_t Crypto::setEntitlementKey( | 
|  | 42 | const void *key, size_t keyLength) { | 
|  | 43 | return ERROR_UNSUPPORTED; | 
|  | 44 | } | 
|  | 45 |  | 
|  | 46 | status_t Crypto::setEntitlementControlMessage( | 
|  | 47 | const void *msg, size_t msgLength) { | 
|  | 48 | return ERROR_UNSUPPORTED; | 
|  | 49 | } | 
|  | 50 |  | 
|  | 51 | ssize_t Crypto::decryptVideo( | 
|  | 52 | const void *iv, size_t ivLength, | 
|  | 53 | const void *srcData, size_t srcDataSize, | 
|  | 54 | void *dstData, size_t dstDataOffset) { | 
|  | 55 | return ERROR_UNSUPPORTED; | 
|  | 56 | } | 
|  | 57 |  | 
|  | 58 | ssize_t Crypto::decryptAudio( | 
|  | 59 | const void *iv, size_t ivLength, | 
|  | 60 | const void *srcData, size_t srcDataSize, | 
|  | 61 | void *dstData, size_t dstDataSize) { | 
|  | 62 | return ERROR_UNSUPPORTED; | 
|  | 63 | } | 
|  | 64 |  | 
|  | 65 | }  // namespace android |