projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preserve IPv6 scope_id in edges.
[tinc]
/
src
/
openssl
/
cipher.c
diff --git
a/src/openssl/cipher.c
b/src/openssl/cipher.c
index
9b39a28
..
04aee27
100644
(file)
--- a/
src/openssl/cipher.c
+++ b/
src/openssl/cipher.c
@@
-79,6
+79,13
@@
size_t cipher_keylength(const cipher_t *cipher) {
return cipher->cipher->key_len + cipher->cipher->iv_len;
}
return cipher->cipher->key_len + cipher->cipher->iv_len;
}
+size_t cipher_blocksize(const cipher_t *cipher) {
+ if(!cipher || !cipher->cipher)
+ return 1;
+
+ return cipher->cipher->block_size;
+}
+
bool cipher_set_key(cipher_t *cipher, void *key, bool encrypt) {
bool result;
bool cipher_set_key(cipher_t *cipher, void *key, bool encrypt) {
bool result;