crypto/ccm: refactor input_len check in a function
crypto/ccm: refactor input_len check in a function

Refactorg checking that length can be stored in a number of bytes to a
subfunction.

yogo1212/RIOT,basilfx/RIOT,kbumsik/RIOT,avmelnikoff/RIOT,miri64/RIOT,x3ro/RIOT,kaspar030/RIOT,jasonatran/RIOT,OlegHahm/RIOT,cladmi/RIOT,BytesGalore/RIOT,smlng/RIOT,lazytech-org/RIOT,rfuentess/RIOT,RIOT-OS/RIOT,aeneby/RIOT,lazytech-org/RIOT,mtausig/RIOT,josephnoir/RIOT,mfrey/RIOT,x3ro/RIOT,mtausig/RIOT,authmillenon/RIOT,ant9000/RIOT,kYc0o/RIOT,basilfx/RIOT,x3ro/RIOT,A-Paul/RIOT,rfuentess/RIOT,mtausig/RIOT,OTAkeys/RIOT,RIOT-OS/RIOT,josephnoir/RIOT,kbumsik/RIOT,OlegHahm/RIOT,lazytech-org/RIOT,authmillenon/RIOT,OTAkeys/RIOT,ant9000/RIOT,smlng/RIOT,cladmi/RIOT,kYc0o/RIOT,mtausig/RIOT,A-Paul/RIOT,BytesGalore/RIOT,authmillenon/RIOT,gebart/RIOT,josephnoir/RIOT,kaspar030/RIOT,toonst/RIOT,OTAkeys/RIOT,ant9000/RIOT,ant9000/RIOT,authmillenon/RIOT,neiljay/RIOT,avmelnikoff/RIOT,neiljay/RIOT,biboc/RIOT,A-Paul/RIOT,mfrey/RIOT,kbumsik/RIOT,kaspar030/RIOT,kbumsik/RIOT,yogo1212/RIOT,yogo1212/RIOT,aeneby/RIOT,rfuentess/RIOT,gebart/RIOT,yogo1212/RIOT,miri64/RIOT,BytesGalore/RIOT,kaspar030/RIOT,biboc/RIOT,OTAkeys/RIOT,OTAkeys/RIOT,toonst/RIOT,cladmi/RIOT,toonst/RIOT,authmillenon/RIOT,aeneby/RIOT,OlegHahm/RIOT,aeneby/RIOT,gebart/RIOT,OlegHahm/RIOT,RIOT-OS/RIOT,jasonatran/RIOT,josephnoir/RIOT,kYc0o/RIOT,OlegHahm/RIOT,mfrey/RIOT,neiljay/RIOT,lazytech-org/RIOT,jasonatran/RIOT,neiljay/RIOT,gebart/RIOT,A-Paul/RIOT,rfuentess/RIOT,kYc0o/RIOT,yogo1212/RIOT,rfuentess/RIOT,x3ro/RIOT,aeneby/RIOT,neiljay/RIOT,BytesGalore/RIOT,kbumsik/RIOT,avmelnikoff/RIOT,biboc/RIOT,kYc0o/RIOT,toonst/RIOT,authmillenon/RIOT,ant9000/RIOT,jasonatran/RIOT,miri64/RIOT,toonst/RIOT,RIOT-OS/RIOT,RIOT-OS/RIOT,lazytech-org/RIOT,x3ro/RIOT,smlng/RIOT,gebart/RIOT,miri64/RIOT,BytesGalore/RIOT,biboc/RIOT,kaspar030/RIOT,jasonatran/RIOT,cladmi/RIOT,basilfx/RIOT,mtausig/RIOT,smlng/RIOT,miri64/RIOT,smlng/RIOT,A-Paul/RIOT,cladmi/RIOT,josephnoir/RIOT,basilfx/RIOT,biboc/RIOT,avmelnikoff/RIOT,basilfx/RIOT,avmelnikoff/RIOT,mfrey/RIOT,mfrey/RIOT,yogo1212/RIOT