diff options
Diffstat (limited to 'fs/ecryptfs')
| -rw-r--r-- | fs/ecryptfs/crypto.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index ff981503b3e3..63ab24510649 100644 --- a/fs/ecryptfs/crypto.c +++ b/fs/ecryptfs/crypto.c | |||
| @@ -417,17 +417,6 @@ static int ecryptfs_encrypt_extent(struct page *enc_extent_page, | |||
| 417 | (unsigned long long)(extent_base + extent_offset), rc); | 417 | (unsigned long long)(extent_base + extent_offset), rc); |
| 418 | goto out; | 418 | goto out; |
| 419 | } | 419 | } |
| 420 | if (unlikely(ecryptfs_verbosity > 0)) { | ||
| 421 | ecryptfs_printk(KERN_DEBUG, "Encrypting extent " | ||
| 422 | "with iv:\n"); | ||
| 423 | ecryptfs_dump_hex(extent_iv, crypt_stat->iv_bytes); | ||
| 424 | ecryptfs_printk(KERN_DEBUG, "First 8 bytes before " | ||
| 425 | "encryption:\n"); | ||
| 426 | ecryptfs_dump_hex((char *) | ||
| 427 | (page_address(page) | ||
| 428 | + (extent_offset * crypt_stat->extent_size)), | ||
| 429 | 8); | ||
| 430 | } | ||
| 431 | rc = ecryptfs_encrypt_page_offset(crypt_stat, enc_extent_page, 0, | 420 | rc = ecryptfs_encrypt_page_offset(crypt_stat, enc_extent_page, 0, |
| 432 | page, (extent_offset | 421 | page, (extent_offset |
| 433 | * crypt_stat->extent_size), | 422 | * crypt_stat->extent_size), |
| @@ -440,14 +429,6 @@ static int ecryptfs_encrypt_extent(struct page *enc_extent_page, | |||
| 440 | goto out; | 429 | goto out; |
| 441 | } | 430 | } |
| 442 | rc = 0; | 431 | rc = 0; |
| 443 | if (unlikely(ecryptfs_verbosity > 0)) { | ||
| 444 | ecryptfs_printk(KERN_DEBUG, "Encrypt extent [0x%.16llx]; " | ||
| 445 | "rc = [%d]\n", | ||
| 446 | (unsigned long long)(extent_base + extent_offset), rc); | ||
| 447 | ecryptfs_printk(KERN_DEBUG, "First 8 bytes after " | ||
| 448 | "encryption:\n"); | ||
| 449 | ecryptfs_dump_hex((char *)(page_address(enc_extent_page)), 8); | ||
| 450 | } | ||
| 451 | out: | 432 | out: |
| 452 | return rc; | 433 | return rc; |
| 453 | } | 434 | } |
| @@ -543,17 +524,6 @@ static int ecryptfs_decrypt_extent(struct page *page, | |||
| 543 | (unsigned long long)(extent_base + extent_offset), rc); | 524 | (unsigned long long)(extent_base + extent_offset), rc); |
| 544 | goto out; | 525 | goto out; |
| 545 | } | 526 | } |
| 546 | if (unlikely(ecryptfs_verbosity > 0)) { | ||
| 547 | ecryptfs_printk(KERN_DEBUG, "Decrypting extent " | ||
| 548 | "with iv:\n"); | ||
| 549 | ecryptfs_dump_hex(extent_iv, crypt_stat->iv_bytes); | ||
| 550 | ecryptfs_printk(KERN_DEBUG, "First 8 bytes before " | ||
| 551 | "decryption:\n"); | ||
| 552 | ecryptfs_dump_hex((char *) | ||
| 553 | (page_address(enc_extent_page) | ||
| 554 | + (extent_offset * crypt_stat->extent_size)), | ||
| 555 | 8); | ||
| 556 | } | ||
| 557 | rc = ecryptfs_decrypt_page_offset(crypt_stat, page, | 527 | rc = ecryptfs_decrypt_page_offset(crypt_stat, page, |
| 558 | (extent_offset | 528 | (extent_offset |
| 559 | * crypt_stat->extent_size), | 529 | * crypt_stat->extent_size), |
| @@ -567,16 +537,6 @@ static int ecryptfs_decrypt_extent(struct page *page, | |||
| 567 | goto out; | 537 | goto out; |
| 568 | } | 538 | } |
| 569 | rc = 0; | 539 | rc = 0; |
| 570 | if (unlikely(ecryptfs_verbosity > 0)) { | ||
| 571 | ecryptfs_printk(KERN_DEBUG, "Decrypt extent [0x%.16llx]; " | ||
| 572 | "rc = [%d]\n", | ||
| 573 | (unsigned long long)(extent_base + extent_offset), rc); | ||
| 574 | ecryptfs_printk(KERN_DEBUG, "First 8 bytes after " | ||
| 575 | "decryption:\n"); | ||
| 576 | ecryptfs_dump_hex((char *)(page_address(page) | ||
| 577 | + (extent_offset | ||
| 578 | * crypt_stat->extent_size)), 8); | ||
| 579 | } | ||
| 580 | out: | 540 | out: |
| 581 | return rc; | 541 | return rc; |
| 582 | } | 542 | } |
