|
@@ -373,6 +373,7 @@ static int crypto_ablkcipher_report(struct sk_buff *skb, struct crypto_alg *alg)
|
|
|
strncpy(rblkcipher.type, "ablkcipher", sizeof(rblkcipher.type));
|
|
|
strncpy(rblkcipher.geniv, alg->cra_ablkcipher.geniv ?: "<default>",
|
|
|
sizeof(rblkcipher.geniv));
|
|
|
+ rblkcipher.geniv[sizeof(rblkcipher.geniv) - 1] = '\0';
|
|
|
|
|
|
rblkcipher.blocksize = alg->cra_blocksize;
|
|
|
rblkcipher.min_keysize = alg->cra_ablkcipher.min_keysize;
|
|
@@ -447,6 +448,7 @@ static int crypto_givcipher_report(struct sk_buff *skb, struct crypto_alg *alg)
|
|
|
strncpy(rblkcipher.type, "givcipher", sizeof(rblkcipher.type));
|
|
|
strncpy(rblkcipher.geniv, alg->cra_ablkcipher.geniv ?: "<built-in>",
|
|
|
sizeof(rblkcipher.geniv));
|
|
|
+ rblkcipher.geniv[sizeof(rblkcipher.geniv) - 1] = '\0';
|
|
|
|
|
|
rblkcipher.blocksize = alg->cra_blocksize;
|
|
|
rblkcipher.min_keysize = alg->cra_ablkcipher.min_keysize;
|