ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/security/BlockCipher.java

Path
ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/security/BlockCipher.java
Status
scanned
Type
file
Name
BlockCipher.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
1310 (1.3 KB)
MD5
2185afe0eeed796d8cde8da3422c14b8
SHA1
fbbd0a0cf357ec020ae55c43f6c5ff9a6352914c
SHA256
9470cf257a080cac4e8b95e5f7c3ea04839d6e9ada8c800385f3ccb5cb3ae2ba
SHA512

      
    
SHA1_git
45e79d12ca3c09a7327f4541cc4b9e89791734b3
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
BlockCipher.java | 1.3 KB |

/* * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (https://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.h2.security; /** * A block cipher is a data encryption algorithm that operates on blocks. */ public interface BlockCipher { /** * Blocks sizes are always multiples of this number. */ int ALIGN = 16; /** * Set the encryption key used for encrypting and decrypting. * The key needs to be 16 bytes long. * * @param key the key */ void setKey(byte[] key); /** * Encrypt a number of bytes. This is done in-place, that * means the bytes are overwritten. * * @param bytes the byte array * @param off the start index * @param len the number of bytes to encrypt */ void encrypt(byte[] bytes, int off, int len); /** * Decrypt a number of bytes. This is done in-place, that * means the bytes are overwritten. * * @param bytes the byte array * @param off the start index * @param len the number of bytes to decrypt */ void decrypt(byte[] bytes, int off, int len); /** * Get the length of the key in bytes. * * @return the length of the key */ int getKeyLength(); }
Detected license expression
mpl-2.0 AND epl-1.0
Detected license expression (SPDX)
MPL-2.0 AND EPL-1.0
Percentage of license text
5.14
Copyrights
- end_line: 2
  copyright: Copyright 2004-2023 H2 Group. Multiple-Licensed
  start_line: 2
Holders
- holder: H2 Group. Multiple-Licensed
  end_line: 2
  start_line: 2
Authors

      
    
License detections License expression License expression SPDX
mpl_2_0_and_epl_1_0-796bf8d7-f485-3520-923d-e6a4b1ecd2f3 mpl-2.0 AND epl-1.0 MPL-2.0 AND EPL-1.0
URL Start line End line
https://h2database.com/html/license.html 3 3
Package URL License Primary language
pkg:osgi/com.h2database.source@2.2.220