blob: e02035f5ae720cece0e81da8625dd8df3f6d6dd0 [file] [log] [blame]
Andreas Hubered3e3e02012-03-26 11:13:27 -07001/*
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
25namespace android {
26
27Crypto::Crypto() {
28}
29
30Crypto::~Crypto() {
31}
32
33status_t Crypto::initialize() {
34 return ERROR_UNSUPPORTED;
35}
36
37status_t Crypto::terminate() {
38 return ERROR_UNSUPPORTED;
39}
40
41status_t Crypto::setEntitlementKey(
42 const void *key, size_t keyLength) {
43 return ERROR_UNSUPPORTED;
44}
45
46status_t Crypto::setEntitlementControlMessage(
47 const void *msg, size_t msgLength) {
48 return ERROR_UNSUPPORTED;
49}
50
51ssize_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
58ssize_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