Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
cbbfe499
Commit
cbbfe499
authored
Aug 02, 2010
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: move AES iv definition to shared header
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
73a7e693
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
fs/ceph/ceph_fs.h
fs/ceph/ceph_fs.h
+2
-0
fs/ceph/crypto.c
fs/ceph/crypto.c
+1
-1
No files found.
fs/ceph/ceph_fs.h
View file @
cbbfe499
...
...
@@ -74,6 +74,8 @@ int ceph_file_layout_is_valid(const struct ceph_file_layout *layout);
#define CEPH_CRYPTO_NONE 0x0
#define CEPH_CRYPTO_AES 0x1
#define CEPH_AES_IV "cephsageyudagreg"
/* security/authentication protocols */
#define CEPH_AUTH_UNKNOWN 0x0
#define CEPH_AUTH_NONE 0x1
...
...
fs/ceph/crypto.c
View file @
cbbfe499
...
...
@@ -75,7 +75,7 @@ static struct crypto_blkcipher *ceph_crypto_alloc_cipher(void)
return
crypto_alloc_blkcipher
(
"cbc(aes)"
,
0
,
CRYPTO_ALG_ASYNC
);
}
static
const
u8
*
aes_iv
=
"cephsageyudagreg"
;
static
const
u8
*
aes_iv
=
(
u8
*
)
CEPH_AES_IV
;
static
int
ceph_aes_encrypt
(
const
void
*
key
,
int
key_len
,
void
*
dst
,
size_t
*
dst_len
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment